Files
civitai__civitai/packages/civitai-ui/tsconfig.json
T
briant b15aabc7a2 chore(tsconfig): drop deprecated baseUrl and node moduleResolution alias
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>
2026-07-21 11:06:29 -06:00

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/**/*"]
}