ts-migrate
Build / code quality tool · Free
A collection of code transformations for migrating JavaScript to TypeScript: it helps automate initial project typing.
Also known as: airbnb/ts-migrate; typescript-migration; javascript-to-typescript

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Prepare a JavaScript project for TypeScript
- Apply initial code transformations and investigate the resulting type errors
Example workflow
A possible workflow; this is not a report of hands-on testing.
Prepare a JavaScript project for TypeScript.
Before you start
- A repository, package manifests, and configuration.
- A compatible runtime and the target build command.
Steps
- Select part of the project and record working behavior before migration.
- Apply initial code transformations and investigate the resulting type errors.
- Add the workflow to scripts or CI with a clear report.
Check your result
- A clean copy of the project reproduces the result.
- Errors produce a nonzero exit code and clear diagnostics.
Choosing ts-migrate
Prepare a JavaScript project for TypeScript
Choose this when
- Prepare a JavaScript project for TypeScript
- Apply initial code transformations and investigate the resulting type errors
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
- The README explicitly warns that any and @ts-expect-error remain after transformation. A passing build does not mean type-safety checking is complete; these areas need further work.
Frequently asked questions
What can you use for free in ts-migrate?
Code and local use under MIT.
What additional costs might arise with ts-migrate?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for ts-migrate?
MIT for the code; dependencies have separate licenses.
How do you get started with ts-migrate?
Select part of the project and record working behavior before migration. Apply initial code transformations and investigate the resulting type errors. Add the workflow to scripts or CI with a clear report.
Does ts-migrate automatically complete typing migration?
The tool accepts JavaScript or partially migrated TypeScript projects and transforms them through plugins. There is a main migration configuration and separate reignore; you can assemble your own plugin set.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- ts-migrate
- build
- Development