Repository navigation
build(npm): hold typescript below v7 in renovate config - #133
Merged
Merged
Conversation
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
1 task
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.
What
Adds a repo-local
renovate.jsonpackage rule pinningtypescriptto<7so 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 ontodevand running the full suite locally:tscnpm install[email protected]peer-depstypescript ">=4.8.4 <6.1.0"npm run package(ncc →dist/)… (reading 'fileExists')npm run lint(typescript-eslint)… (reading 'Cjs')npm test(ts-jest)… (reading 'readFile')Only bare
tscworks;@vercel/ncc,ts-jest, andtypescript-eslintall break. This is also why Renovate'sartifactsstep 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