From 832bae5c17dbf5b5f4d15e2733cfd2ffa1b78c59 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Tue, 5 Nov 2024 00:31:01 -0800 Subject: [PATCH] build: update husky (#51) --- .husky/pre-commit | 4 ---- package-lock.json | 13 +++++++------ package.json | 6 +++--- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 237f21f..d1d1868 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,2 @@ -#!/usr/bin/env sh -# shellcheck disable=SC1091 -. "$(dirname -- "$0")/_/husky.sh" - npm run package git add -A dist diff --git a/package-lock.json b/package-lock.json index db97d80..fa8788b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "eslint-plugin-jest": "^27.2.3", "eslint-plugin-jsonc": "^2.9.0", "eslint-plugin-prettier": "^5.0.0", - "husky": "^8.0.3", + "husky": "^9.1.6", "jest": "^29.6.3", "prettier": "^3.0.2", "prettier-eslint": "^15.0.1", @@ -4942,15 +4942,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.6", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.6.tgz", + "integrity": "sha512-sqbjZKK7kf44hfdE94EoX8MZNk0n7HeW37O4YrVGCF4wzgQjp+akPAkfUK5LZ6KuR/6sqeAVuXHji+RzQgOn5A==", "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 22651f2..7ae8a31 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "main": "dist/index.js", "engines": { - "node": ">=16" + "node": ">=18" }, "scripts": { "bundle": "npm run format:write && npm run package", @@ -25,7 +25,7 @@ "package:watch": "npm run package -- --watch", "test": "jest", "all": "npm run format:write && npm run lint && npm run test && npm run package", - "prepare": "husky install" + "prepare": "husky" }, "license": "MIT", "jest": { @@ -73,7 +73,7 @@ "eslint-plugin-jest": "^27.2.3", "eslint-plugin-jsonc": "^2.9.0", "eslint-plugin-prettier": "^5.0.0", - "husky": "^8.0.3", + "husky": "^9.1.6", "jest": "^29.6.3", "prettier": "^3.0.2", "prettier-eslint": "^15.0.1",