Node mon en boucle

install nodemon: npm i --save-dev nodemon
open package.json in section scripts add new line: "dev" : "nodemon server/server.js --watch common --watch server"
run your server with command: npm run dev

 in package.josn file add this one
"nodemonConfig": {
  "verbose": true,
  "watch": [ "src/" ],
  "ignore": [ "dist/*" ],
  "ext": "ts",
  "exec": "npm start"
 }
Vishnu