chore: upgrade TypeScript to 6.0.3#1
Closed
aojunhao123 wants to merge 1 commit into
Closed
Conversation
Bump typescript from ^5.9.3 to ^6.0.3 (latest stable; the JS-based compiler, ecosystem-compatible). TS 7 is the native rewrite and does not yet expose the JS compiler API that father/typescript-eslint need. Modernize tsconfig for 6.x's deprecations (removed in 7.0): - moduleResolution: node -> bundler - drop deprecated baseUrl - make path mappings relative Verified: pnpm compile (dts + eslint hook), pnpm test (28/28), tsc --noEmit on src all pass.
Owner
Author
|
Wrong base — re-targeting upstream react-component/listy. |
There was a problem hiding this comment.
Pull request overview
This PR upgrades the project to TypeScript ^6.0.3 and updates tsconfig.json to align with TypeScript 6.x configuration expectations (notably around moduleResolution and paths behavior).
Changes:
- Bump
typescriptfrom^5.9.3to^6.0.3. - Update
tsconfig.jsonto usemoduleResolution: "bundler". - Remove
baseUrland adjustpathsmappings to be explicitly relative (e.g.,./src/*).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tsconfig.json | Updates resolution strategy and path mappings for TypeScript 6.x compatibility. |
| package.json | Bumps the TypeScript dependency to ^6.0.3. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
typescriptfrom^5.9.3to^6.0.3— the latest stable release, still the JS-based compiler and compatible with the existing toolchain.tsconfig.jsonfor 6.x deprecations (which become hard errors in 7.0), fixing them properly instead of suppressing withignoreDeprecations:moduleResolution: node→bundlerbaseUrlpathsmappings relativeWhy not TypeScript 7?
TS 7 is the native (Go) compiler rewrite. Its npm package ships only the
tscbinary plus an experimentaltypescript/unstable/*API — it does not exposerequire('typescript'), the JS compiler API thatfather(dts generation) and@typescript-eslintdepend on.pnpm compilefails on native TS7 (ERR_PACKAGE_PATH_NOT_EXPORTED). 6.0.3 is the actual "newest usable TS" today; this tsconfig is already 7.0-ready for when the ecosystem catches up.Test plan
pnpm compile— father bundless (es/lib) + declaration generation + eslint hook all passpnpm test— 28/28 passtsc --noEmitonsrc/— no errors