Skip to content

tsx

ts-node功能相似,运行时不会产生JS文件。

安装

bash
npm i tsx -g

使用

  • 基本使用
sh
tsx demo.ts
  • 热更新
sh
tsx watch demo.ts