Skip to content

build(npm): hold typescript below v7 in renovate config - #133

Merged
c-vigo merged 1 commit into
devfrom
chore/hold-typescript-below-v7
Jul 16, 2026
Merged

c-vigo merged 1 commit into
devfrom
chore/hold-typescript-below-v7

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What

Adds a repo-local renovate.json package rule pinning typescript to <7 so Renovate stops proposing the v7 major.

Why

TypeScript 7.0 is the native Go rewrite (tsgo) and drops the JS compiler-internal APIs that the rest of the toolchain reaches into. Verified by rebasing #128 onto dev and running the full suite locally:

Step Result
tsc ✅ compiles clean
npm install ❌ ERESOLVE — [email protected] peer-deps typescript ">=4.8.4 <6.1.0"
npm run package (ncc → dist/) ❌ crash — … (reading 'fileExists')
npm run lint (typescript-eslint) ❌ crash — … (reading 'Cjs')
npm test (ts-jest) ❌ crash — … (reading 'readFile')

Only bare tsc works; @vercel/ncc, ts-jest, and typescript-eslint all break. This is also why Renovate's artifacts step failed on #128 (it could not regenerate the lockfile).

Revisit when those three ship TypeScript 7-compatible releases.

Closes #132. Supersedes #128 (closed).

Refs: #132

TypeScript 7.0 is the native Go rewrite (tsgo) and drops the JS
compiler-internal APIs that @vercel/ncc (dist bundling), ts-jest, and
typescript-eslint reach into. Bare tsc compiles clean, but package,
test, and lint all crash under v7, so the major cannot land until the
toolchain catches up. Pin typescript to <7 so Renovate stops proposing
it (this is also why Renovate could not regenerate the lockfile in #128).

Refs: #132
@c-vigo
c-vigo merged commit c6a181e into dev Jul 16, 2026
22 checks passed
@c-vigo
c-vigo deleted the chore/hold-typescript-below-v7 branch July 16, 2026 16:58
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