📅  最后修改于: 2022-03-11 15:03:07.098000             🧑  作者: Mango
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"
}