From 3066591ec2a5054205337406769664b713daa529 Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Sun, 28 Jul 2024 20:39:39 +0530 Subject: [PATCH] chore: update husky hooks --- .husky/commit-msg | 5 +---- .husky/pre-commit | 5 +---- package-lock.json | 13 +++++++------ package.json | 4 ++-- 4 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index e8511ea..dbce4f4 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx --no-install commitlint --edit $1 +commitlint --edit $1 diff --git a/.husky/pre-commit b/.husky/pre-commit index d37daa0..c27d889 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx --no-install lint-staged +lint-staged diff --git a/package-lock.json b/package-lock.json index 2109503..3f752c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", - "husky": "^8.0.3", + "husky": "^9.1.3", "jest": "^29.7.0", "lint-staged": "^15.2.7", "memfs": "^4.9.3", @@ -9933,15 +9933,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.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.3.tgz", + "integrity": "sha512-ET3TQmQgdIu0pt+jKkpo5oGyg/4MQZpG6xcam5J5JyNJV+CBT23OBpCF15bKHKycRyMH9k6ONy8g2HdGIsSkMQ==", "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 46c76d2..564614e 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage", "pretest": "npm run lint", "test": "npm run test:coverage", - "prepare": "husky install && npm run build", + "prepare": "husky && npm run build", "release": "standard-version" }, "files": [ @@ -62,7 +62,7 @@ "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", - "husky": "^8.0.3", + "husky": "^9.1.3", "jest": "^29.7.0", "lint-staged": "^15.2.7", "memfs": "^4.9.3",