Skip to content

Use TypeScript 7 RC side-by-side with TypeScript 6 compatibility package#694

Merged
pethers merged 6 commits into
mainfrom
copilot/typescript-7-0-rc-side-by-side
Jul 8, 2026
Merged

Use TypeScript 7 RC side-by-side with TypeScript 6 compatibility package#694
pethers merged 6 commits into
mainfrom
copilot/typescript-7-0-rc-side-by-side

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

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

    • Adds a side-by-side TypeScript setup using @typescript/typescript6 as the default typescript dependency and a typescript-7 alias for the RC compiler.
    • Updates the build entrypoint to invoke the TypeScript 7 RC compiler directly.
  • Dependency shape

    {
      "devDependencies": {
        "typescript": "npm:@typescript/typescript6@^6.0.2",
        "typescript-7": "npm:typescript@rc"
      }
    }
  • Build behavior

    • Preserves compatibility for tools that still rely on TypeScript 6 while allowing this project to compile with the TypeScript 7 RC toolchain explicitly.

Copilot AI and others added 3 commits July 8, 2026 10:29
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>
@github-actions github-actions Bot added dependencies Dependency updates infrastructure CI/CD and build infrastructure labels Jul 8, 2026
@pethers pethers marked this pull request as ready for review July 8, 2026 10:33
@pethers pethers requested a review from Copilot July 8, 2026 10:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 typescript to npm:@typescript/typescript6 and adds typescript-7 as npm:typescript@rc.
  • Updates the build script to invoke the TypeScript 7 RC tsc entrypoint directly.
  • Updates package-lock.json to 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.

Comment thread package.json Outdated
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>
@pethers

pethers commented Jul 8, 2026

Copy link
Copy Markdown
Member

@copilot investigate and fix

Test and Report / prepare (pull_request)
Test and Report / prepare (pull_request)Failing after 41s
Test and Report Latest Node / prepare (pull_request)
Test and Report Latest Node / prepare (pull_request)Failing after 50s

invoking wrong version should support at 26 at least

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot investigate and fix

Test and Report / prepare (pull_request)
...

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 npm run build and the unit test suite.

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
@github-actions github-actions Bot added the documentation Documentation updates label Jul 8, 2026
@pethers pethers merged commit c4b7b60 into main Jul 8, 2026
17 checks passed
@pethers pethers deleted the copilot/typescript-7-0-rc-side-by-side branch July 8, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates documentation Documentation updates infrastructure CI/CD and build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants