nodemon实现Typescript项目热更新和 DEBUG

549 阅读1分钟

1, 热更新

nodemon 默认只监听js和json 文件

nodemon -e ts,tsx --exec ts-node ./index.ts

2,DEBUG with nodemon

"debug": "nodemon --inspect dist/index.js -e  ts,tsx  --exec node dist/index.js",

运行这个命令

接着 设置 

点击