Skip to content

Migrate typecheck to TypeScript 7 RC#48

Merged
Kashkovsky merged 1 commit into
mainfrom
push-package-lock-to-main
Jul 1, 2026
Merged

Migrate typecheck to TypeScript 7 RC#48
Kashkovsky merged 1 commit into
mainfrom
push-package-lock-to-main

Conversation

@Kashkovsky

Copy link
Copy Markdown
Owner

Summary

  • Add an exact typescript-7 alias for typescript@7.0.1-rc.
  • Keep typescript@^6.0.3 for typescript-eslint's current JS API and peer range.
  • Run npm run typecheck through node ./node_modules/typescript-7/bin/tsc so project typechecking uses the TS 7 RC compiler.

Detail
typescript-eslint@8.62.x still peers on typescript >=4.8.4 <6.1.0 and imports the stable typescript JS API. Installing typescript@7.0.1-rc as the primary typescript package breaks lint because the TS 7 RC package exposes tsc but does not expose that stable CommonJS API.

This uses the side-by-side layout instead: TS 6 remains the package consumed by lint tooling, while the project typecheck script invokes the TS 7 compiler alias directly.

Test plan

node ./node_modules/typescript-7/bin/tsc --version
npm run typecheck --silent
npm run lint --silent
npm run test --silent
npm run build --silent
npm run prettier:check --silent

Precommit also ran npm run lint, npm run prettier:write, and npm run test.

@Kashkovsky Kashkovsky marked this pull request as ready for review July 1, 2026 10:38
@Kashkovsky Kashkovsky merged commit 86e5b72 into main Jul 1, 2026
7 checks passed
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.

1 participant