nodemon compile typescript and execute js file

JavaScript
/* 
	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'"
Source

Also in JavaScript: