New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

tsgo2tsc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsgo2tsc

Migrate projects from @typescript/native-preview and tsgo to the TypeScript 7 tsc flow.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

tsgo2tsc

Migrate projects from @typescript/native-preview and tsgo to the TypeScript 7 tsc flow.

Supports stable TypeScript, nightly TypeScript, and compatibility mode for tools that still need the TypeScript 6 compiler API.

Usage

bunx tsgo2tsc scan
bunx tsgo2tsc scan ../my-project
bunx tsgo2tsc migrate --dry-run
bunx tsgo2tsc migrate --write --install --test
bunx tsgo2tsc migrate --nightly --write

Development

Run the CLI directly from source (no build step):

bun dev scan
bun dev scan ../other-project
bun dev migrate ../other-project --dry-run
bun dev migrate --cwd ../other-project --write --yes

Watch the production bundle with bun run build:watch.

Commands

CommandDescription
scanScan the project and report migration readiness
migratePlan or apply migration from tsgo to tsc
doctorCheck migration health and verification
rollbackRestore files from the latest migration snapshot

Migration modes

  • stable — typescript@^7.0.0 and tsc
  • nightly — typescript@next and tsc
  • compat-stable — @typescript/native aliased to TS7 + typescript aliased to TS6 API
  • compat-nightly — same as compat but with typescript@next

Compatibility mode is auto-detected when tools like typescript-eslint, typedoc, @microsoft/api-extractor, or direct import "typescript" usage are found.

  • Repository
  • Issues

License

MIT

Keywords

cli

FAQs

Package last updated on 17 Jul 2026

Related posts