Skip to content

Commit

Permalink
Update Husky package to latest version, update husky prepare script, …
Browse files Browse the repository at this point in the history
…update hooks
  • Loading branch information
spavlov6 committed Jan 29, 2025
1 parent cd2b97e commit 3e65008
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit $1
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"repository": "alibaba/ice",
"bugs": "https://github.com/alibaba/ice/issues",
"scripts": {
"prepare": "husky install",
"prepare": "husky",
"setup": "rm -rf node_modules packages/*/node_modules && pnpm install && pnpm prebundle && pnpm build",
"setup-git": "tsx ./scripts/setupUser.ts",
"rebuild": "pnpm install && pnpm run build",
Expand Down Expand Up @@ -51,7 +51,7 @@
"fs-extra": "^10.1.0",
"get-port": "^6.1.2",
"glob": "^7.2.3",
"husky": "^7.0.4",
"husky": "^9.1.7",
"ice-npm-utils": "^3.0.2",
"jsdom": "^20.0.0",
"lint-staged": "^13.0.3",
Expand Down

0 comments on commit 3e65008

Please sign in to comment.