From cbfa98c6da57be89446294d18d7c4dfd3e874a7d Mon Sep 17 00:00:00 2001 From: Dominic Elm Date: Fri, 12 Jul 2024 17:45:50 +0200 Subject: [PATCH] chore: make sure that husky hooks are executed --- .husky/commit-msg | 7 +++++++ .husky/pre-commit | 1 - package.json | 7 ------- 3 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 .husky/commit-msg delete mode 100644 .husky/pre-commit diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..d821bbc --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +. "$(dirname "$0")/_/husky.sh" + +npx commitlint --edit $1 + +exit 0 diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100644 index 72c4429..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1 +0,0 @@ -npm test diff --git a/package.json b/package.json index 86d7378..9c8520a 100644 --- a/package.json +++ b/package.json @@ -9,18 +9,11 @@ "typecheck": "pnpm run -r typecheck", "prepare": "husky" }, - "lint-staged": {}, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, - "husky": { - "hooks": { - "pre-commit": "lint-staged", - "commit-msg": "commitlint --edit $1" - } - }, "engines": { "node": "20.15.1", "pnpm": "9.4.0"