fix(docker): 复制 patches/ 目录以修复 pnpm install ENOENT
pnpm-workspace.yaml 声明了指向 patches/@tiptap__markdown@3.27.3.patch 的 patched 依赖,但 Docker 构建在 COPY package manifest 阶段未包含 patches/ 目录,导致 pnpm install --frozen-lockfile 因找不到 patch 文件而失败。将 libs/patches/ 加入 COPY 即可。
This commit is contained in:
parent
970ff8dc5b
commit
089fe88a75
@ -141,7 +141,11 @@ WORKDIR /build
|
||||
# Cache the pnpm workspace node_modules by copying only package manifests first.
|
||||
# Copying all 4 libs' manifests + the workspace root lets pnpm install everything
|
||||
# in one shot; this layer is reused as long as the manifests don't change.
|
||||
# `pnpm-workspace.yaml` declares a patched dep (@tiptap/markdown) pointing at
|
||||
# `patches/@tiptap__markdown@3.27.3.patch`, so the patches/ tree must be present
|
||||
# before `pnpm install --frozen-lockfile` or it fails with ENOENT on the patch.
|
||||
COPY libs/package.json libs/pnpm-workspace.yaml libs/pnpm-lock.yaml libs/
|
||||
COPY libs/patches/ libs/patches/
|
||||
COPY libs/tiptap-editor/package.json libs/tiptap-editor/
|
||||
COPY libs/codemirror-editor/package.json libs/codemirror-editor/
|
||||
COPY libs/lightbox/package.json libs/lightbox/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user