C2(jobsync): impl — fix @prisma/engines copy in installPhase
The cp -r of @prisma/ into an existing node_modules/@prisma/ nested incorrectly. Use cp -rn with glob to merge contents instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8d272eee83
commit
846d879b40
1 changed files with 4 additions and 3 deletions
|
|
@ -78,9 +78,10 @@ let
|
|||
# Copy Prisma schema and migrations for runtime migrate deploy
|
||||
cp -r prisma $out/app/prisma
|
||||
|
||||
# Restore prisma packages needed at runtime
|
||||
cp -r /tmp/prisma-save/.prisma $out/app/node_modules/.prisma || true
|
||||
cp -r /tmp/prisma-save/@prisma $out/app/node_modules/@prisma || true
|
||||
# Restore prisma packages needed at runtime (merge into existing @prisma/)
|
||||
cp -r /tmp/prisma-save/.prisma/* $out/app/node_modules/.prisma/ 2>/dev/null || true
|
||||
mkdir -p $out/app/node_modules/@prisma
|
||||
cp -rn /tmp/prisma-save/@prisma/* $out/app/node_modules/@prisma/ 2>/dev/null || true
|
||||
cp -r /tmp/prisma-save/prisma $out/app/node_modules/prisma || true
|
||||
|
||||
# Copy entrypoint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue