tsc CLI (The Compiler)

Transpile a file:

tsc hello.ts

Transpile a file every time it is modified and saved.

tsc hello.ts --watch

Transpile a file into a different directory

tsc hello.ts -outDir public

Emitting without Errors

tsc --noEmitOnError hello.ts

Compile to another ECMAScript version

tsc --target ES6 hello.ts