Skip to content

build: bump TypeScript to 7.0.2 - #23

Closed
MounirDhahri wants to merge 1 commit into
mainfrom
claude/typescript-7
Closed

build: bump TypeScript to 7.0.2#23
MounirDhahri wants to merge 1 commit into
mainfrom
claude/typescript-7

Conversation

@MounirDhahri

Copy link
Copy Markdown
Member

Description

TypeScript 7 (the native port) is now the latest release on npm. This bumps the pinned typescript dev dependency 5.9.2 → 7.0.2 for its much faster type-checking.

Kept intentionally minimal — only the typescript version changes. This PR is effectively an experiment gated on CI:

  • yarn tsc (type-check) must pass under the TS7 native compiler.
  • yarn lint must pass — i.e. @typescript-eslint/parser 5.57 must still read TS7 (it version-warns but shouldn't hard-fail; CI confirms).

If either breaks, the fix would be a larger @typescript-eslint upgrade, which I'd raise separately rather than fold in here.

PR Checklist

  • Dependency bump only; no app code or UI change

🤖 Generated with Claude Code


Generated by Claude Code

TypeScript 7 (the native port) is now the `latest` release. Bump the pinned
`typescript` dev dependency to 7.0.2 for its much faster type-checking.

Kept minimal: only the `typescript` version changes. CI (`yarn tsc` + `yarn
lint`) verifies that the toolchain — including @typescript-eslint's parser —
works with TS7.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KPWjhmaeq8DnsiiFD9Eg7A
@artsyit

artsyit commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator
Warnings
⚠️

Changes were made to package.json, but not to yarn.lock.
Perhaps you need to run yarn install?

Generated by 🚫 dangerJS against ab8a653

Copy link
Copy Markdown
Member Author

Closing — TypeScript 7 isn't installable on the current toolchain yet. yarn install fails during the fetch step:

YN0001: Error: typescript@patch:typescript@npm%3A7.0.2#optional!builtin<compat/typescript>:
ENOENT: no such file or directory, lstat '.../node_modules/typescript/lib/_tsc.js'

Yarn 4.10's built-in compat/typescript patch expects typescript/lib/_tsc.js, which the TS7 native port removed — so the patch can't apply and the install errors out before type-checking ever runs. This is a Yarn↔TS7 incompatibility, not a code issue.

Keeping TypeScript at 5.9.2 for now. Worth revisiting once Yarn ships a TS7-compatible builtin patch (or we bump the Yarn version).


Generated by Claude Code

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.

3 participants