From d12a9115dfb9b9be2abd55b5ff1f258c698ddc42 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 26 Jan 2024 07:11:15 +0000 Subject: [PATCH] chore(.husky): migrate hooks to v9 style --- .husky/commit-msg | 5 +---- .husky/pre-commit | 5 +---- package.json | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 1a089f4..d468455 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx --no-install commitlint --edit $1 +npx --no-install commitlint --edit $1 \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index c613291..4c260d1 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npm run lint:licenses && npm test +npm run lint:licenses && npm test \ No newline at end of file diff --git a/package.json b/package.json index fa041af..d6a1966 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "lint:licenses": "node scripts/license-checker.js", "lint:prettier": "prettier . -c -u", "lint:prettier:fix": "prettier . -w -u", - "prepare": "husky install", + "prepare": "husky", "test": "npm run lint && npm run lint:prettier && npm run jest" }, "commitlint": {