removed nodemon from dependecies

Most devs have Nodemon installed globally on their system, so I removed the dependecy, and when a user types "npm start" on the server app, it will first look for nodemon, and if not found then it will do the standard "node server.js"
This commit is contained in:
Ben Elferink
2020-12-30 15:32:33 +02:00
parent 1c9a390ee7
commit ab6817973d
2 changed files with 18 additions and 26 deletions

View File

@@ -4,7 +4,7 @@
"main": "server.js",
"type": "module",
"scripts": {
"start": "nodemon server.js"
"start": "nodemon server.js||node server.js"
},
"author": "Ben Elferink",
"license": "ISC",
@@ -12,7 +12,6 @@
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"mongoose": "^5.11.8",
"nodemon": "^2.0.6"
"mongoose": "^5.11.8"
}
}