ts-migrate-server is a package that contains the main migration runner and spawns a TSServer process.
ts-migrate-server is designed around Airbnb projects. Use at your own risk.
Install ts-migrate-server using npm:
npm install --save-dev ts-migrate-server
yarn add --dev ts-migrate-server
;;// get input files folder;// initialize typescript server;process.on'exit',;// create new migration config. You can add your plugins there;// run migration;// kill serverserver.kill;process.exitexitCode;
How can I use ts-migrate-server?
Why not just use codemods?
You actually can use codemods in your plugins! ts-migrate-server provides more standartalized API around TypeScript compiler usage and allows us to use the benefits of the TypeScript Server protocol.
I have an issue with a specific plugin, what should I do?
Please file an issue here.
See the Contributors Guide.