Skip to content

The agent that grows with you

fix: skip lefthook install when there is no .git

etherneta50c4ba7c978
diff --git a/package.json b/package.json
index 5b2a14db791..92b4b497de6 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": "lefthook install"
+ "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)\""
},
"repository": {
"type": "git",