fix(#364): add build-shared step to API pipeline
The lint and typecheck steps fail because @mosaic/shared isn't built. Add a build-shared step that compiles the shared package before lint and typecheck run, both of which now depend on build-shared in addition to prisma-generate. Fixes #364 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -60,6 +60,7 @@ steps:
|
|||||||
- pnpm --filter "@mosaic/api" lint
|
- pnpm --filter "@mosaic/api" lint
|
||||||
depends_on:
|
depends_on:
|
||||||
- prisma-generate
|
- prisma-generate
|
||||||
|
- build-shared
|
||||||
|
|
||||||
prisma-generate:
|
prisma-generate:
|
||||||
image: *node_image
|
image: *node_image
|
||||||
@@ -71,6 +72,16 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- install
|
- install
|
||||||
|
|
||||||
|
build-shared:
|
||||||
|
image: *node_image
|
||||||
|
environment:
|
||||||
|
SKIP_ENV_VALIDATION: "true"
|
||||||
|
commands:
|
||||||
|
- *use_deps
|
||||||
|
- pnpm --filter "@mosaic/shared" build
|
||||||
|
depends_on:
|
||||||
|
- install
|
||||||
|
|
||||||
typecheck:
|
typecheck:
|
||||||
image: *node_image
|
image: *node_image
|
||||||
environment:
|
environment:
|
||||||
@@ -80,6 +91,7 @@ steps:
|
|||||||
- pnpm --filter "@mosaic/api" typecheck
|
- pnpm --filter "@mosaic/api" typecheck
|
||||||
depends_on:
|
depends_on:
|
||||||
- prisma-generate
|
- prisma-generate
|
||||||
|
- build-shared
|
||||||
|
|
||||||
prisma-migrate:
|
prisma-migrate:
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
|||||||
Reference in New Issue
Block a user