Merge pull request #135232 from NousResearch/fix/lefthook-prepare-no-git

Docker image builds no longer fail on lefthook install (follow-up to #135177)
This commit is contained in:
ethernet authored and GitHub committed 2026-10-08 13:49:31 -04:00
commit 517b5e10fe
1 file changed
+1 -1
+1 -1
View File
@@ -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",