diff --git a/.husky/pre-commit b/.husky/pre-commit index 5a182ef10..333f88cf1 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -yarn lint-staged +cd $(dirname -- "$0") && yarn lint-staged \ No newline at end of file diff --git a/package.json b/package.json index ad227a8d7..f8f2d0657 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "storybook": "storybook dev -p 6006", "storybook:build": "storybook build -o ./dist/storybook", "analyze-webpack": "webpack --config ./webpack/webpack.analyze.js", - "prepare": "husky install" + "prepare": "cd ../.. && husky install package/server-ce/.husky" }, "engines": { "node": ">= 16"