Answers for "nodemon run ts file"

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
0

nodemon with ts-node not work on linux

"scripts": {
		"cleanup": "rimraf dist",
		"build": "tsc --pretty",
		"start": "node dist/server.js",
		"dev": "nodemon -w 'src/**/*.ts' -x ts-node --files -H -T server.ts",
		"format": "prettier ./src/**/*.{ts,spect.ts,test.ts} --write",
		"lint": "eslint ./src/**/*.{ts,spect.ts,test.ts} --fix",
		"lintfix": "npm run format && npm run lint",
		"test": "jest",
		"test:watch": "jest --watchAll"
	},
Posted by: Guest on February-18-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language