tsgo2tsc
v0.1.0
Published
Migrate projects from @typescript/native-preview and tsgo to the TypeScript 7 tsc flow.
Maintainers
Readme
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 --writeDevelopment
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 --yesWatch the production bundle with bun run build:watch.
Commands
| Command | Description |
| ---------- | ------------------------------------------------ |
| scan | Scan the project and report migration readiness |
| migrate | Plan or apply migration from tsgo to tsc |
| doctor | Check migration health and verification |
| rollback | Restore files from the latest migration snapshot |
Migration modes
- stable —
typescript@^7.0.0andtsc - nightly —
typescript@nextandtsc - compat-stable —
@typescript/nativealiased to TS7 +typescriptaliased 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.
Links
License
MIT
