Skip to content

chore: upgrade to TypeScript 7.0.2 - #268

Merged
loiane merged 2 commits into
mainfrom
loiane/upgrade-to-typescript-7
Aug 12, 2026
Merged

chore: upgrade to TypeScript 7.0.2#268
loiane merged 2 commits into
mainfrom
loiane/upgrade-to-typescript-7

Conversation

@loiane

@loiane loiane commented Aug 12, 2026

Copy link
Copy Markdown
Owner

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 7.0.2 added via @typescript/native npm alias → uses the native Go compiler for tsc builds
  • TypeScript 6 kept as typescript alias (@typescript/typescript6@^6.0.2) → provides the JS compiler API that ts-jest needs
  • Removed ts-node — incompatible with TS 7's Go-based compiler
  • Converted jest.config.tsjest.config.js — no longer needs ts-node for transpilation
  • Updated ts-jest to ^29.4.12

How it works

Command Compiler used
npx tsc TypeScript 7 native (Go)
Jest tests (via ts-jest) TypeScript 6 JS API

Validation

  • tsc --noEmit passes with TypeScript 7
  • ✅ All 335 tests pass

loiane added 2 commits August 11, 2026 20:46
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.
@loiane
loiane merged commit 8d3fdc7 into main Aug 12, 2026
1 check passed
@loiane
loiane deleted the loiane/upgrade-to-typescript-7 branch August 12, 2026 00:53
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