Skip to content

Commit

Permalink
chore: migrate husky (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 authored Nov 28, 2024
1 parent d8f958a commit 16902b0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
HUSKY_SCRIPT="$(dirname "$0")/_/husky.sh"

if [ -f "$HUSKY_SCRIPT" ]; then
. "$HUSKY_SCRIPT"
Expand Down
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install nano-staged
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand Down

0 comments on commit 16902b0

Please sign in to comment.