From c6eeef7d3301fa7f641401d24e39571a6aca01b7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Feb 2024 08:08:52 +0000 Subject: [PATCH 1/2] Bump husky from 8.0.3 to 9.0.7 Bumps [husky](https://github.com/typicode/husky) from 8.0.3 to 9.0.7. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](https://github.com/typicode/husky/compare/v8.0.3...v9.0.7) --- updated-dependencies: - dependency-name: husky dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 376dcff..10a3d64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "c8": "^8.0.0", "execa": "^8.0.1", "get-bin-path": "^11.0.0", - "husky": "^8.0.2", + "husky": "^9.0.7", "lint-staged": "^15.0.2", "nock": "^13.2.9", "xo": "^0.56.0" @@ -4012,15 +4012,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" @@ -10932,9 +10932,9 @@ "dev": 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.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz", + "integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==", "dev": true }, "ignore": { diff --git a/package.json b/package.json index dea0659..d6f2a98 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "c8": "^8.0.0", "execa": "^8.0.1", "get-bin-path": "^11.0.0", - "husky": "^8.0.2", + "husky": "^9.0.7", "lint-staged": "^15.0.2", "nock": "^13.2.9", "xo": "^0.56.0" From d4bc58070c7def0bbb379894d6df92e0b675f4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20G=C3=B6rtz?= Date: Thu, 1 Feb 2024 14:58:29 +0100 Subject: [PATCH 2/2] Migrate to husky@9. --- .husky/pre-commit | 3 --- package.json | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af219..2312dc5 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.json b/package.json index d6f2a98..30c9185 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ }, "type": "module", "scripts": { + "prepare": "husky", "test": "xo && c8 --all ava", "test:coverage": "c8 report --reporter=lcov", "test:watch": "ava --watch"