Skip to content

Update dependency typescript to v7 - #1730

Draft
mokuzon wants to merge 6 commits into
masterfrom
users/mokuson/NO-ISSUE/fix-ci-typescript-7
Draft

Update dependency typescript to v7#1730
mokuzon wants to merge 6 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. Contains the
original Renovate commit plus the fixes below to make CI pass.

Fixes to make CI pass

  • Regenerated the root package-lock.jsonUpdate dependency typescript to v7 #1727 updated package.json only, so
    npm ci failed with an out-of-sync lock file in every job.
  • Moved typedoc into a new apidocs-generator/ package with its own TypeScript 6
    typedoc needs the TypeScript JS compiler API, which the Go-native TypeScript 7 no longer
    ships (TypeScript 7 (TS-Go) support TypeStrong/typedoc#3098). npm run apidocs now runs npm ci there first, same
    pattern as examples/*.
  • Switched scripts/line-bot-client-generator to a typescript-v6 npm alias — these
    scripts parse lib/ sources with the same compiler API.
  • Added Renovate rules to keep both TypeScript 6 pins below v7 until typedoc supports it.

Verification

  • npm run checkAll and python3 generate-code.py pass locally, and all CI checks pass on
    this PR.

@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
renovate Bot and others added 6 commits July 28, 2026 10:48
- Regenerate package-lock.json for typescript v7 (renovate updated only
  package.json, leaving the lock file out of sync and breaking npm ci)
- Move typedoc/typedoc-plugin-markdown into apidocs-generator/ with its
  own TypeScript 6, because typedoc requires the TypeScript JS compiler
  API that the Go-native TypeScript 7 no longer provides
  (TypeStrong/typedoc#3098)
- Add a renovate rule to keep apidocs-generator's TypeScript below v7
scripts/line-bot-client-generator parses lib sources with the TypeScript JS
compiler API, which the Go-native typescript@7 package no longer provides.
Add a typescript-v6 npm alias to the root devDependencies and require it
from the generator scripts, with a renovate rule to keep the alias below v7.
… file

The lock file was generated against an internal npm registry, which is
unreachable from CI and made 'npm ci' hang. Add the same .npmrc as the
examples/* packages so the public registry is always used, and regenerate
the lock file with registry.npmjs.org resolved URLs.
…parser

typescript@7 is a Go-native implementation and no longer provides the JS
compiler API, so the generator scripts were temporarily pinned to a
typescript-v6 npm alias. Parse client files with oxc-parser (ESTree AST)
instead so the generator no longer depends on the TypeScript compiler API.

Verified that the generated lib/ files are byte-identical before and
after this change.
The client generator scripts now use oxc-parser, so the typescript-v6
npm alias (pinned only for the TypeScript JS compiler API) is no longer
needed.
@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

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