How To Compile TypeScript On The Command Line
npm install -g typescript
TypeScript files normally have a '.ts' extension. To compile all the .ts files in the current directory, type:
You can also specify which files you want to compile:
tsc file1.ts file2.ts
tsc --outDir output *.ts
tsc --out output.js file1.ts file2.ts
Note that only global scripts support concatenation, modules don't.
Finally, you can specify a single output.js file in a output directory.
tsc --out output/output.js *.ts
To learn more, checkout my favorite TypeScript book.