chore: upgrade to TypeScript 7.0.2 - #268
Merged
Merged
Conversation
Use npm aliases as recommended by ts-jest for TypeScript 7 compatibility: - @typescript/native -> typescript@^7.0.2 (native Go compiler for builds) - typescript -> @typescript/typescript6@^6.0.2 (JS API for ts-jest) Other changes: - Remove ts-node (incompatible with TS 7 Go compiler) - Convert jest.config.ts to jest.config.js (no longer needs ts-node) - Update ts-jest to ^29.4.12
Accept @types/node ^26.2.0 from main, keep TS 7 upgrade changes.
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
Upgrades the project to TypeScript 7.0.2 (Project Corsa — the native Go compiler rewrite) using the ts-jest recommended side-by-side approach.
Changes
@typescript/nativenpm alias → uses the native Go compiler fortscbuildstypescriptalias (@typescript/typescript6@^6.0.2) → provides the JS compiler API that ts-jest needsts-node— incompatible with TS 7's Go-based compilerjest.config.ts→jest.config.js— no longer needs ts-node for transpilationts-jestto^29.4.12How it works
npx tscValidation
tsc --noEmitpasses with TypeScript 7