diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af219892..2312dc587f 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged diff --git a/package-lock.json b/package-lock.json index 3d6cd66cb9..a5436c7950 100644 --- a/package-lock.json +++ b/package-lock.json @@ -151,7 +151,7 @@ "html-loader": "4.2.0", "html-webpack-injector": "1.1.4", "html-webpack-plugin": "5.5.4", - "husky": "8.0.3", + "husky": "9.0.7", "jest-junit": "16.0.0", "jest-mock-extended": "3.0.5", "jest-preset-angular": "14.0.0", @@ -24078,15 +24078,15 @@ } }, "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz", + "integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.js" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" diff --git a/package.json b/package.json index 5a416ed472..fdfa151dbe 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "homepage": "https://bitwarden.com", "scripts": { - "prepare": "husky install", + "prepare": "husky", "lint": "eslint . --cache --cache-strategy content && prettier --check .", "lint:fix": "eslint . --cache --cache-strategy content --fix", "lint:clear": "rimraf .eslintcache", @@ -113,7 +113,7 @@ "html-loader": "4.2.0", "html-webpack-injector": "1.1.4", "html-webpack-plugin": "5.5.4", - "husky": "8.0.3", + "husky": "9.0.7", "jest-junit": "16.0.0", "jest-mock-extended": "3.0.5", "jest-preset-angular": "14.0.0",