From 4b5a090051733574c3b86ac5836e405c3c11f041 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 31 Jan 2024 09:23:24 +0000 Subject: [PATCH] Bump husky from 8.0.3 to 9.0.6 (#329) * Bump husky from 8.0.3 to 9.0.6 Bumps [husky](https://github.com/typicode/husky) from 8.0.3 to 9.0.6. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](https://github.com/typicode/husky/compare/v8.0.3...v9.0.6) --- updated-dependencies: - dependency-name: husky dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Making Husky work with new config --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com> --- .husky/pre-commit | 1 + package-lock.json | 18 +++++++++--------- package.json | 11 ++++------- 3 files changed, 14 insertions(+), 16 deletions(-) create mode 100644 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..b28c372 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +npm run lint-staged \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 0ebd52d..5e26594 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "stylelint-scss": "^5.3.2" }, "devDependencies": { - "husky": "^8.0.3", + "husky": "^9.0.6", "jest": "^29.7.0", "lint-staged": "^15.2.0" }, @@ -4982,15 +4982,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.6", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.6.tgz", + "integrity": "sha512-EEuw/rfTiMjOfuL7pGO/i9otg1u36TXxqjIA6D9qxVjd/UXoDOsLor/BSFf5hTK50shwzCU3aVVwdXDp/lp7RA==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.js" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" @@ -13242,9 +13242,9 @@ "devOptional": true }, "husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.6.tgz", + "integrity": "sha512-EEuw/rfTiMjOfuL7pGO/i9otg1u36TXxqjIA6D9qxVjd/UXoDOsLor/BSFf5hTK50shwzCU3aVVwdXDp/lp7RA==", "dev": true }, "ignore": { diff --git a/package.json b/package.json index 0f82936..5c0a63c 100644 --- a/package.json +++ b/package.json @@ -23,12 +23,9 @@ "lint": "eslint . --ignore-path .gitignore", "lint:fix": "npm run lint -- --fix", "pretest": "npx ensure-node-env@2.0.0", - "test": "NODE_OPTIONS=--experimental-vm-modules jest" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } + "test": "NODE_OPTIONS=--experimental-vm-modules jest", + "prepare": "husky", + "lint-staged": "lint-staged" }, "lint-staged": { "!(LICENSE)*.md": [ @@ -50,7 +47,7 @@ "stylelint-scss": "^5.3.2" }, "devDependencies": { - "husky": "^8.0.3", + "husky": "^9.0.6", "jest": "^29.7.0", "lint-staged": "^15.2.0" }