migration-kit is a library for building project-specific migration runners. It helps migration packages check runtime and dependency requirements, scan config files, run code transforms, and stop when a change still needs human review. Current stable version is 0.0.1. Release cadence is unknown. Key differentiators: provides a structured, ordered flow combining environment checks, dependency updates, config changes, and API code transforms using jscodeshift and ast-grep behind a shared transformer contract. It is opinionated about ordering (environment checks first, then dependencies, then package version updates, then config changes, then API changes) and requires explicit human review blocking for safety. Compared to using jscodeshift or ast-grep alone, migration-kit adds a complete runner framework with progress reporting and consistency across multi-step migrations.
npm install migration-kitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a full migration runner with environment checks, dependency updates, config scanning, and API code transforms.
Use migration-kit as a dependency in your own migration package, not as a direct CLI tool.
Monitor the package's release notes for any changes to the options schema.
Lock the version and test thoroughly before using in production.
Install ast-grep via pnpm add ast-grep
Use import { createMigrationRunner } from 'migration-kit' and ensure package.json has "type": "module"