A package from Airbnb that contains the main migration runner for ts-migrate, a tool to assist migrating JavaScript codebases to TypeScript. It spawns a TypeScript server (TSServer) process and provides a standardized API for running migration plugins. Current stable version is 0.1.33. The tool is designed around Airbnb projects and is considered experimental for broader use. It requires TypeScript >4.0 and is part of the ts-migrate monorepo which also includes plugins and a CLI. Unlike simple codemods, ts-migrate-server leverages the TypeScript compiler API for more complex transformations.
npm install ts-migrate-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic example showing how to import migrate and MigrateConfig, configure input directory, and run migration asynchronously.
Thoroughly test migrations on your codebase and customize plugins as needed.
Consider alternative migration tools like ts-morph or typewiz for active support.
Keep TypeScript version at 4.x or check for updated releases.
Run 'npm install --save-dev @types/ts-migrate-server' if available, or use a declaration file.
Install Node.js 12+ and TypeScript peer dependency before use.
Run 'npm install --save-dev ts-migrate-server' or 'yarn add --dev ts-migrate-server'.
Use named import: import { migrate } from 'ts-migrate-server'.Use: import { MigrateConfig } from 'ts-migrate-server'.Check TypeScript version with 'npx tsc --version' and upgrade to >4.0.