Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от secondsky★ 257 звёзд на GitHub

Об этом скилле

TypeScript Migration

Authoritative migration guide for TypeScript 5.x → 6 → 7 (native Go port). Sourced from Microsoft's official announcements.

Status

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)

  1. Detect current version — run scripts/detect-ts-version.sh (reads package.json).
  2. Classify the path:
    • 5.x → start with references/migration-playbooks.md § "5.x → 6".
    • 6.x → may go directly to TS 7 (see references/ts7-go-rewrite.md).
    • 5.x wanting TS 7 → must go 5 → 6 → 7 (no shortcuts).
    • Intra-version strict-flag rollout (no version change) → see references/ts-migrating-tool-guide.md for the optional ts-migrating tool.
  3. Audit before changing anything — run scripts/audit-ts7-breakers.sh to 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, ES5 target).

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 typescript npm 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).
  • preserveConstEnums removed — always emits const enums.
  • stableTypeOrdering now true by 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

Полный SKILL.md на GitHub

Установить typescript-migration в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/ecosystem-compatibility.mdreferences/migration-playbooks.mdreferences/ts-migrating-tool-guide.mdreferences/ts6-breaking-changes.mdreferences/ts7-go-rewrite.mdreferences/unverified-claims.mdscripts/README.mdscripts/audit-ts7-breakers.shscripts/compare-tsc7-tsc6.shscripts/detect-ts-version.shscripts/ts6-deprecation-scan.shtemplates/github-actions-tsc-tsc6.ymltemplates/package.side-by-side.jsontemplates/tsconfig.ts6.jsontemplates/tsconfig.ts7.json

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить typescript-migration с