build(deps): adopt TypeScript 7 native tsc with TS6 API side-by-side - #57
Closed
StringKe wants to merge 1 commit into
Closed
build(deps): adopt TypeScript 7 native tsc with TS6 API side-by-side#57StringKe wants to merge 1 commit into
StringKe wants to merge 1 commit into
Conversation
TypeScript 7 is the native Go compiler and no longer ships the stable programmatic API. Follow the official side-by-side layout: install the native compiler as @typescript/native (provides tsc 7.0.2) and keep the JS 6.x API under the typescript package name via @typescript/typescript6 so astro check and compiler-API consumers keep working until 7.1. Signed-off-by: StringKE <stringke.me@gmail.com>
Owner
Author
|
Closing: keep TypeScript 6 until Astro/@astrojs/check and the TS 7.1 stable JS API support a single-package upgrade. Dependabot bare TS7 bumps remain blocked for the same reason. |
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.
Summary
Adopt TypeScript 7's native
tscwhile keeping the TypeScript 6 JS compiler API available under thetypescriptpackage name.TypeScript 7 no longer ships a stable programmatic API. Naive bumps (Dependabot #53) break:
astro check/@astrojs/language-server(requires the JS API)apps/serveri18n UI audit (ts.createSourceFile/ScriptTarget.Latest)This follows the official TS 7.0 side-by-side guidance:
@typescript/native(npm:typescript@^7.0.2)tsc7.0.2typescript(npm:@typescript/typescript6@^6.0.2)tsc6Verification
tsc --version-> 7.0.2require('typescript').version-> 6.0.3 with full compiler APIpnpm typecheckPASS (includingastro check)pnpm testPASSpnpm --filter @xid-kit/site checkPASSCloses
Supersedes Dependabot #53.