Skip to content

chore: migrate to typescript@7 stable, remove tsgo/native-preview#804

Merged
sam-goodwin merged 1 commit into
mainfrom
claude/typescript-7-tsgo-removal-02a264
Jul 10, 2026
Merged

chore: migrate to typescript@7 stable, remove tsgo/native-preview#804
sam-goodwin merged 1 commit into
mainfrom
claude/typescript-7-tsgo-removal-02a264

Conversation

@sam-goodwin

Copy link
Copy Markdown
Contributor

TypeScript 7 is stable, so the @typescript/native-preview nightly and all the tsgo machinery around it are obsolete — the native compiler now ships as plain tsc in the typescript package.

 // catalog
-"typescript": "^7.0.1-rc",
+"typescript": "^7.0.2",

 // devDependencies
-"@effect/tsgo": "^0.14.6",
-"@typescript/native-preview": "7.0.0-dev.20260618.1",
+"@effect/tsgo": "0.16.0",

 // prepare / setup
-"prepare": "husky && effect-tsgo patch && node scripts/link-native-preview-tsgo.mjs",
+"prepare": "husky && effect-tsgo patch",
  • @effect/tsgo stays (bumped): it is the Effect language service for the native compiler, and since 0.15 effect-tsgo patch patches the workspace typescript@7 install directly. Pinned to 0.16.0 because newer releases are still inside bun's 72h minimumReleaseAge window and their platform binaries fail to resolve as transitive optional deps — bump once they age out.
  • scripts/link-native-preview-tsgo.mjs deleted: it existed only so the "TypeScript (Native Preview)" VS Code extension could find the hoisted nightly binary. .vscode now points typescript.tsdk at node_modules/typescript/lib, and the extension recommendation is removed.
  • @typescript/native-preview-* entries dropped from bunfig.toml excludes; stale lock entries pruned.
  • Comment-only rewords of tsgotsc in tsconfig.json, Providers.ts, RpcServer.test.ts, release.yml.
  • Bumps the distilled submodule to the same migration on its side (chore: migrate to typescript@7 stable, drop tsgo/native-preview distilled#371).

bun tsc -b passes clean across the workspace with tsc 7.0.2, and effect-tsgo patch verified against the stable package on a fresh install.

🤖 Generated with Claude Code

- bump catalog typescript ^7.0.1-rc -> ^7.0.2
- remove @typescript/native-preview and the link-native-preview-tsgo.mjs
  editor shim; effect-tsgo patch now targets the workspace typescript@7
  install directly (pinned 0.16.0: newer releases are still inside bun's
  minimumReleaseAge window and their platform binaries fail to resolve)
- point .vscode at node_modules/typescript/lib and drop the native-preview
  extension recommendation
- bump distilled submodule (same migration on the distilled side)
- reword tsgo comments to tsc

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@alchemy-version-bot

Copy link
Copy Markdown
Contributor

Install the packages built from this commit:

alchemy

bun add alchemy@https://pkg.ing/alchemy/5ab6a39

@alchemy.run/better-auth

bun add @alchemy.run/better-auth@https://pkg.ing/@alchemy.run/better-auth/5ab6a39

@alchemy.run/pr-package

bun add @alchemy.run/pr-package@https://pkg.ing/@alchemy.run/pr-package/5ab6a39

@sam-goodwin sam-goodwin merged commit 546ca57 into main Jul 10, 2026
9 checks passed
@sam-goodwin sam-goodwin deleted the claude/typescript-7-tsgo-removal-02a264 branch July 10, 2026 20:08
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