nodemon使用方法
82字小于1分钟
2025-07-13
安装
npm install -g nodemon
常用命令
nodemon index.js
运行typescript
监听代码修改并且执行 ts-node 进行运行ts
npm install -g ts-node
nodemon --watch src -e ts --exec ts-node src/index.ts
编译typescript
删除 dist 文件夹,并执行编译
rd /s /q dist & tsc
82字小于1分钟
2025-07-13
npm install -g nodemon
nodemon index.js
监听代码修改并且执行 ts-node 进行运行ts
npm install -g ts-node
nodemon --watch src -e ts --exec ts-node src/index.ts
删除 dist 文件夹,并执行编译
rd /s /q dist & tsc