TypeScript compiler. More information: https://www.typescriptlang.org/docs/handbook/compiler-options.html.
foobar.ts
into a JavaScript file foobar.js
:tsc foobar.ts
ES3
):tsc --target ES5|ES2015|ES2016|ES2017|ES2018|ESNEXT foobar.ts
tsc --outFile output.js input.ts
.ts
files of a TypeScript project defined in a tsconfig.json
file:tsc --build tsconfig.json
tsc @args.txt
tsc --allowJs --checkJs --noEmit src/**/*.js
tsc --watch