Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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'"
 
PREVIOUS NEXT
Tagged: #nodemon #compile #typescript #execute #js #file
ADD COMMENT
Topic
Name
8+4 =