Repository navigation
chore(dependabot): ignore typescript 7.x until tooling supports it - #2007
Merged
Merged
Conversation
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>
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.
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@7package ships only thetsgobinary —node_modules/typescript/libcontains justgetExePath.js,tsc.js, andversion.cjs. The JS compiler API is gone.Tools that reach into that API crash, which is exactly what CI shows (reproduced locally):
TypeError: Cannot read properties of undefined (reading 'Cjs')in@typescript-eslint/typescript-estree(ts.ScriptKindis undefined)TypeError: Cannot read properties of undefined (reading 'fileExists')in ts-jest (ts.sysis undefined); 15/15 suites fail to runCompile TypeScriptpasses becausetscitself works fine — only the API consumers break.The ecosystem is not ready
Even at latest:
>=4.8.4 <6.1.0>=4.3 <7Both exclude 7.x. There is no version combination that makes this bump work today.
This PR
Adds a Dependabot ignore for
typescript7.xwith a comment explaining why and when to drop it.package.jsonalready 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