fix(prepare): tolerate missing husky in --prod installs
`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:
+1
-1
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user