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" } }