diff --git a/.husky/commit-msg b/.husky/commit-msg index 1a089f45..fd2bf708 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx --no-install commitlint --edit $1 diff --git a/.husky/pre-commit b/.husky/pre-commit index cf0c46b9..041c660c 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx --no-install lint-staged diff --git a/package.json b/package.json index 59700637..a17b5601 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "prettier": "prettier '**/*.js' '**/*.md' '**/*.ts' --write", "release": "lerna publish", "clean": "lerna run clean && lerna clean && rm -rf ./node_modules", - "prepare": "husky install" + "prepare": "husky" }, "devDependencies": { "@babel/core": "^7.16.12", @@ -42,7 +42,7 @@ "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.23.2", "eslint-plugin-react-hooks": "^4.0.0", - "husky": "^8.0.1", + "husky": "^9.0.11", "jest": "^29.0.1", "jest-environment-jsdom": "^29.0.1", "jest-environment-node": "^29.0.1",