Run npm i automatically before running nodemon (when using npm run dev)

This commit is contained in:
Matthew Patrick 2021-11-15 10:27:52 +07:00
parent 06dc53719d
commit 65bab44427

View file

@ -4,7 +4,7 @@
"description": "Web application for Nekoya ~", "description": "Web application for Nekoya ~",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"dev": "nodemon index.js", "dev": "npm i && nodemon index.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "Nekoya Dev", "author": "Nekoya Dev",