Use TypeScript 7 RC side-by-side with TypeScript 6 compatibility package#694
Conversation
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s TypeScript toolchain to evaluate TypeScript 7 RC without displacing TypeScript 6 consumers, using npm aliasing so TS6 remains available as the typescript dependency while builds explicitly compile with the TS7 RC compiler.
Changes:
- Aliases
typescripttonpm:@typescript/typescript6and addstypescript-7asnpm:typescript@rc. - Updates the
buildscript to invoke the TypeScript 7 RCtscentrypoint directly. - Updates
package-lock.jsonto reflect the new alias dependency graph (including TS7 platform optional deps).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Adds TS6/TS7 side-by-side devDependencies and switches the build script to TS7 RC. |
| package-lock.json | Locks the npm-alias TypeScript resolution and brings in TS7 RC optional platform packages. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: James Pether Sörling <pethers@users.noreply.github.com>
|
@copilot investigate and fix Test and Report / prepare (pull_request) invoking wrong version should support at 26 at least |
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
I fixed the install failure by correcting the TypeScript alias dependency metadata in package.json so npm can parse and install the side-by-side TS6/TS7 setup correctly. I also verified the build and test flow locally under Node 26, including |
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
TypeScript 7 RC can be evaluated without displacing existing TypeScript 6-based tooling. This change adopts the recommended npm-alias approach so the project can run TypeScript 7 RC alongside the TypeScript 6 compatibility package while keeping builds on the RC compiler.
Overview
@typescript/typescript6as the defaulttypescriptdependency and atypescript-7alias for the RC compiler.Dependency shape
{ "devDependencies": { "typescript": "npm:@typescript/typescript6@^6.0.2", "typescript-7": "npm:typescript@rc" } }Build behavior