Skip to content

Node.js based forum software built for the modern web

fix: guard husky postinstall script behind NODE_ENV check

Julian Lam0ddec59eafd9
diff --git a/install/package.json b/install/package.json
index 7ed8bd804c..d1a6f65c0e 100644
--- a/install/package.json
+++ b/install/package.json
@@ -15,7 +15,7 @@
"test": "nyc --reporter=html --reporter=text-summary mocha",
"coverage": "nyc report --reporter=text-lcov > ./coverage/lcov.info",
"coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage",
- "postinstall": "npx husky install"
+ "postinstall": "if [ \"$NODE_ENV\" != \"production\" ]; then npx husky install; fi"
},
"nyc": {
"exclude": [