diff --git a/.husky/post-checkout b/.husky/post-checkout index 4918b697..cae9d02d 100755 --- a/.husky/post-checkout +++ b/.husky/post-checkout @@ -1,5 +1,4 @@ #!/bin/sh -HUSKY_SCRIPT="$(dirname "$0")/_/husky.sh" if [ -f "$HUSKY_SCRIPT" ]; then . "$HUSKY_SCRIPT" diff --git a/.husky/pre-commit b/.husky/pre-commit index 0201a0e8..df8e0a48 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,3 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" npx --no-install nano-staged diff --git a/package.json b/package.json index 9ddf8df0..6dd4e3e9 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "dev:doc": "cd document && pnpm run dev", "e2e": "cd ./e2e && cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm test", "lint": "biome lint . --diagnostic-level=error", - "prepare": "pnpm run build && husky install", + "prepare": "pnpm run build && husky", "test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm run ut", "test:all": "pnpm run test && pnpm run e2e", "sort-package-json": "npx sort-package-json \"packages/*/package.json\"",