diff --git a/packages/core/.husky/pre-commit b/packages/core/.husky/pre-commit index d2ae35e84b..bc213b7d50 100755 --- a/packages/core/.husky/pre-commit +++ b/packages/core/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -yarn lint-staged +cd packages/core && yarn lint-staged diff --git a/packages/core/package.json b/packages/core/package.json index 09cb299bec..c36ea15abd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -15,7 +15,7 @@ "lint": "next lint", "stylelint": "stylelint \"**/*.scss\"", "stylelint:fix": "stylelint \"**/*.scss\" --fix", - "postinstall": "node postinstall.js && (is-ci || husky install) || echo Skipped postinstall step for @faststore/core", + "postinstall": "node postinstall.js && (is-ci || (cd ../.. && husky install packages/core/.husky)) || echo Skipped postinstall step for @faststore/core", "partytown": "partytown copylib ./public/~partytown", "storybook": "start-storybook --docs -p 6006", "build-storybook": "build-storybook"