Answers for "run nodemon ts"

7

nodemon typescript

// nodemon.json
{
  "watch": ["src"],
  "ext": "ts",
  "exec": "ts-node ./src/app.ts"
}
// package.json
{
  "start" :"rm -rf dist/ && tsc --project . && node dist/app.js",
  "dev": "nodemon ."
}
Posted by: Guest on September-30-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