fix: disable husky only on production

This commit is contained in:
Krzysztof Durek
2024-07-16 12:05:27 +02:00
parent d0d4182fc1
commit 2d64815c12
4 changed files with 17 additions and 2 deletions

6
.husky/install.mjs Normal file
View File

@@ -0,0 +1,6 @@
// 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());