From 11fd1f747a32c06599826dfd90bf547b1295503c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 12:38:27 +0000 Subject: [PATCH 1/2] chore(deps-dev): 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] --- 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 42982ab0..d2e7a952 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "eslint": "^8.48.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "husky": "^8.0.3", + "husky": "^9.0.6", "prettier": "^3.2.4", "typescript": "^5.3.3" }, @@ -1971,15 +1971,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" @@ -4979,9 +4979,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.6", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.6.tgz", + "integrity": "sha512-EEuw/rfTiMjOfuL7pGO/i9otg1u36TXxqjIA6D9qxVjd/UXoDOsLor/BSFf5hTK50shwzCU3aVVwdXDp/lp7RA==", "dev": true }, "iconv-lite": { diff --git a/package.json b/package.json index ff30d7e7..361bccab 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "eslint": "^8.48.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "husky": "^8.0.3", + "husky": "^9.0.6", "prettier": "^3.2.4", "typescript": "^5.3.3" }, From cdf1240f5ba98fb36e0ddf68848621170ee33e21 Mon Sep 17 00:00:00 2001 From: Federico Grandi Date: Fri, 2 Feb 2024 11:16:58 +0100 Subject: [PATCH 2/2] chore: migrate husky to v9 --- .husky/pre-commit | 3 --- package.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index a8e3d9f0..3610738b 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,2 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npm run build git add lib diff --git a/package.json b/package.json index 361bccab..c4d26bf1 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "watch": "ncc build src/main.ts --watch --out lib", "lint": "eslint --ext .ts src", "lint:fix": "eslint --ext .ts --fix src", - "prepare": "husky install", + "prepare": "husky", "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": {