📜  nodemon 编译 typescript 并执行 js 文件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:54.998000             🧑  作者: Mango

代码示例1
/* 
    this is an example to compile ts file and then run app.js 
    you can modify according to your requirement
    below is example of simple npm script compile and execute ts file
*/
"start": "nodemon --watch *.ts --exec 'tsc *.ts && node app.js'"