Skip to content

The agent that grows with you

fix: don't fail npm install when lefthook can't install hooks

ethernet0668184e59b9
diff --git a/package.json b/package.json
index 92b4b497de6..752da5e9342 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,7 @@
"audit:fix:tui": "npm audit fix --workspace ui-tui",
"check": "npm run --ws check",
"fix": "npm run --ws fix",
- "prepare": "node -e \"const {existsSync}=require('fs');const {spawnSync}=require('child_process');if(existsSync('.git'))process.exit(spawnSync('lefthook',['install'],{stdio:'inherit',shell:true}).status??1)\""
+ "prepare": "node -e \"const {existsSync}=require('fs');const {spawnSync}=require('child_process');if(existsSync('.git'))spawnSync('lefthook',['install'],{stdio:'inherit',shell:true})\""
},
"repository": {
"type": "git",