TypeScript 6 is not the newest compiler. But it is still the practical bridge for projects that need the JS compiler API or tooling that has not completed its TypeScript 7 transition. A safe migration starts on TypeScript 5.9: make hidden defaults clear, move to 6.0.3, test the entire toolchain, and only then decide whether each package can adopt 7.0.2.
Use this eight-step sequence:
- Pin the current compiler and lockfile, and record clean build, test, and type-check results.
- List each
tsconfig.json, project reference, compiler-API import, IDE plugin, framework checker, bundler, test runner, and CI image. - While still on TypeScript 5.9, set relied-on defaults explicitly, including
types,rootDir,strict,module,target, and module resolution. - Remove or replace options and syntax that TypeScript 6 deprecates or rejects.
- Install TypeScript 6.0.3 on a migration branch and fix errors by category instead of package order.
- Run clean installs, type checks, builds, tests, lint, declaration emit, watch mode, and IDE checks across sample packages.
- Test TypeScript 7.0.2 in a split lane, including tools that import
typescriptand frameworks that process mixed-file languages. - Roll out through canary packages, with a lockfile rollback and named owners for each failed validation gate.
TypeScript 6 in 2026: who still needs it
The TypeScript 6 release date was March 23, 2026. The latest patch in the 6.0 line is 6.0.3. TypeScript 7 arrived on July 8, 2026, and its current stable package is 7.0.2 as of August 27. That timing changes the migration question: teams are no longer deciding whether to wait for a future native compiler. They are deciding where the support boundary still sits in their own toolchain.
TypeScript 6 remains the right temporary target for four common cases. The first is a tool that imports the old compiler API to parse files, create programs, transform syntax, or host a language service. TypeScript 7.0 ships the new native tsc, but the release does not expose the previous API. Microsoft says a new programmatic API is planned for a later release.
The second case is a mixed-file-language workflow. Vue single-file components, Astro components, Svelte files, MDX, and Angular templates do more than pass plain .ts files to tsc. Their checkers and IDE plugins often embed or extend TypeScript services. Microsoft’s TypeScript 7 post warned that these workflows could still need TypeScript 6 at the July release. Check the current framework CLI, language server, IDE extension, and release notes before each upgrade.
The third case is a monorepo where the main app can use TypeScript 7 but repo utilities still import typescript. A code generator, ESLint parser, API extractor, test transformer, or custom build script may create an API dependency that app teams do not see. One incompatible utility can make a repo-wide version bump look impossible even when most packages are ready.
The fourth case is a controlled bridge. A team may adopt TypeScript 6 first to expose deprecated config and behavior before TypeScript 7 turns those deprecations into unsupported settings. This is a migration tactic, not a reason to stay on 6 without a deadline.
Direct tsc users with no old API client, mixed-file-language dependency, or failing integration should test TypeScript 7 now. Its native Go implementation is the supported main compiler. The TypeScript team reported full-build speedups from 7.7 times to 11.9 times on five named open-source projects.
The practical rule is simple: stay on TypeScript 6 only for a named, reproducible support need. Record the owner, affected command, failing version, and retest date. If a team cannot name the blocker, it does not have a migration plan. It has an unmeasured assumption.
What changed in TS 6 at a glance
The TS 6 breaking changes are unusually operational since many of them affect config that projects omitted. A repo can compile on 5.9 without declaring its planned setup, then fail or emit files to another path on 6.0. The vendor TS 6 release notes are the source of truth. The table below turns the highest-impact items into symptoms and actions.
| Change in TS 6 | Likely symptom | Migration action |
|---|---|---|
strict defaults to true |
New nullability, implicit any, function, or property errors |
Set the planned value on 5.9, then schedule strictness work on its own if needed |
module defaults to esnext |
Output format or downstream runtime result changes | Set module for each runtime and bundler clearly |
target defaults to the current supported year, currently es2025 |
Newer syntax reaches an older runtime | Pin the oldest runtime target the product actually supports |
types defaults to [] |
process, test globals, runtime globals, or ambient package names disappear |
List needed global type packages per config |
rootDir defaults to the config folder |
Output moves from dist/index.js to dist/src/index.js, or TS5011 appears |
Set rootDir in each emitting config |
noUncheckedSideEffectImports defaults to true |
Misspelled CSS or setup imports fail lookup | Fix imports or declare intentional asset modules |
libReplacement defaults to false |
A project that replaces built-in libs stops applying replacements | Enable it only in configs that by choice use replacement packages |
baseUrl is deprecated |
Deprecation errors and a blocked TS 7 move | Make paths values project-relative and remove baseUrl |
moduleResolution: classic is removed |
Config error | Use bundler or nodenext according to runtime result |
moduleResolution: node or node10 is deprecated |
Deprecation error | Move bundled apps to bundler, or Node apps to nodenext |
target: es5 and downlevelIteration are deprecated |
Deprecation errors and no TS 7 support | Target ES2015 or newer, or use a split downlevel compiler |
outFile is removed |
Config error and missing concatenated output | Use a bundler for single-file output |
esModuleInterop: false is unsupported |
Config error or changed import form | Adopt interop result and test CommonJS imports |
Legacy module Foo {} namespaces are rejected |
Syntax error | Use namespace Foo {}; ambient declare module remains supported |
Import asserts syntax is rejected |
Syntax error | Use import attributes with with |
File arguments beside a tsconfig.json produce TS5112 |
One-file CI or IDE helper fails | Use a project config, or pass --ignoreConfig deliberately |

