Skip to content

chore: upgrade TypeScript to 6.0.3#1

Closed
aojunhao123 wants to merge 1 commit into
masterfrom
chore/upgrade-typescript-6
Closed

chore: upgrade TypeScript to 6.0.3#1
aojunhao123 wants to merge 1 commit into
masterfrom
chore/upgrade-typescript-6

Conversation

@aojunhao123

Copy link
Copy Markdown
Owner

Summary

  • Bump typescript from ^5.9.3 to ^6.0.3 — the latest stable release, still the JS-based compiler and compatible with the existing toolchain.
  • Modernize tsconfig.json for 6.x deprecations (which become hard errors in 7.0), fixing them properly instead of suppressing with ignoreDeprecations:
    • moduleResolution: nodebundler
    • drop deprecated baseUrl
    • make paths mappings relative

Why not TypeScript 7?

TS 7 is the native (Go) compiler rewrite. Its npm package ships only the tsc binary plus an experimental typescript/unstable/* API — it does not expose require('typescript'), the JS compiler API that father (dts generation) and @typescript-eslint depend on. pnpm compile fails 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 pass
  • pnpm test — 28/28 pass
  • tsc --noEmit on src/ — no errors

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.
@aojunhao123

Copy link
Copy Markdown
Owner Author

Wrong base — re-targeting upstream react-component/listy.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 typescript from ^5.9.3 to ^6.0.3.
  • Update tsconfig.json to use moduleResolution: "bundler".
  • Remove baseUrl and adjust paths mappings 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants