chore(ts): drop deprecated baseUrl from tsconfig.base.json #101

Merged
julien merged 1 commits from chore/typescript-drop-deprecated-baseurl into main 2026-05-12 02:06:24 +02:00

1 Commits

Author SHA1 Message Date
Julien Gautier 6fd2f8b3a7 chore(ts): drop deprecated baseUrl from tsconfig.base.json
CI / scan (pull_request) Successful in 3m2s
CI / commits (pull_request) Successful in 3m2s
CI / check (pull_request) Successful in 4m34s
CI / a11y (pull_request) Successful in 1m49s
CI / perf (pull_request) Successful in 5m47s
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.
2026-05-12 02:05:08 +02:00