A visual summary of the output-path problem caused by implicit TS 6 defaults.
Not each TS 6 feature is a migration hazard. The compiler supports #/ subpath imports under nodenext and bundler, lets moduleResolution: bundler work with CommonJS output, and adds an es2025 target and lib. It also adds Temporal type files under esnext, types for new Map and WeakMap upsert methods, and RegExp.escape types.
The new stableTypeOrdering flag exists specifically to compare TS 6 with TS 7. It makes built and displayed type ordering more like the native compiler. The vendor notes warn that the flag can slow checks by as much as 25% on some codebases, so use it as an error lane rather than a long-term default.
One subtle point matters for planning. TS 6 allows many deprecated options when ignoreDeprecations is set to "6.0". But TS 7 removes support for them. Suppression can keep a build green during a short bridge. It cannot be the end state.
Preflight before changing the compiler version
A TS 5 to 6 migration should begin with proof from the current repo. Do not start by editing each config or installing the new compiler. First create a base run that lets reviewers distinguish an existing failure from a migration regression.
Freeze a reproducible starting point
Use a dedicated branch or worktree. Commit or if not preserve the package manifest and lockfile before the version change. Record the Node, package-manager, operating-system, CI-image, and IDE-add-on versions that produced the base run.
Run the same commands that block live changes. In a typical npm workspace, that may look like this:
node --version
npm --version
npm ci
npm run typecheck
npm run build
npm test
npm run lint
Save durations for type checking, type file emit, build, tests, and a sample watch-mode update. Performance is not the first correctness gate. But a recorded base run helps detect a new hot path or a TS 7 improvement without relying on memory.
Capture existing errors even when the base run command exits well. Some repos suppress errors, skip packages, or run other configs in local and CI environments. Store the actual command, working folder, setup flags, and config path beside each result.
List each config path
Find both named and built configs. A simple file search is a start:
find . -name 'tsconfig*.json' -not -path '*/node_modules/*'
On Windows PowerShell, use:
Get-ChildItem -Recurse -Filter 'tsconfig*.json' |
Where-Object FullName -notmatch 'node_modules'
For each config, record whether it emits JS, emits type files, type-checks only, extends another config, or runs in project references. Also record the owning package, runtime, bundler, test runner, and CI command. A shared base config can change dozens of packages. But a package-level override can hide the exact default that later breaks.
Run tsc --showConfig -p path/to/tsconfig.json on TS 5.9 and save the normalized result. The output reveals inherited options and final file lists. It does not reveal each external tool’s result. So keep it beside the repo list rather than treating it as the whole audit.
Find compiler-API and language-service consumers
Search manifests and source for direct imports from typescript. Include CommonJS loads, dynamic imports, and packages that list TS as a peer dependency.
rg -n 'from ["'"']typescript["'"']|require\(["'"']typescript["'"']\)|import\(["'"']typescript["'"']\)' .
rg -n '"typescript"\s*:' --glob 'package.json' .
Then inspect the tools behind lint, test, code generation, API extraction, docs, and web tool checking. A package can use the compiler API through a dependency even when the repo has no direct import. Lockfile inspection and tool release notes are part of the list.
Do the same for IDE and mixed-file-language paths. Vue’s vendor guide tells single-file-component projects to use vue-tsc for command-line checking. Astro’s guide says plain tsc ignores .astro files and directs teams to astro check. Replacing those commands with raw tsc would reduce coverage, not test the migration.
Define success and rollback before the upgrade
Write the gates in advance. A clear list includes zero unexpected errors, identical public type files except reviewed ordering changes, successful web tool checks, no missing built output, IDE errors that match CI, and stable runtime tests.
Set a rollback trigger. Examples include a blocked live build, a new type file change outside the approved diff, an IDE failure affecting the canary team, or a type-check duration above an agreed threshold. Assign one owner who can revert the lockfile and compiler change without waiting for a new migration meeting.

Airbnb’s ts-migrate diagram illustrates why migration automation is a staged pipeline with reviewable transformations.
Stage 1: make TS 5.9 defaults explicit
The safest TS 6 migration begins before TS 6 is installed. Add explicit settings while the repo still uses 5.9, then verify that output and errors remain unchanged. This separates config intent from compiler behavior.
Declare ambient type packages per setup
TS 5.9 searches visible node_modules/@types folders when types is omitted. In a hoisted monorepo, a package can by chance see globals installed for another package. TS 6 changes the default to an empty list.
Set only the globals a config needs:
{
"compilerOptions": {
"types": ["node"]
}
}
A test config might add its runner, while a browser config may by choice use an empty list. Keep runtime globals split when possible:
{
"compilerOptions": {
"types": ["node", "vitest/globals"]
}
}
Do not use "types": ["*"] as a long-term shortcut. The vendor release notes provide it as a way to restore the old enumeration result. But clear packages improve predictability and can reduce work. In a disposable fixture for this guide, TS 5.9 accepted a custom ambient package automatically. TS 6.0.3 returned TS2304: Cannot find name 'legacyGlobal' until the package was listed.
Set rootDir for each emitting project
Before TS 6, rootDir was commonly inferred from input files. In 6.0, a config-based build uses the folder containing the tsconfig.json as the default. That can preserve compilation while changing the output tree.
Set the planned source root next to outDir:
{
"compilerOptions": {
"rootDir": "src",
"outDir": "dist"
},
"include": ["src"]
}
The fixture used for this article produced dist/index.js on 5.9.3. With no clear rootDir, 6.0.3 reported TS5011 and built dist/src/index.js. Adding "rootDir": "src" restored dist/index.js.
Project-reference repos need extra care. A package may include built types, test files, or shared sources outside its package folder. Choose a root that contains each built input, or split build and test configs so live output does not mirror an unintended workspace path.
Pin strictness, module format, and runtime target
Set strict to the current planned value before the upgrade. A team that plans to enable strict mode should do that as a split change with its own review. Combining compiler migration, strict adoption, and app refactoring makes rollback much harder.
Pin module and target from runtime proof. A bundled web app may use module: "preserve" or "esnext" with moduleResolution: "bundler". A Node app usually needs a nodenext pairing that follows the package’s ESM or CommonJS rules. A lib should test the module formats it publishes, not just the format its own tests consume.
Do not pin the historical default merely since it is familiar. TS 6 deprecates ES5 output, and TS 7 does not support it. If the product truly needs ES5, document the supported browsers or mixed-file runtime and add a split transpilation step. If not select the oldest ECMAScript level the real runtime matrix requires.
Replace baseUrl with clear path mappings
paths has not needed baseUrl since TS 4.1. Many configs still carry both, which lets baseUrl act as a general module lookup root. TS 6 deprecates that result since it can accept imports that the runtime or bundler cannot resolve.
Convert mappings from this form:
{
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"@app/*": ["app/*"]
}
}
}
to project-relative values:
{
"compilerOptions": {
"paths": {
"@app/*": ["./src/app/*"]
}
}
}
Confirm that the bundler, test runner, runtime loader, and IDE use the same alias. TS paths describes lookup to the checker; it does not rewrite the built import by itself. If the project also evaluates a runtime switch, see the Bun runtime production guide.
The experimental ts5to6 command can adjust baseUrl and rootDir across related configs. Its repo says it walks project references and related extends chains. Review each diff, since the tool covers those two config changes, not the full TS 6 migration guide.
Stage 2: install TS 6 and fix errors by class
Install an exact version on the migration branch first. Pinning 6.0.3 makes local, CI, and review results comparable:
npm install --save-dev --save-exact typescript@6.0.3
npx tsc --version
Regenerate the lockfile with the repo’s normal package manager. Do not mix npm, pnpm, Yarn, or Bun lockfile result during the compiler change. A package-manager migration is a split project.
Run the root type-check command once and save the entire error output. Group errors by cause before editing app code. Fixing packages in folder order often repeats the same config workaround and hides the shared root.
Fix TS5011 and output-layout changes first
TS5011 tells a config-based build to set rootDir when TS detected a common source folder that differs from the new default. Fix the config rather than moving source files to silence the message. Then compare the full built file list with the 5.9 base run.
Check JS, source maps, type files, type file maps, and build-info files. A build can exit well while a package manifest still points to the old type file location. Test package packing or publication when the repo ships libs.
Delete stale output before comparing paths. If not a client can read an old file from dist/index.js while the new build writes dist/src/index.js, making a broken migration look healthy.
Restore only planned global types
Errors for process, Buffer, describe, expect, Bun globals, or custom ambient type files usually point to the new types default. Add the correct package to the config that owns that setup. Do not add Node types to each browser package or test-runner globals to live builds.
If a global comes from a package that is not in the package manifest, add an explicit development dependency. Hoisting is not an ownership model. A clean isolated install should resolve the same type files as the root workspace.
Some globals come from lib, not @types. DOM APIs, ES built-ins, workers, and newer ECMAScript features need an accurate lib list. Avoid solving a missing runtime API by adding type files for an environment where the code will not run.
Resolve module settings from runtime result
Replace moduleResolution: "classic". TS 6 removes it. Replace the deprecated node or node10 setting as part of the path to TS 7. Choose bundler for code whose imports are interpreted by a modern bundler, or nodenext for code executed with Node’s module rules.
TS 6 newly permits moduleResolution: "bundler" with module: "commonjs". The release notes describe this as a possible upgrade path. But they still recommend planning for module: "preserve" with bundler lookup or a nodenext config according to project type. Treat the mixed setting as a bridge that needs runtime tests.
esModuleInterop and allowSyntheticDefaultImports can no longer be set to false. Inspect imports that treated a CommonJS export as a namespace. The safer interop result may require a default import. But the correct runtime form depends on the package and built module system.
Replace unsupported legacy output and syntax
Remove outFile and send bundling to a real bundler. TS still owns type checking and declaration emit; it no longer concatenates project output through this option.
Move module Foo {} namespace declarations to namespace Foo {}. Do not change declare module "package-name" ambient declarations; the vendor notes say that form remains supported.
Replace import assertions that use asserts with import attributes that use with. Test the syntax through the selected runtime and bundler, since parser support outside TS is part of the live path.
Remove /// <reference no-default-lib="true"/> and use noLib or intentional lib replacement. If the project relied on libReplacement, set it clearly since its default is now false.
Repair one-file compiler commands
On TS 5.9, tsc src/file.ts silently ignores a nearby tsconfig.json. TS 6 returns TS5112 instead. The change exposes a command that may never have used the options its owner expected.
Prefer a small project config:
{
"extends": "./tsconfig.json",
"include": ["src/file.ts"]
}
Then run:
tsc -p tsconfig.file.json --noEmit
If the command truly needs compiler defaults and must ignore the project, use tsc --ignoreConfig src/file.ts. Make that choice visible in the script. The fixture for this article confirmed that the old command exits cleanly on 5.9.3 and produces TS5112 on 6.0.3.
Review inference changes as code changes
TS 6 improves inference for object methods that do not use this. But an inference change can still alter errors or built declarations. Avoid broad casts to restore the old result. Prefer an explicit type argument, parameter type, return type, or named intermediate value that states the planned contract.
Review declaration diffs closely in shared libs. A changed union order may be cosmetic; a widened or narrowed public type is not. Snapshot tests are clear only when reviewers can distinguish order noise from semantic changes. For React frontends, pair compiler checks with React Compiler adoption gates and React component communication patterns.
Stage 3: test the whole toolchain
A passing root tsc command proves only that one command passed. The compiler runs in IDEs, web tool checkers, bundlers, test transformers, lint parsers, type file tools, docs tools, and CI orchestration. Test each path that developers or releases actually use.
Start from a clean install
Use the repo’s supported package manager and CI runtime. Remove built output through the project’s normal clean script, create a fresh dependency install, and run without a warm compiler cache. Record the exact lockfile hash and compiler version.
For a monorepo, run both the root orchestration and sample package commands. A root task runner may skip unchanged packages or restore cached results. Force the migration branch to execute real type checks at least once.
Check that no global TS installation runs. Commands should resolve the workspace compiler. Print the version at the start of CI and in bug reports.
Compare errors and built artifacts
Run no-emit checks and each emit mode the repo supports. Include JS, type files, type file maps, source maps, incremental build info, composite project references, and package packing.
Compare file lists and public type files with the 5.9 base run. Review changes instead of requiring byte equality, since stableTypeOrdering and inference improvements can reorder types. Fail when output moves unexpectedly or a public contract changes without approval.
Test clean and incremental builds. Then change a shared type and confirm that downstream project references rebuild. Delete a referenced output and verify that the build repairs it instead of trusting stale metadata.
Exercise runtime and transformation paths
Run unit, link, end-to-end, and smoke tests. TS does not test runtime data, package export maps, or each module interop edge. A clean type check can still produce an import that the runtime or bundler handles differently.
Run each bundler in live mode. Check server-side rendering, code splitting, workers, test environments, and command-line utilities where they exist. Inspect warnings that the old pipeline ignored.
For libs, install the packed artifact into a small client rather than testing only source-to-source workspace links. Verify both ESM and CommonJS entry points when the package claims to support both.
Test IDEs, watch mode, and language tooling
Open a sample package with the workspace TS version selected. Confirm errors, autocomplete, go-to-definition, rename, references, and quick fixes. Compare a known error in the IDE with the CI result.
Run watch mode, change a leaf file, then change a shared type. Watch for missed rebuilds, duplicate errors, high memory use, or a process that stops after the first config error.
Web tool apps need their vendor checker. Use vue-tsc, astro check, svelte-check, Angular’s build and language service, or the current documented equivalent. Check the IDE add-on on its own since a web tool CLI and IDE may embed other TS services.
Test lint, tests, and compiler-API tools
Run each ESLint config that parses TS. Confirm the parser’s supported TS range in its current docs. Warnings about an unsupported version are migration failures until the tool owner accepts and tests the risk.
Run test transformers and coverage instrumentation on both app and test-only syntax. Check code tools, schema tools, API extractors, docs builders, and custom scripts. Any package that imports typescript belongs in the support list for TS 7.
Keep the commands in a validation matrix:
| Surface | Needed command | Expected proof | Owner |
|---|---|---|---|
| Compiler | Repo type-check | No unexpected errors | Platform or package team |
| Emit | Live build and type file build | Reviewed file and API diff | Lib owner |
| Runtime | Tests and smoke checks | Same supported result | App owner |
| IDE | Workspace-version inspection | Errors match CI | Developer-experience owner |
| Web tool | Vendor web tool checker | Templates and mixed-file files checked | Web tool owner |
| Tooling | Lint, docs, tools, API tools | Supported version and passing run | Tool owner |
| CI | Clean and incremental lanes | Reproducible result and timing | CI owner |
Stage 4: prepare for TS 7
TS 6 is most clear when it shortens the path to TS 7. Do not wait until each package is on 6 before learning which ones can run the native compiler. Add a non-blocking TS 7 lane once the 6.0 config is clear.
Use stableTypeOrdering as a comparison tool
Run TS 6 once with stableTypeOrdering and compare errors and type files. The flag makes TS 6 ordering more like TS 7. It can reveal inference that by chance depends on internal processing order.
Do not add it to each developer command by default. The vendor notes say it can add substantial checking time and is not planned as a long-term feature. Keep a dedicated script or CI job and remove the flag after the comparison work is complete.
When the flag exposes an error, add the narrowest explicit annotation. A clear generic argument or variable type is better proof than a repo-wide assertion or disabled check.
Remove each suppressed TS 6 deprecation
Search normalized configs for ignoreDeprecations: "6.0". Build an owner list for each suppressed option. TS 7 turns the 6.0 deprecation set into hard errors or unsupported result, including ES5, legacy module and lookup modes, baseUrl, and old interop settings.
Remove the suppression only after the underlying options are gone. A clean TS 6 build without the suppression is a stronger readiness signal than a clean build that hides the exact settings TS 7 rejects.
Decide how to handle the old compiler API
TS 7.0 does not ship the old API. Microsoft published @typescript/typescript6 for tools that still need it. The package provides a tsc6 executable and re-exports the TS 6 API.
Tools that expect to import typescript directly through a peer dependency may need an npm alias:
{
"devDependencies": {
"typescript": "npm:@typescript/typescript6@^6.0.3"
}
}
To make both compiler lines clear, follow the vendor side-by-side pattern and test the actual executable each script resolves:
{
"devDependencies": {
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.3"
}
}
This layout is a support bridge. Document which commands use tsc, tsc6, or a package import. Avoid an alias maze where the same script resolves another compiler in a package, IDE, and CI runner.
Recheck mixed-file-language support at upgrade time
Microsoft’s July 8 post named Vue, MDX, Astro, Svelte, and Angular template workflows as likely TS 6 users at that point since TS 7 lacked a stable programmatic API. Ecosystem support can change after publication.
Check four split surfaces: the web tool CLI, the language server, the IDE add-on, and third-party plugins. A web tool can support TS syntax in app files while its template checker still depends on the old service API.
Use current vendor docs and release notes. Do not infer support from a permissive peer range alone. A package can install well and still call an API that TS 7 does not expose.
Measure TS 7 on your repo
The vendor post reported 7.7x to 11.9x full-build speedups across VS Code, Sentry, Bluesky, Playwright, and tldraw. It also reported lower aggregate memory on those projects. These results make a test worthwhile. But they are not a capacity plan for an unrelated repo.
Run clean, incremental, and watch test data on the same machine or CI class. Record CPU count, memory, cache state, file count, and command. Compare correctness first, then median timings across several runs.
TS 7 parallelizes parsing, checking, and emit, and exposes experimental controls for checkers and builders plus a single-threaded mode. Use default result first. Tune only when test data show a repeatable constraint.

