chore: skip husky install in production and CI
This commit is contained in:
@@ -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())
|
||||||
+1
-1
@@ -15,6 +15,6 @@
|
|||||||
"typescript": "^6.0.3"
|
"typescript": "^6.0.3"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky"
|
"prepare": "bun ./.husky/install.mts"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user