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 Jan 2, 2023
1 parent 0948ea5 commit 99ce5e0
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 @@ -46,7 +46,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 99ce5e0

Please sign in to comment.