From 425469cf79f005eae7e7f405737f4d2d6e4ae059 Mon Sep 17 00:00:00 2001 From: zugdev Date: Fri, 14 Feb 2025 01:48:35 -0300 Subject: [PATCH 1/3] feat: futureproof husky --- .husky/commit-msg | 3 --- .husky/pre-commit | 3 --- package.json | 1 - 3 files changed, 7 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 7179f96..dfa81bc 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - bun commitlint --edit "$1" \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 1d67559..00a9d3c 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - bun lint-staged diff --git a/package.json b/package.json index 976a27d..c9af80f 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "format:cspell": "cspell **/*", "knip": "knip --config .github/knip.ts", "knip-ci": "knip --no-exit-code --reporter json --config .github/knip.ts", - "prepare": "husky install", "test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --setupFiles dotenv/config --coverage", "worker": "wrangler dev --env dev --port 4000" }, From de326095df013d3f42159da5b3f64cdfdbbe180a Mon Sep 17 00:00:00 2001 From: zugdev Date: Fri, 14 Feb 2025 01:56:06 -0300 Subject: [PATCH 2/3] chore: knip ignore husky --- .github/knip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/knip.ts b/.github/knip.ts index 61fcea7..eae641d 100644 --- a/.github/knip.ts +++ b/.github/knip.ts @@ -6,7 +6,7 @@ const config: KnipConfig = { ignore: ["src/types/config.ts", "**/__mocks__/**", "**/__fixtures__/**"], ignoreExportsUsedInFile: true, // eslint can also be safely ignored as per the docs: https://knip.dev/guides/handling-issues#eslint--jest - ignoreDependencies: ["ts-node"], + ignoreDependencies: ["ts-node", "husky"], eslint: true, }; From 22d67a37c0d9e0c555e3efad5892e36500ad295f Mon Sep 17 00:00:00 2001 From: zugdev Date: Fri, 14 Feb 2025 02:14:45 -0300 Subject: [PATCH 3/3] chore: add back prepare hook --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c9af80f..e4cb350 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "knip": "knip --config .github/knip.ts", "knip-ci": "knip --no-exit-code --reporter json --config .github/knip.ts", "test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --setupFiles dotenv/config --coverage", - "worker": "wrangler dev --env dev --port 4000" + "worker": "wrangler dev --env dev --port 4000", + "prepare": "husky" }, "keywords": [ "typescript",