mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-30 08:15:31 +08:00
fix: base url config
This commit is contained in:
@@ -4,10 +4,13 @@
|
|||||||
"module": "NodeNext",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "NodeNext",
|
"moduleResolution": "NodeNext",
|
||||||
"lib": ["ES2022"],
|
"lib": ["ES2022"],
|
||||||
"baseUrl": ".",
|
// baseUrl is the project root (one level above this config file) so that tsc-alias
|
||||||
|
// resolves @/ imports relative to the compiled output structure in dist-server/server/.
|
||||||
|
// With rootDir ".." tsc emits server files under dist-server/server/, so paths must
|
||||||
|
// include the "server/" prefix to match that layout.
|
||||||
|
"baseUrl": "..",
|
||||||
"paths": {
|
"paths": {
|
||||||
// In the backend config, "@" maps to the /server directory itself.
|
"@/*": ["server/*"]
|
||||||
"@/*": ["*"]
|
|
||||||
},
|
},
|
||||||
// The backend is still mostly JavaScript today, so allowJs lets us add a real
|
// The backend is still mostly JavaScript today, so allowJs lets us add a real
|
||||||
// TypeScript build without forcing a large rename before the tooling is usable.
|
// TypeScript build without forcing a large rename before the tooling is usable.
|
||||||
|
|||||||
Reference in New Issue
Block a user