Skip to content

tsc CLI ‐ (The Compiler)

Jorge Castro edited this page Nov 10, 2025 · 1 revision

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

Clone this wiki locally