diff --git a/.husky/pre-commit b/.husky/pre-commit index d4a43dd13e..87ea02a113 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npm run pre-commit diff --git a/.husky/pre-push b/.husky/pre-push index 879e9351be..e37998f96a 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npm run test diff --git a/package.json b/package.json index 35483a313e..ccd6a20005 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "eslint-plugin-testing-library": "^6.1.0", "eslint-plugin-typescript": "^0.14.0", "eslint-plugin-vitest-globals": "^1.4.0", - "husky": "^8.0.3", + "husky": "^9.1.2", "jsdom": "^22.1.0", "lint-staged": "^15.0.2", "prettier": "^3.0.3", @@ -99,7 +99,7 @@ "lint-fix": "eslint src/**/*.{js,jsx,ts,tsx} --fix", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook -o build-story", - "prepare": "husky install", + "prepare": "husky", "pre-commit": "lint-staged", "compile-scss": "node src/scss/src/scripts/compile-scss.js --logger" },