fix(docker): prisma generate must run before packages/db tsc build
packages/db/src/index.ts re-exports model types from @prisma/client, so the generated client has to exist before tsc walks that file. The previous order hit TS2305 on User/Manufacturer/Site/etc.
This commit is contained in:
+2
-2
@@ -19,9 +19,9 @@ RUN pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN pnpm -C packages/shared build \
|
||||
RUN pnpm -C packages/db exec prisma generate \
|
||||
&& pnpm -C packages/shared build \
|
||||
&& pnpm -C packages/db build \
|
||||
&& pnpm -C packages/db exec prisma generate \
|
||||
&& pnpm -C apps/api build
|
||||
|
||||
# Point workspace package.json "main/exports" at compiled JS so Node
|
||||
|
||||
Reference in New Issue
Block a user