I have server-side .ts files that I want to run and debug. I've followed the Running and debugging a server-side TypeScript application with Node.js guide, but was somewhat surprised to see that the file was not automatically transpiled after I modified it and executed its Run configuration.
How can that be automated? Do I need to set up a watcher? Use ts-node? Something else? What I ended up doing was add a "Before launch" "Compile TypeScript" step in the Run/Debug config with "Check errors" checked, but if there's an error in an unrelated file in the project, that doesn't compile the file I want to execute.
This is a pretty basic requirement and the recommended solution should be explained in that guide I linked above. Thanks!