From 5d681134d33217a91ce88090e987435e7ea3d7f4 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Thu, 18 Jul 2024 08:58:43 -0400 Subject: [PATCH] Update husky to 9.1.0 --- .husky/pre-commit | 5 +---- package-lock.json | 13 +++++++------ package.json | 4 ++-- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index d24fdfc..c27d889 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx lint-staged +lint-staged diff --git a/package-lock.json b/package-lock.json index 99a692b..b9cef5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "eslint-config-prettier": "^8.6.0", "eslint-plugin-jest": "^27.2.1", "glob": "^10.3.4", - "husky": "^8.0.3", + "husky": "^9.1.0", "jest": "^29.6.4", "lint-staged": "^13.1.0", "npm-run-all": "^4.1.5", @@ -4889,15 +4889,16 @@ } }, "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.1.0", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.0.tgz", + "integrity": "sha512-8XCjbomYTGdNF2h50dio3T3zghmZ9f/ZNzr99YwSkvDdhEjJGs5qzy8tbFx+SG8yCx2wn9nMVfZxVrr/yT8gNQ==", "dev": true, + "license": "MIT", "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 c2a86ac..6e66d40 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ ], "types": "index.d.ts", "scripts": { - "prepare:husky": "husky install", + "prepare:husky": "husky", "prepare:esbuild": "esbuild src/index.ts --bundle --packages=external --platform=neutral --outfile=index.js", "prepare:tsc": "tsc", "prepare": "run-p prepare:*", @@ -49,7 +49,7 @@ "eslint-config-prettier": "^8.6.0", "eslint-plugin-jest": "^27.2.1", "glob": "^10.3.4", - "husky": "^8.0.3", + "husky": "^9.1.0", "jest": "^29.6.4", "lint-staged": "^13.1.0", "npm-run-all": "^4.1.5",