Skip to content

build(deps): adopt TypeScript 7 native tsc with TS6 API side-by-side - #57

Closed
StringKe wants to merge 1 commit into
mainfrom
chore/typescript-7
Closed

build(deps): adopt TypeScript 7 native tsc with TS6 API side-by-side#57
StringKe wants to merge 1 commit into
mainfrom
chore/typescript-7

Conversation

@StringKe

Copy link
Copy Markdown
Owner

Summary

Adopt TypeScript 7's native tsc while keeping the TypeScript 6 JS compiler API available under the typescript package 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/server i18n UI audit (ts.createSourceFile / ScriptTarget.Latest)

This follows the official TS 7.0 side-by-side guidance:

Package Role
@typescript/native (npm:typescript@^7.0.2) Native compiler; provides tsc 7.0.2
typescript (npm:@typescript/typescript6@^6.0.2) JS 6.x API for tools; also provides tsc6

Verification

  • tsc --version -> 7.0.2
  • require('typescript').version -> 6.0.3 with full compiler API
  • pnpm typecheck PASS (including astro check)
  • pnpm test PASS
  • pnpm --filter @xid-kit/site check PASS

Closes

Supersedes Dependabot #53.

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>
@StringKe

Copy link
Copy Markdown
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.

@StringKe StringKe closed this Aug 11, 2026
@StringKe
StringKe deleted the chore/typescript-7 branch August 11, 2026 12:29
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