Skip to content

Node.js based forum software built for the modern web

fix: #14274 - add postinstall script for husky auto-install

Julian Lamb291c4aa1e3a
diff --git a/install/package.json b/install/package.json
index bc6e2810f6..3de52f6ee2 100644
--- a/install/package.json
+++ b/install/package.json
@@ -14,7 +14,8 @@
"lint": "eslint --cache ./nodebb .",
"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"
+ "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage",
+ "postinstall": "ln -fs /home/julian/Projects/nodebb/plugins/* /home/julian/Projects/nodebb/forum/node_modules/; npx husky install"
},
"nyc": {
"exclude": [