一个监视TypeScript文件的终端,当文件发生变化时自动编译
//安装
npm install tsc-cmd -g
//使用
tsc-cmd -w ../some_Dir/some_file.ts
光有 typescript 命令行工具,只能运行 ts文件,但是无法在ts 文件修改之后实时返回结果。 所以我做了这个小插件
你需要全局安装 TypeScript, 因为我这个插件也是使用 TypeScript 来编译的ts文件
npm install typescript -g
tsc-cmd -w ../some_Dir/some_file.ts
备注: tsc-cmd 会在你监控文件的同级目录下面,编译出一个同名的js文件
Copyright (c) 2022-present, zgj233