I got tired of messy TypeScript migrations in Node.js, so I built fast-ts-integrator

Published: (April 20, 2026 at 08:40 PM EDT)
2 min read
Source: Dev.to

Source: Dev.to

Cover image for I got tired of messy TypeScript migrations in Node.js, so I built fast-ts-integrator

Adding TypeScript to an existing Node.js project

Adding TypeScript to an existing Node.js project sounds simple until it isn’t.

A few files in, things usually start drifting:

  • tsconfig.json stops matching the actual runtime
  • CommonJS and ESM start fighting each other
  • Mixed .js and .ts files make the project harder to reason about
  • Test and lint setup adds even more friction

I kept running into that same wall, so I built a small CLI to make the setup predictable.

What it is

fast-ts-integrator is a CLI that helps add TypeScript to a new or existing Node.js project with an interactive setup.

It lets you choose:

  • ES Modules or CommonJS
  • tsx or ts-node
  • Biome or ESLint + Prettier
  • Vitest or Jest

Then it installs what is needed, generates the config, and adds the scripts so you can actually start working instead of fighting setup.

Why I built it

Most of the pain was never “TypeScript itself”.
It was the setup around it:

  • Choosing the right module strategy
  • Keeping runtime behavior consistent
  • Avoiding broken imports after migration
  • Wiring linting and testing without turning the project into config soup

I wanted something practical that works for real Node.js projects, not just empty demos.

Quick start

npx fast-ts-integrator

or

npx fast-ts

Example flow

The CLI walks through a few choices:

  • Module system
  • Execution engine
  • Linter/formatter
  • Test framework

After that, it scaffolds the setup and updates package.json for you.

Still improving

This is an early release, and I’m actively improving it.

Real feedback would help a lot, especially from people who have dealt with:

  • Gradual JS‑to‑TS migration
  • CommonJS‑to‑ESM headaches
  • Existing Express or Node backends
  • Lint/test setup that tends to break during migration

If you try it, I’d genuinely like to know what feels smooth and what feels annoying.

0 views
Back to Blog

Related posts

Read more »

Building a Markdown editor (Markflow)

I’ve been working with Markdown editors both as a user. At some point I wanted to better understand how they actually behave under the hood, especially when doc...