Skip to content

Commit 17e3564

Browse files
Modify prepare script in package.json
Updated the prepare script to check NODE_ENV before running husky install.
1 parent cb6e9b4 commit 17e3564

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"prepare": "cd .. && husky install",
8+
"prepare": "node -e \"if(process.env.NODE_ENV !== 'production'){process.exit(1)}\" || (cd .. && husky install)"
99
"start": "node index.js",
1010
"dev": "nodemon index.js",
1111
"build": "nodemon build.js"

0 commit comments

Comments
 (0)