typescript-migration
БесплатноЗапускает вложенные скриптыНе проверенTypeScript version migration guide (5.x to 6 to 7, tsgo native port). Use for TS 6 tsconfig breaking changes, TS 7 Go rewrite rollout, or TS5xxx deprecation…
от secondsky★ 257 звёзд на GitHubОб этом скилле
TypeScript Migration
Authoritative migration guide for TypeScript 5.x → 6 → 7 (native Go port). Sourced from Microsoft's official announcements.
Status
- Skill Status: Production Ready
- Last Updated: 2026-07-09
- TS 6.0 Released: 2026-03-17 (Final) — last JavaScript-based release
- TS 7.0 Released: 2026-07-08 — native Go port ("Corsa"), stable
- Authoritative Sources:
- TS 7.0 release: https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/
- TS 6.0 beta: https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta/
- TS 6 → 7 diff tracker: https://github.com/microsoft/typescript-go/blob/main/CHANGES.md
- ts5to6 tool: https://github.com/andrewbranch/ts5to6
The Golden Rule
NEVER skip TypeScript 6. The only supported paths are 5.x → 6 → 7.
Skipping TS 6 produces a wall of hard errors because TS 7 removes everything TS 6 deprecated. Use
"ignoreDeprecations": "6.0"only as a temporary pause inside TS 6; it does NOT work in TS 7.
Quick Triage (1 Minute)
- Detect current version — run
scripts/detect-ts-version.sh(readspackage.json). - Classify the path:
5.x→ start withreferences/migration-playbooks.md§ "5.x → 6".6.x→ may go directly to TS 7 (seereferences/ts7-go-rewrite.md).5.xwanting TS 7 → must go 5 → 6 → 7 (no shortcuts).- Intra-version strict-flag rollout (no version change) → see
references/ts-migrating-tool-guide.mdfor the optionalts-migratingtool.
- Audit before changing anything — run
scripts/audit-ts7-breakers.shto detect tooling that breaks under TS 7 (typescript-eslint, ts-morph, ts-node, Vue/Svelte/Astro/MDX/Angular templates, ts-patch, ttypescript, typia,baseUrl,node10,ES5target).
Project-Type Decision Matrix
| Project type | Recommendation | Why |
|---|---|---|
| Greenfield, no API-dependent tooling | Adopt TS 7 directly | Full speedup, no blockers |
| Existing TS project, no special tooling | 5 → 6 → 7 sequentially | TS 6 surfaces every deprecation as a warning first |
| Uses typescript-eslint / ts-morph / API consumers | 5 → 6 → 7 via @typescript/typescript6 side-by-side |
TS 7 has no programmatic API until 7.1 |
| Vue / Svelte / Astro / MDX (Volar-based) | Stay on TS 6 | Volar needs the programmatic API; not yet supported |
| Angular with template type-checking | TS 7 for CLI + TS 6 for editor | Microsoft's official split workaround |
| ts-patch / ttypescript / typia / custom AST transformers | Stay on TS 6 until migrated to Oxc/SWC | Transformer API gone in TS 7 |
TS 6 — Top Breaking Changes (Quick View)
| Change | Old default | TS 6 default | Fix |
|---|---|---|---|
strict |
false | true | Set explicitly or fix errors |
module |
CommonJS | esnext | Set commonjs if needed |
target |
ES3 | es2025 (floating) | Set explicitly |
moduleResolution |
node10 | bundler | Set nodenext for Node targets |
rootDir |
inferred | . (tsconfig dir) |
Set "rootDir": "./src" |
types |
all @types |
[] |
Set "types": ["node"] |
esModuleInterop |
false | true | Remove :false; fix import * as → import |
noUncheckedSideEffectImports |
false | true | Fix typos or set false for bundler CSS |
libReplacement |
true | false | — |
allowSyntheticDefaultImports |
varies | true | — |
Deprecated in 6, HARD ERRORS in 7: target: es5; downlevelIteration; moduleResolution: node | node10 | classic; module: amd | umd | systemjs | none; baseUrl; esModuleInterop: false; allowSyntheticDefaultImports: false; alwaysStrict: false; outFile; module Foo {} keyword; assert { } on imports; /// <reference no-default-lib="true"/>; tsc <file> + tsconfig present (use --ignoreConfig).
For full detail per change including PR citations, examples, and the official ts5to6 codemod usage, load references/ts6-breaking-changes.md.
TS 7 — What Changed (Quick View)
- Native Go port; the standard
typescriptnpm package IS TS 7 (npm install -D typescript). - All TS 6 deprecations become hard errors (see table above).
- No programmatic Compiler API in 7.0 — TS 7.1 will ship a new one. Affects ts-morph, ts-node, ts-jest, ts-loader, ts-patch, ttypescript, typia, typescript-eslint (use the side-by-side pattern below).
preserveConstEnumsremoved — always emits const enums.stableTypeOrderingnowtrueby default; cannot be turned off.- NEW flags:
--checkers N(default 4),--builders N,--singleThreaded. - NEW breaking change: template literal types preserve Unicode code points (not UTF-16 code units).
- NEW: JS file handling reworked (Closure-style
@enum,@class,?, postfix!no longer special). - Performance (official, real OSS codebases): 7.7x–11.9x faster builds (up to 16.7x with
--checkers 8); 6–26% lower memory.
Full install options, compatibility matrix, performance tables, and known issues in `references/ts7
Установить typescript-migration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл typescript-migration?
TypeScript version migration guide (5.x to 6 to 7, tsgo native port). Use for TS 6 tsconfig breaking changes, TS 7 Go rewrite rollout, or TS5xxx deprecation codes.
Как установить скилл typescript-migration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typescript-migration запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic