1. tsc -v

编译单个文件

手动编译

  1. tsc TypeScript Compile
  2. tsc file.ts

监听,当文件发生更改时自动编译

  1. tsc -w file.ts