mirror of
https://github.com/civitai/civitai.git
synced 2026-09-20 22:08:18 +08:00
b15aabc7a2
Silence editor deprecation warnings across the tsconfigs: - Remove `baseUrl` from root, civitai-ui, and event-engine configs; TS 5.0+ resolves `paths` relative to the config file, so rewrite the affected path targets to be config-relative (`~/*` -> `./src/*`, `@civitai/*` and event- engine's `@/*` likewise). - Convert the one bare dynamic import that relied on implicit baseUrl resolution (TrainingAutoLabelModal) to the `~/` alias. - Rename event-engine's `moduleResolution` from the deprecated `node` alias to its current name `node10` (identical behavior). Verified: root `pnpm typecheck`, event-engine `tsc --noEmit` + full `tsc && tsc-alias` build all pass; tsc-alias/tsconfig-paths resolve without baseUrl (they default to the config dir). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 lines
307 B
JSON
16 lines
307 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "esnext",
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"isolatedModules": true,
|
|
"resolveJsonModule": true,
|
|
"paths": {
|
|
"@civitai/ui/*": ["./src/lib/*"]
|
|
}
|
|
},
|
|
"include": ["src/**/*"]
|
|
}
|