fix: pnpm home fixed to /bin

This commit is contained in:
2026-04-30 10:16:37 +08:00
parent ed3dd33149
commit 3876a4d065
+5 -1
View File
@@ -78,8 +78,12 @@ RUN corepack enable \
# installs land in a known location and their binaries resolve without
# extra setup. (pnpm setup is interactive — this is the non-interactive
# equivalent.)
#
# pnpm 11 moved the global bin from $PNPM_HOME to $PNPM_HOME/bin and
# now hard-errors ("The configured global bin directory ... is not in
# PATH") instead of warning if PATH doesn't include it.
ENV PNPM_HOME=/root/.local/share/pnpm
ENV PATH="${PNPM_HOME}:${PATH}"
ENV PATH="${PNPM_HOME}/bin:${PATH}"
# ─────────────────────────────────────────────────────────────────────
# protoc-gen-es - TypeScript codegen plugin for buf 'local:' references.