Skip to content

Commit c063f13

Browse files
authored
fix(install): [git] make postinstall script work with git install (#13)
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 97adaf9 commit c063f13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"fix:dedupe": "yarn dedupe --strategy=highest",
6161
"fix:format": "prettier --cache --write .",
6262
"fix:lint": "yarn check:lint --cache --fix",
63-
"postinstall": "chmod +x .husky/* && husky install",
63+
"postinstall": "[ -f ./node_modules/.bin/husky ] && chmod +x .husky/* && husky install || exit 0",
6464
"postpack": "toggle-scripts +postinstall",
6565
"postpublish": "toggle-scripts +prepack",
6666
"prepack": "toggle-scripts -postinstall && yarn build",

0 commit comments

Comments
 (0)