fix install
npm error command sh -c husky Error: npm install --omit=dev failed with code 127
This commit is contained in:
parent
fc5d448a29
commit
a489ff84bd
|
|
@ -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());
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
"scripts": {
|
||||
"lint": "biome check --write .",
|
||||
"lint:check": "biome check .",
|
||||
"prepare": "husky"
|
||||
"prepare": "node .husky/install.mjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^2.4.12",
|
||||
|
|
|
|||
Loading…
Reference in New Issue