chore(deps): build with TypeScript 7 native compiler#1690
Closed
xobotyi wants to merge 1 commit into
Closed
Conversation
typescript@7 ships only native binaries with no JS compiler API, and typescript-eslint supports TS <6.1 (TS 7 support is tracked for >=7.1). Uses the officially documented side-by-side layout: the 'typescript' package stays on 6.0.3 for API consumers (typescript-eslint, editors), typescript@7 is installed under the '@typescript/native' alias for builds. - build runs the native tsc via the tsc:native script: yarn links .bin/tsc from the package named 'typescript', so a plain tsc call resolves to 6.0.3. - tsconfig: TS 6+ requires explicit rootDir for the build and no longer auto-includes @types packages; 'types: [node]' restores the 'process' global that useCookieValue and the storage hooks check. - yarn 4.10.2 -> 4.17.1: the older builtin typescript compat patch fails to fetch typescript@7 (expects the removed lib/_tsc.js). - dist output is identical to a TS 6 build except useIsomorphicLayoutEffect's declaration, inferred as 'typeof useLayoutEffect' instead of the signature-identical 'typeof useEffect'. Once typescript-eslint supports TS >=7.1, the side-by-side setup can collapse to a single typescript@7 dependency.
xobotyi
force-pushed
the
deps/typescript-7
branch
from
July 22, 2026 11:58
a16d594 to
ce0c90b
Compare
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.
Switches the build to
typescript@7.0.2(native compiler) using the officially documented side-by-side layout:typescriptmoves 5.9.3 → 6.0.3 and stays on 6.x — typescript@7 ships no JS compiler API, and typescript-eslint only supports TS <6.1 (TS 7 support tracked for ≥7.1). API consumers (typescript-eslint via @ver0/eslint-config, editors) keep working against the TS 6 API.@typescript/native(npm alias fortypescript@^7.0.2) provides the nativetsc, used by the build via the newtsc:nativescript. Explicit path because yarn links.bin/tscfrom the package namedtypescript, so a baretscresolves to 6.0.3.rootDir(required by TS 6+) andtypes: ["node"](TS 6+ no longer auto-includes@types/*; restores theprocessglobal used by cookie/storage hooks).lib/_tsc.js).Emit parity:
dist/byte-identical to a TS 6 build exceptuseIsomorphicLayoutEffect's declaration —typeof useLayoutEffectinstead of the signature-identicaltypeof useEffect.Follow-up: once linting moves to oxc (or typescript-eslint ships TS ≥7.1 support), the side-by-side setup can collapse to a single
typescript@7dependency. Supersedes #1677.Stacked on #1689; retargets to master when it merges.
Verification: build (tsc 7.0.2) clean, lint 0 problems (eslint 9), 527/527 tests pass.