Answers for "how to compile typescript nodemon"

-1

using nodemon with typescript

nodemon --watch "src/**" --ext "ts,json" --ignore "src/**/*.spec.ts" --exec "ts-node src/index.ts"
Posted by: Guest on December-03-2020
0

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'"
Posted by: Guest on January-07-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language