Watch and re-transpile any TypeScript file with:
tsc file.ts --watch
You can use this tool to quickly tell if you’ve written compilable TypeScript,
without other tooling set up. Take any TypeScript file and compile it with the
watch option:
tsc tutorial/src/index.ts --watch
This returns:
Starting compilation in watch mode.
Now, when you write your tutorial file, the compiler transpiles, giving near-instant feedback.
See tsc --help for more info.