chore(deps): upgrade TypeScript to v7 and migrate tsconfig - #345
Merged
Conversation
TypeScript 7 removes the 'baseUrl' compiler option and requires 'paths' entries to be relative (leading './'). Update tsconfig.json accordingly. The '@/alias is also resolved by Vite's resolve.alias in vite.config.ts, so only tsc --noEmit was affected. Verified: tsc --noEmit clean, e2e typecheck clean, 339/339 vitest tests passing.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade TypeScript from v5.9 to v7.0 and migrate
tsconfig.jsonfor breaking changes.Supersedes and closes #330 (Renovate couldn't make the required tsconfig source changes).
Changes
TypeScript v7 (
package.json,package-lock.json)typescriptfrom^5.8to^7.0.2(resolved: 7.0.2)tsconfig.json migration
TypeScript 7 introduces two breaking changes to compiler options:
baseUrlremoved (TS5102) — the option is no longer recognizedpathsrejected (TS5090) — path entries must begin with./Migration applied:
"baseUrl": ".""@/*": ["src/..."]to"@/*": ["./src/..."]The
@/alias is also resolved by Vite'sresolve.aliasinvite.config.ts:14-17, so onlytsc --noEmitwas affected — the Vite build and runtime behavior are unchanged. All 383@/imports across the codebase continue to resolve correctly.The
e2e/tsconfig.jsonwas not affected (it does not usebaseUrlorpaths).Verification
npx tsc --noEmit— cleannpx tsc -p e2e/tsconfig.json --noEmit— cleannpm run test:frontend(vitest) — 339/339 passingpre-commit run --all-files— all green