Skip to content

编译ts代码

shell
tsc hello.ts

监听文件变化

shell
tsc -w

使用tsconfig.json编译整个项目

初始化一个 tsconfig.json 文件:

shell
tsc --init

可以通过不带参数的 tsc 命令来编译整个项目

shell
tsc