From e092019cc434aeec21d3190eca8cc68556db0098 Mon Sep 17 00:00:00 2001 From: SrJuggernaut Date: Sat, 9 May 2026 12:27:48 -0600 Subject: [PATCH] chore: skip husky install in production and CI --- .husky/install.mts | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .husky/install.mts diff --git a/.husky/install.mts b/.husky/install.mts new file mode 100644 index 0000000..6544673 --- /dev/null +++ b/.husky/install.mts @@ -0,0 +1,8 @@ + +// Skip Husky install in production and CI +if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') { + process.exit(0) +} +const husky = (await import('husky')).default + +console.log(husky()) \ No newline at end of file diff --git a/package.json b/package.json index 203c4a6..18c2d8f 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,6 @@ "typescript": "^6.0.3" }, "scripts": { - "prepare": "husky" + "prepare": "bun ./.husky/install.mts" } }