tsc

tsc

TLDR

Compile a TypeScript file foobar.ts into a JavaScript file foobar.js

>_ tsc [foobar.ts]
copy

Compile a TypeScript file into JavaScript using a specific target syntax (default is ES3)

>_ tsc --target [ES5|ES2015|ES2016|ES2017|ES2018|ESNEXT] [foobar.ts]
copy

Compile a TypeScript file into a JavaScript file with a custom name

>_ tsc --outFile [output.js] [input.ts]
copy

Compile all .ts files of a TypeScript project defined in a tsconfig.json file

>_ tsc --build [tsconfig.json]
copy

Run the compiler using command line options and arguments fetched from a text file

>_ tsc @[args.txt]
copy

Type-check multiple JavaScript files, and output only the errors

>_ tsc --allowJs --checkJs --noEmit [src/**/*.js]
copy

Copied to clipboard
free 100$ digital ocean credit