I have a file called run.bat which is supposed to compile a TypeScript file and then run the outputted JavaScript file in Node.js:
tsc
node index.js
The problem is that the TypeScript compiler exits the batch script after it has finished compiling, so the command node index.js never gets executed.
How can I ensure that the commands after tsc get executed?
I have tried looking at the compiler options, but was unable to find any options to stop the TypeScript compiler exiting the batch script.