Context
As part of the TypeScript 6 upgrade (frontend), three compilerOptions in apps/frontend/tsconfig.json are now deprecated and will be removed in TypeScript 7. To keep TS 6 compiling, we currently suppress the deprecation errors with:
This is a temporary shim. Before upgrading to TS 7, these options must be actually migrated and the ignoreDeprecations line removed.
Options to migrate
| Current |
Target replacement |
Notes / risk |
"target": "es5" |
"es2020" (or higher) |
Changes emitted JS (no more down-leveling). Vite controls the real build target, so mostly affects type-checking. Confirm browser-support matrix. |
"moduleResolution": "node" |
"bundler" |
Matches our Vite setup. May surface import-path issues (exports fields, extensions). |
"baseUrl": "src" |
"paths" |
Highest risk. paths only affects the type-checker; Vite resolves separately, so we also need resolve.alias (or vite-tsconfig-paths) to match, or runtime imports break. |
Acceptance criteria
Suggested approach
Do this as its own PR (cut from develop), separate from the TS 6 upgrade branch. Migrate one option at a time, verifying tsc --noEmit + a real build after each.
Reference: // Remove once those move to es2020 / bundler / paths comment in apps/frontend/tsconfig.json.
Context
As part of the TypeScript 6 upgrade (frontend), three
compilerOptionsinapps/frontend/tsconfig.jsonare now deprecated and will be removed in TypeScript 7. To keep TS 6 compiling, we currently suppress the deprecation errors with:This is a temporary shim. Before upgrading to TS 7, these options must be actually migrated and the
ignoreDeprecationsline removed.Options to migrate
"target": "es5""es2020"(or higher)"moduleResolution": "node""bundler"exportsfields, extensions)."baseUrl": "src""paths"pathsonly affects the type-checker; Vite resolves separately, so we also needresolve.alias(orvite-tsconfig-paths) to match, or runtime imports break.Acceptance criteria
target: es5withes2020+moduleResolution: nodewithbundlerbaseUrl: srcwith explicitpaths(+ matching Vite alias config)"ignoreDeprecations": "6.0"fromapps/frontend/tsconfig.jsontsc --noEmitpasses with no deprecation errorsSuggested approach
Do this as its own PR (cut from
develop), separate from the TS 6 upgrade branch. Migrate one option at a time, verifyingtsc --noEmit+ a real build after each.Reference:
// Remove once those move to es2020 / bundler / pathscomment inapps/frontend/tsconfig.json.