fix(web): install shared api-contracts deps via postinstall

Web Frontend Check failed on PR #222: tsc compiles
shared/api-contracts/src/schemas.ts through the tsconfig path alias,
and module resolution for its zod import walks up from shared/, never
reaching web/node_modules. CI only ran npm ci in web/, so the shared
package's deps were absent. A postinstall hook installs them wherever
web's deps are installed (CI typecheck, web-test, deploy bundling).

Passed locally only because a stray repo-root node_modules/zod
satisfied the lookup.
This commit is contained in:
Adam Moussa 2026-07-13 19:19:57 -04:00
parent dbc2a19424
commit eaba68bae5
No known key found for this signature in database

View file

@ -4,6 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"postinstall": "npm ci --prefix ../shared/api-contracts",
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview",