diff --git a/package.json b/package.json index 5b2a14db79..92b4b497de 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",