You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(docker): rewrite CAS Dockerfile with turbo prune stage
pnpm deploy --legacy failed with ERR_PNPM_WORKSPACE_PKG_NOT_FOUND because
@cfxdevkit/executor (workspace:* dep of cas-backend) wasn't in the Docker
build context — only apps/cas/backend/package.json was copied.
Fix: add a Stage 0 (pruner) that runs 'turbo prune @cfxdevkit/cas-backend
--docker'. This outputs out/json/ (all needed package.json manifests) and
out/full/ (full source tree) for the minimal workspace subset. The builder
stage installs from the pruned manifests, giving pnpm deploy --legacy the
full workspace context it needs to resolve workspace:* deps.
Also add 'pnpm rebuild better-sqlite3' in the deploy dir after pnpm deploy,
since pnpm deploy does a fresh install from the content-addressable store
into a new location and the native binary needs to be recompiled there.
0 commit comments