Nodemon

nodemon.json


{
  "ignore": ["node_modules"],
  "watch": ["./src/**/*.ts"],
  "exec": "npm start",
  "ext": "ts"
}


package.json

{
  "build": "NODE_PATH=./src tsc",
  "start": "NODE_PATH=./src ts-node src/server.ts",
  "dev": "NODE_PATH=./src nodemon"
}


$ npm run dev