tsgo2tsc
v0.0.1
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 ../my-project --write --install --test
bunx tsgo2tsc migrate --nightly --writeCommands
| 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