Microsoft’s published full-build benchmarks show TS 7 completing the named builds 7.7–11.9 times faster than TS 6.
TS 6 versus TS 7 decision tree
The answer should come from support proof, not from the TS 7 release date alone. Use these decisions for each independently buildable package or tool.
- Does the package import the old compiler API? If yes, keep that tool on TS 6 or move it to the documented support package. Give the owner a retest date for the new API.
- Does the package use mixed-file-language or template tooling? If yes, run the web tool’s current CLI and IDE path. Stay on 6 only when a specific supported command fails on 7.
- Do compiler, type files, tests, lint, build, watch mode, and IDE checks pass on 7? If no, classify the failure and keep the affected package on 6 while the owner fixes or upgrades the dependency.
- Do live runtime and package-client checks pass? If yes, promote TS 7 through the canary. If no, roll back the affected package even when
tscitself is green.
| Situation | Compiler choice now | Needed follow-up |
|---|---|---|
Plain tsc project with a passing 7.0.2 matrix |
Move to TS 7 | Monitor CI, IDE, and type file diffs |
| Tool imports the old compiler API | TS 6 support path | Track the new API and tool release |
Web tool checker fails on 7 but app tsc passes |
Keep the web tool path on 6 | Retest vendor checker and add-on updates |
| Main build passes on 7, lint or test parser does not | Split only when commands are clear | Upgrade or replace the incompatible tool |
| Failure has no minimal reproduction | Stay on 6 briefly | Produce a reproduction before choosing a long-term workaround |
| Team has not tested IDE or CI | No promotion decision yet | Complete the validation matrix |
Avoid repo-wide labels such as “Angular is not ready” or “all Vue projects must stay on 6.” Support belongs to a versioned command in a real repo. Record the package, tool version, compiler version, failure, source link, owner, and next review date.
Rollout and rollback checklist
Start with canary packages that represent real risk without blocking each team. Include one lib that emits type files, one app with the main bundler, one test-heavy package, and one web tool or compiler-API client when those categories exist.
Before promotion, confirm all of the following:
- The compiler version and lockfile are pinned and visible in CI logs.
- Each emitting config sets
rootDir, module result, target, and needed global types clearly. - No TS 6 deprecation remains hidden behind
ignoreDeprecationsfor a TS 7 candidate. - Clean and incremental type checks pass without restored cache artifacts.
- Builds produce the expected file tree, source maps, type files, and package contents.
- Unit, link, end-to-end, and smoke tests cover the supported runtimes.
- Lint, test transforms, docs, tools, API tools, and web tool checkers pass.
- IDEs use the planned workspace or add-on compiler and show the same known errors as CI.
- TS 7 benchmark claims are replaced by test data from the repo before capacity changes.
- Each remaining TS 6 package has a named support blocker, owner, and retest date.
Roll out in small groups. Keep the old lockfile revision and compiler package change easy to revert. Do not mix dependency upgrades that are unrelated to compiler support into the same rollout unless one is needed and documented.
Define an error-budget trigger for the migration. A trigger can be any unexpected live build failure, a reviewed threshold of new IDE failures, a public type file regression, or a material CI slowdown. The owner should pause promotion and restore the last known compiler and lockfile state while proof is collected.
After the canary period, promote packages that passed the same matrix. Leave incompatible tools on the documented TS 6 path without forcing the whole monorepo to wait. Then repeat the check when the tool, web tool, or TS API changes.
Common migration mistakes
The first mistake is changing TS, Node, the package manager, the bundler, and strictness in one pull request. Each may be a good change. But their combined diff is hard to diagnose and harder to reverse.
The second is treating ignoreDeprecations: "6.0" as a migration. It is a temporary way to keep a TS 6 bridge running. TS 7 does not support the deprecated settings.
The third is adding each visible @types package to a shared base config. That restores accidental globals and can make packages depend on type files they do not own. List types by runtime and test setup.
The fourth is checking only the root compiler command. Mixed-file files, IDEs, lint parsers, test transformers, code tools, and type file consumers have split link paths.
The fifth is assuming a TS 7 performance chart predicts local savings. Use the vendor numbers to justify a benchmark, then measure the repo under its own CI limits.
The sixth is staying on TS 6 without a named blocker. A bridge with no owner and retest date becomes an unplanned fork of the toolchain.
The durable result is not merely a green compiler upgrade. It is a repo where config states the planned runtime, globals, output layout, and module resolution, each tool has an owner, and the choice between TS 6 and TS 7 can be repeated from proof.



