fix(build): make husky prepare tolerant so Docker build doesn't fail

npm ci --prefix web installs the web package's file:.. dependency on root, which runs the root prepare script (husky). In the Docker build stages husky isn't installed, so 'husky' exits 127 and the build fails. 'husky || true' no-ops when the binary is absent (Docker/CI) while still running normally in local dev where husky is present.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Mauricio Barragan
2026-07-16 14:01:54 -06:00
parent d7e04a99dd
commit 4e8b113b4e
+1 -1
View File
@@ -17,7 +17,7 @@
"test:e2e": "playwright test",
"test:observability": "playwright test observability.spec.ts",
"lint": "eslint .",
"prepare": "husky"
"prepare": "husky || true"
},
"lint-staged": {
"src/**/*.ts": [