Update dependency typescript to v7 - #1730
Merged
Merged
Conversation
mokuzon
force-pushed
the
users/mokuson/NO-ISSUE/fix-ci-typescript-7
branch
from
July 16, 2026 08:22
d443eb6 to
b1ac1e3
Compare
mokuzon
force-pushed
the
users/mokuson/NO-ISSUE/fix-ci-typescript-7
branch
from
July 28, 2026 01:50
9306adf to
3041413
Compare
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
force-pushed
the
users/mokuson/NO-ISSUE/fix-ci-typescript-7
branch
from
August 25, 2026 04:16
3041413 to
3d4c78d
Compare
mokuzon
marked this pull request as ready for review
August 25, 2026 04:29
Contributor
Author
|
Thanks for the guidance! |
Yang-33
approved these changes
Aug 25, 2026
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Supersedes #1727 (Update dependency typescript to v7), whose CI was failing.
Why CI was failing on #1727
(
npm run apidocs, TypeScript 7 (TS-Go) support TypeStrong/typedoc#3098) andscripts/line-bot-client-generator(
Generate OpenAPI based codeworkflow) depend on.Fix: run TypeScript 6 and 7 side-by-side, as recommended in the announcement
"typescript": "npm:@typescript/typescript6@^6.0.2"— the official compatibilitypackage. typedoc and the client generator scripts resolve
typescriptto this and keepusing the TS 6 compiler API. Its binary is
tsc6, so it does not shadow TS 7'stsc."@typescript/native": "npm:typescript@^7.0.0"— providestsc, so the SDK build andtypecheck run on the Go-native TypeScript 7.
package-lock.json.Once TypeScript 7.1 ships the JS API and typedoc supports it, the aliases can be dropped
and
typescriptbumped to v7 directly.