Closed
feat: upgrade TypeScript peer dep and devDep to v7.0.1-rc#120
Conversation
Copilot
AI
changed the title
[WIP] Update @knighted/duel to support TypeScript 7.0.1-rc
feat: upgrade TypeScript peer dep and devDep to v7.0.1-rc
Jun 22, 2026
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.
Upgrades
@knighted/duelto support TypeScript 7.0.1-rc as both a dev and peer dependency, and fixes thenpm installERESOLVE conflict caused by npm's semver pre-release exclusion rules.Dependency changes
devDependencies.typescript:^6.0.3→^7.0.1-rcpeerDependencies.typescript:>=5.5.0 <7→>=5.5.0 <8"typescript": "$typescript"tooverrides— npm's semver pre-release rules exclude7.0.1-rcfrom matching>=5.0.0comparators (e.g.eslint-plugin-n'speerOptional), causingERESOLVE; the override forces all dependents to share the root's typescript versionTypeScript 7 breaking changes
assert { 'resolution-mode': 'import' }towith { 'resolution-mode': 'import' }inplain/src/index.tsandcjsProject/src/cjs.ctsexports.fn = fnassignments before function declarations. Fixed a source map integration test that searched for a bare identifier ('greet') and was hitting the new unmapped hoisted line — changed to search for'function greet'insteadESLint workaround (
scripts/patch-es-x.js)TypeScript 7 dropped its default CJS export —
require('typescript')now throwsERR_PACKAGE_PATH_NOT_EXPORTEDinstead ofMODULE_NOT_FOUND.eslint-plugin-es-x'soptionalRequirehelper only silencesMODULE_NOT_FOUND, so ESLint crashes at startup. Apostinstallscript patches the installed module to also catchERR_PACKAGE_PATH_NOT_EXPORTED. This is a stopgap untileslint-plugin-es-xreleases a fix.Miscellaneous
*.tsbuildinfoto.gitignore; TypeScript 7's incremental builds were generating these in test fixture directoriesduel's sequential build orchestration (await runPrimaryBuild()→await runBuild()) is already safe relative to TypeScript 7's new multi-threaded compilerOriginal prompt
Created from VS Code.