From 16902b0b0fd77e5fdfc5cc6f16c763872da12fff Mon Sep 17 00:00:00 2001 From: yifancong Date: Thu, 28 Nov 2024 15:52:01 +0800 Subject: [PATCH] chore: migrate husky (#607) --- .husky/post-checkout | 1 - .husky/pre-commit | 1 - package.json | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) 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\"",