Skip to content

Commit

Permalink
fix(install): [git] make postinstall script work with git install
Browse files Browse the repository at this point in the history
- checks for husky executable before attempting to install husky

Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Mar 3, 2023
1 parent 0dd9d60 commit b18b198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"fix:dedupe": "yarn dedupe --strategy=highest",
"fix:format": "prettier --cache --write .",
"fix:lint": "yarn check:lint --cache --fix",
"postinstall": "chmod +x .husky/* && husky install",
"postinstall": "[ -f ./node_modules/.bin/husky ] && chmod +x .husky/* && husky install || exit 0",
"postpack": "toggle-scripts +postinstall",
"postpublish": "toggle-scripts +prepack",
"prepack": "toggle-scripts -postinstall && yarn build",
Expand Down

0 comments on commit b18b198

Please sign in to comment.