fix(prepare): tolerate missing husky in --prod installs
Deploy to LXC / deploy (push) Successful in 15s
Validate / validate (push) Successful in 27s

`pnpm install --prod` skips devDependencies, so husky is not on
PATH when the prepare lifecycle script runs on the deploy host. Append
`|| true` so the script succeeds in both dev (hooks installed) and
prod (no-op).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 11:35:03 +07:00
parent 3274afb677
commit 76248c3d7f
+1 -1
View File
@@ -16,7 +16,7 @@
"db:studio": "drizzle-kit studio", "db:studio": "drizzle-kit studio",
"db:seed": "tsx scripts/seed/system-asset-types.ts", "db:seed": "tsx scripts/seed/system-asset-types.ts",
"create-user": "tsx scripts/create-user.ts", "create-user": "tsx scripts/create-user.ts",
"prepare": "husky" "prepare": "husky || true"
}, },
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.1035.0", "@aws-sdk/client-s3": "^3.1035.0",