diff --git a/package.json b/package.json index aa326085..400298a0 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,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",