6fd2f8b3a7
TypeScript 5.x flags `baseUrl` as deprecated; it stops functioning
in TypeScript 7.0. Since TS 5.0, `paths` keys without a `baseUrl`
are resolved relative to the tsconfig file where they are declared
— in our case, the repo root, which is exactly what `baseUrl: "."`
was buying us. Removing it is a no-op for module resolution.
Our paths (`./libs/shared/tokens/src/index.ts`, …) already point at
files relative to the repo root, so this is a pure cleanup: no other
tsconfig in the workspace declares `baseUrl`, and the only path
imports across the codebase are the workspace aliases
(`shared-ui`, `shared-state`, `shared-tokens`, `shared-util`,
`feature-auth`) which keep resolving correctly.
`rootDir: "."` stays for now — it is independent of the
deprecation and removing it would change `dist/` layout semantics
across the workspace; revisit only if a future TS version flags it.
Verified across portal-shell, portal-admin, shared-{ui,state,
tokens,util} with lint + test + build — green.
34 lines
1.0 KiB
JSON
34 lines
1.0 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"rootDir": ".",
|
|
"paths": {
|
|
"shared-tokens": ["./libs/shared/tokens/src/index.ts"],
|
|
"shared-util": ["./libs/shared/util/src/index.ts"],
|
|
"shared-ui": ["./libs/shared/ui/src/index.ts"],
|
|
"feature-auth": ["./libs/feature/auth/src/index.ts"],
|
|
"shared-state": ["./libs/shared/state/src/index.ts"]
|
|
},
|
|
"sourceMap": true,
|
|
"declaration": false,
|
|
"importHelpers": true,
|
|
"isolatedModules": true,
|
|
"lib": ["es2022", "dom"],
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"target": "es2022",
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"useDefineForClassFields": false,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noImplicitOverride": true,
|
|
"noImplicitReturns": true,
|
|
"noUnusedLocals": true,
|
|
"skipLibCheck": true,
|
|
"skipDefaultLibCheck": true,
|
|
"strict": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"exactOptionalPropertyTypes": true,
|
|
"noPropertyAccessFromIndexSignature": true
|
|
}
|
|
}
|