I’ve been hacking on a TypeScript file all day, but I need transpiled JavaScript for any testing. How did I reduce cycle time (and mitigate many chances to forget to build at all)?

My solution was a neat package called nodemon. With it, I set up a rebuild on write:

nodemon --watch src/index.ts --exec "npm run build"

When I write the file, I get a new build in seconds. Very cool! 🕶️