Context
TypeScript has been upgraded to ^6.0.3 in the frontend, but the rest of user-office-core is not aligned:
apps/backend still declares typescript: ^5.3.3
apps/e2e still declares typescript: ^5.3.3
validation does not declare TypeScript directly and currently receives it through the ts-jest peer dependency
This leaves packages using different compiler versions and makes the validation build depend on peer dependency auto-installation.
Scope
- Upgrade backend and e2e to TypeScript
^6.0.3
- Add TypeScript
^6.0.3 as a direct dev dependency of validation
- Upgrade supporting TypeScript tooling where required for TypeScript 6 compatibility, including
@typescript-eslint, typescript-eslint, ts-jest, and ts-loader
- Resolve TypeScript 6 compiler or configuration errors in these packages
- Regenerate the affected lockfiles
Acceptance criteria
Related
Context
TypeScript has been upgraded to
^6.0.3in the frontend, but the rest ofuser-office-coreis not aligned:apps/backendstill declarestypescript: ^5.3.3apps/e2estill declarestypescript: ^5.3.3validationdoes not declare TypeScript directly and currently receives it through thets-jestpeer dependencyThis leaves packages using different compiler versions and makes the validation build depend on peer dependency auto-installation.
Scope
^6.0.3^6.0.3as a direct dev dependency of validation@typescript-eslint,typescript-eslint,ts-jest, andts-loaderAcceptance criteria
apps/backend/package.jsondeclares TypeScript^6.0.3apps/e2e/package.jsondeclares TypeScript^6.0.3validation/package.jsondeclares TypeScript^6.0.3directly indevDependenciesRelated
tsconfigoptions that must be migrated before TypeScript 7.