Skip to content

chore(dependabot): ignore typescript 7.x until tooling supports it - #2007

Merged
martin-helmich merged 1 commit into
masterfrom
fix/dependabot-ignore-typescript-7
Jul 16, 2026
Merged

martin-helmich merged 1 commit into
masterfrom
fix/dependabot-ignore-typescript-7

Conversation

@martin-helmich

Copy link
Copy Markdown
Member

Follow-up to #1993, which fails CI and cannot be fixed by a code change.

Why #1993 fails

TypeScript 7 is the native (Go) port. The typescript@7 package ships only the tsgo binary — node_modules/typescript/lib contains just getExePath.js, tsc.js, and version.cjs. The JS compiler API is gone.

Tools that reach into that API crash, which is exactly what CI shows (reproduced locally):

  • Run linters — TypeError: Cannot read properties of undefined (reading 'Cjs') in @typescript-eslint/typescript-estree (ts.ScriptKind is undefined)
  • Run unit tests — TypeError: Cannot read properties of undefined (reading 'fileExists') in ts-jest (ts.sys is undefined); 15/15 suites fail to run
  • Test if dependencies are resolvable — peer dependency conflicts

Compile TypeScript passes because tsc itself works fine — only the API consumers break.

The ecosystem is not ready

Even at latest:

package version typescript peer range
typescript-eslint 8.64.0 >=4.8.4 <6.1.0
ts-jest 29.4.11 >=4.3 <7

Both exclude 7.x. There is no version combination that makes this bump work today.

This PR

Adds a Dependabot ignore for typescript 7.x with a comment explaining why and when to drop it. package.json already pins ^6.0.2, so nothing else changes.

#1993 should be closed — it will not become mergeable until typescript-eslint and ts-jest ship v7 support.

🤖 Generated with Claude Code

TypeScript 7 is the native (Go) port. The npm package ships only the tsgo
binary and no longer exposes the JS compiler API, which typescript-eslint
and ts-jest both depend on. As of typescript-eslint 8.64.0 (peer:
typescript >=4.8.4 <6.1.0) and ts-jest 29.4.11 (peer: typescript >=4.3 <7)
neither supports it, so the bump breaks lint and unit tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@martin-helmich
martin-helmich marked this pull request as ready for review July 16, 2026 07:42
@martin-helmich
martin-helmich merged commit 3281b09 into master Jul 16, 2026
11 of 12 checks passed
@martin-helmich
martin-helmich deleted the fix/dependabot-ignore-typescript-7 branch July 16, 2026 07:42
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.

1 participant