Migrating a Legacy JavaScript Codebase to TypeScript - JSJ 680
JavaScript Jabber5 Kesä 2025

Migrating a Legacy JavaScript Codebase to TypeScript - JSJ 680

In this episode, Dan and I (Steve) dove deep into what turned out to be a surprisingly complex, yet incredibly insightful topic: gradually migrating a massive legacy JavaScript project over to TypeScript. We're talking about nearly 1,000 JS files, 70,000+ lines of code, and years of developer history—all transitioning carefully to a typed, modern future.

Dan walked us through how he started by setting up the project for success before converting even one file—getting CI/CD ready, setting up tsconfig.json, sorting out test dependencies, dealing with mock leaks, and even grappling with quirks between VS Code and WebStorm debugging.

We talked tools (like TS-ESLint, concurrently, and ts-node), why strict typing actually uncovered real bugs (and made the code better!), and why it’s crucial not to touch any .js files until your TypeScript setup is rock solid.

Key Takeaways:
  • Gradual migration is 100% possible—and often better—than ripping the bandaid off.
  • TypeScript can and will catch bugs hiding in your JavaScript. Be prepared!
  • Use VS Code extensions or TS-Node to support your devs’ tooling preferences.
  • Don't underestimate the setup phase—it’s the foundation of long-term success.
  • Start small: Dan's team converted just one file at first to test the whole pipeline.
If you’re sitting on a legacy JS project and dreaming of TypeScript, this episode is your blueprint—and your warning sign.

Become a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

Jaksot(737)

089 JSJ The Node Security Project with Adam Baldwin

089 JSJ The Node Security Project with Adam Baldwin

The panelists talk to The Node Security Project founder and organizer, Adam Baldwin.Special Guest: Adam Baldwin. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & ...

27 Joulu 201352min

088 JSJ Lazy.js with Daniel Tao

088 JSJ Lazy.js with Daniel Tao

The panelists talk to Daniel Tao, maintainer of Lazy.js.Special Guest: Daniel Tao. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com...

20 Joulu 201346min

087 JSJ TC39 with Alex Russell

087 JSJ TC39 with Alex Russell

The panelists discuss TC39 with Alex Russell.Special Guest: Alex Russell. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyB...

13 Joulu 20131h 3min

086 JSJ Ember.js & Discourse with Robin Ward

086 JSJ Ember.js & Discourse with Robin Ward

The panelists discuss Ember.js and Discourse with Robin WardSpecial Guest: Robin Ward. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle...

28 Marras 20131h 3min

085 JSJ Huxley with Pete Hunt

085 JSJ Huxley with Pete Hunt

The panelists discuss Huxley with Pete HuntSpecial Guest: Pete Hunt. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome...

21 Marras 201340min

084 JSJ Node with Mikeal Rogers

084 JSJ Node with Mikeal Rogers

In this episode, the panelists talk Node with Mikeal Rogers.Special Guest: Mikeal Rogers. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcir...

15 Marras 201351min

083 JSJ FRP and RxJS with Matthew Podwysocki

083 JSJ FRP and RxJS with Matthew Podwysocki

In this episode, the panelists talk to Matthew Podwysocki about Functional Reactive Programming and RxJS.Special Guest: Matthew Podwysocki. Support this podcast at — https://redcircle.com/javascript...

8 Marras 201342min

082 JSJ JSHint with Anton Kovalyov

082 JSJ JSHint with Anton Kovalyov

Anton Kovalyov joins the Jabber gang to talk about JSHint, linting, parsing, lexing and much more.Special Guest: Anton Kovalyov. Support this podcast at — https://redcircle.com/javascript-jabber/don...

1 Marras 201342min

Suosittua kategoriassa Liike-elämä ja talous

sijotuskasti
psykopodiaa-podcast
mimmit-sijoittaa
rss-rahapodi
rss-lahtijat
rss-draivi
rss-porssipuhetta
rahapuhetta
oppimisen-psykologia
rss-rahamania
rss-seuraava-potilas
rss-neuvottelija-sami-miettinen
rss-bisnesta-bebeja
rss-paatos-podcast-suomen-kovimmat-paatoksentekijat-2
rss-paasipodi
rss-40-ajatusta-aanesta
taloudellinen-mielenrauha
syo-nuku-saasta
kasvun-kipuja
rss-viisas-raha-podi