Enable TypeScript 7 RC builds while preserving TypeScript 6 compatibility#2100
Conversation
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Dependency Reviewโ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF ScorecardScorecard details
Scanned Files
|
๐ธ Automated UI Screenshots๐ Screenshots Captured (8)
๐ฆ Download Screenshots๐ฅ Download all screenshots from workflow artifacts
๐ค Generated by Playwright automation |
There was a problem hiding this comment.
Pull request overview
Enables a side-by-side TypeScript toolchain so the repo can type-check/build with a TypeScript 7 RC compiler while retaining a TypeScript 6-compatible typescript dependency for consumers and tooling.
Changes:
- Updated
package.jsonscripts to run project type-check/build steps via atypescript-7compiler entrypoint. - Switched devDependencies to a dual-compiler setup (
typescriptvia@typescript/typescript6andtypescript-7via an npm alias). - Adjusted TS path mappings in
tsconfig.jsonandtsconfig.lib.jsonto use explicit relative targets.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tsconfig.lib.json | Updates path mappings for library compilation configuration. |
| tsconfig.json | Updates path mappings for the main project TS configuration. |
| package.json | Introduces tsc7 script and routes build/check scripts to the TS 7 RC compiler; adds dual TypeScript deps. |
| package-lock.json | Locks the new dual-compiler dependency graph (TS6 wrapper + TS7 RC + platform packages). |
| "types": ["node"], | ||
| "baseUrl": ".", | ||
| "paths": { |
| "typescript": "npm:@typescript/typescript6@^6.0.2", | ||
| "typescript-7": "npm:typescript@^7.0.1-rc", |
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
๐ธ Automated UI Screenshots๐ Screenshots Captured (8)
๐ฆ Download Screenshots๐ฅ Download all screenshots from workflow artifacts
๐ค Generated by Playwright automation |
๐ธ Automated UI Screenshots๐ Screenshots Captured (8)
๐ฆ Download Screenshots๐ฅ Download all screenshots from workflow artifacts
๐ค Generated by Playwright automation |
TypeScript 7 RC introduces a new compiler binary and stricter configuration semantics, which makes direct adoption risky when existing tooling still depends on TypeScript 6. This change introduces a side-by-side setup so the project can compile with TypeScript 7 RC while preserving a TypeScript 6-compatible entrypoint for other consumers.
What changed
@typescript/typescript6for the defaulttypescriptpackage and a dedicatedtypescript-7alias for the RC compiler.tsc6available for TypeScript 6-based tooling.baseUrlpattern and using explicit relative path mappings.Example
{ "devDependencies": { "typescript": "npm:@typescript/typescript6@^6.0.0", "typescript-7": "npm:typescript@rc" } }