From 03a6b9bbd4384ecfc37dc3f08e894400851c76d2 Mon Sep 17 00:00:00 2001 From: Josh Rose <1677846+JoshTheWanderer@users.noreply.github.com> Date: Mon, 10 Nov 2025 23:18:34 +0100 Subject: [PATCH] build: install husky conditionally --- .husky/install.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .husky/install.mjs diff --git a/.husky/install.mjs b/.husky/install.mjs new file mode 100755 index 0000000..2fca546 --- /dev/null +++ b/.husky/install.mjs @@ -0,0 +1,9 @@ +#!/usr/bin/env node + +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