TLDR Web Dev · ARTICLES & TUTORIALS
HOW WE MIGRATED OUR RUSH.JS MONOREPO TO NODE TYPE STRIPPING
Summary from the TLDR Web Dev newsletter
The team at Calm Engineering migrated their Rush.js monorepo to Node type stripping, which allows running TypeScript files natively in Node without transpilation, resulting in faster builds, tests, and shorter feedback loops. The main challenge was refactoring their extensive use of Sinon stubbed modules, which they solved by changing their approach from stubbing modules to stubbing classes. The migration involved incrementally moving from CommonJS to ESM modules, adding file extensions to imports, and updating their codebase to be fully ESM compliant, ultimately achieving 30-40% faster local development tasks.