Skip to content

Update dependency typescript to v7 - #1730

Merged
Yang-33 merged 2 commits into
masterfrom
users/mokuson/NO-ISSUE/fix-ci-typescript-7
Aug 25, 2026
Merged

Update dependency typescript to v7#1730
Yang-33 merged 2 commits into
masterfrom
users/mokuson/NO-ISSUE/fix-ci-typescript-7

Conversation

@mokuzon

@mokuzon mokuzon commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Supersedes #1727 (Update dependency typescript to v7), whose CI was failing.

Why CI was failing on #1727

Fix: run TypeScript 6 and 7 side-by-side, as recommended in the announcement

  • "typescript": "npm:@typescript/typescript6@^6.0.2" — the official compatibility
    package. typedoc and the client generator scripts resolve typescript to this and keep
    using the TS 6 compiler API. Its binary is tsc6, so it does not shadow TS 7's tsc.
  • "@typescript/native": "npm:typescript@^7.0.0" — provides tsc, so the SDK build and
    typecheck run on the Go-native TypeScript 7.
  • Regenerated the root package-lock.json.

Once TypeScript 7.1 ships the JS API and typedoc supports it, the aliases can be dropped
and typescript bumped to v7 directly.

@mokuzon mokuzon changed the title NO-ISSUE Update dependency typescript to v7 Update dependency typescript to v7 Jul 16, 2026
@mokuzon mokuzon self-assigned this Jul 16, 2026
@mokuzon
mokuzon force-pushed the users/mokuson/NO-ISSUE/fix-ci-typescript-7 branch from d443eb6 to b1ac1e3 Compare July 16, 2026 08:22
@mokuzon
mokuzon force-pushed the users/mokuson/NO-ISSUE/fix-ci-typescript-7 branch from 9306adf to 3041413 Compare July 28, 2026 01:50
@Yang-33

Yang-33 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

renovate Bot and others added 2 commits August 25, 2026 13:06
TypeScript 7.0 does not ship the JS compiler API (planned for 7.1), which
typedoc (npm run apidocs) and scripts/line-bot-client-generator depend on.
Follow the official side-by-side setup from the TypeScript 7.0 announcement
(https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/#running-side-by-side-with-typescript-6.0):

- Alias "typescript" to the @typescript/typescript6 compatibility package so
  tools resolving the "typescript" peer dependency keep the TS 6 compiler
  API. Its binary is tsc6, so it does not shadow TS 7's tsc.
- Add "@typescript/native" aliased to typescript@7, which provides tsc, so
  the SDK build and typecheck run on the Go-native TypeScript 7.
- Regenerate the root package-lock.json, which #1727 left out of sync.
@mokuzon
mokuzon force-pushed the users/mokuson/NO-ISSUE/fix-ci-typescript-7 branch from 3041413 to 3d4c78d Compare August 25, 2026 04:16
@mokuzon
mokuzon marked this pull request as ready for review August 25, 2026 04:29
@mokuzon

mokuzon commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the guidance!
I stopped using my own workaround and adopted the side-by-side approach instead.

@mokuzon
mokuzon requested a review from a team August 25, 2026 04:30
@Yang-33
Yang-33 added this pull request to the merge queue Aug 25, 2026
Merged via the queue into master with commit 6405889 Aug 25, 2026
10 checks passed
@Yang-33
Yang-33 deleted the users/mokuson/NO-ISSUE/fix-ci-typescript-7 branch August 25, 2026 06:59
@mokuzon mokuzon mentioned this pull request Aug 25, 2026
1 task
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.

2 participants