tsc w and nodemon code example
Example: nodemon compile typescript and execute js file
/*
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'"