In TypeScript, you'd use the following command to enter watch mode:
tsc -w -p .
Then when tsc does detect a change, it'll transpile the .ts files and generate .js files.
This means that you can run the new JavaScript files using:
node example.js
I'd like to run TypeScript files directly, without having to use node example.js, how can I do this?
node example.js?