Skip to content

Commit 63521b4

Browse files
committed
fix: file-type dep mismatch version on node_modules override
1 parent d66d919 commit 63521b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ FROM base
2323
RUN apk update && apk upgrade
2424

2525
COPY --from=dependencies /app/node_modules ./node_modules/
26+
27+
# Remove file-type@15 (root workspace dep) before overlaying content's file-type@21
28+
# to prevent its stale nested token-types@2.1.1 from leaking into the merged tree
29+
RUN rm -rf ./node_modules/file-type
2630
COPY --from=dependencies /app/content/node_modules ./node_modules/
2731

2832
COPY --from=catalyst-builder /app/content/dist/src content/

0 commit comments

Comments
 (0)