From e71e090eecebcc9d25764770d5451c1e3691b6d8 Mon Sep 17 00:00:00 2001 From: chan Date: Fri, 15 May 2026 11:24:22 +0900 Subject: [PATCH] fix(frontend): use isolated pnpm store inside docker to prevent ENOENT cache corruption errors --- adminfront/scripts/runtime-mode.sh | 2 +- devfront/scripts/runtime-mode.sh | 2 +- orgfront/scripts/runtime-mode.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adminfront/scripts/runtime-mode.sh b/adminfront/scripts/runtime-mode.sh index 3a925e05..876c2749 100644 --- a/adminfront/scripts/runtime-mode.sh +++ b/adminfront/scripts/runtime-mode.sh @@ -61,7 +61,7 @@ ensure_frontend_dependencies() { echo "Installing frontend dependencies..." if [ "$WORKSPACE_DIR" = "/common" ]; then npm install -g pnpm - (cd /common && rm -rf node_modules && CI=true pnpm install) + (cd /common && rm -rf node_modules .pnpm-store && CI=true pnpm install --store-dir /root/.pnpm-store) else npm ci fi diff --git a/devfront/scripts/runtime-mode.sh b/devfront/scripts/runtime-mode.sh index 6535b222..09a11d0a 100644 --- a/devfront/scripts/runtime-mode.sh +++ b/devfront/scripts/runtime-mode.sh @@ -61,7 +61,7 @@ ensure_frontend_dependencies() { echo "Installing frontend dependencies..." if [ "$WORKSPACE_DIR" = "/common" ]; then npm install -g pnpm - (cd /common && rm -rf node_modules && CI=true pnpm install) + (cd /common && rm -rf node_modules .pnpm-store && CI=true pnpm install --store-dir /root/.pnpm-store) else npm ci fi diff --git a/orgfront/scripts/runtime-mode.sh b/orgfront/scripts/runtime-mode.sh index bff1989b..b3523be9 100644 --- a/orgfront/scripts/runtime-mode.sh +++ b/orgfront/scripts/runtime-mode.sh @@ -61,7 +61,7 @@ ensure_frontend_dependencies() { echo "Installing frontend dependencies..." if [ "$WORKSPACE_DIR" = "/common" ]; then npm install -g pnpm - (cd /common && rm -rf node_modules && CI=true pnpm install) + (cd /common && rm -rf node_modules .pnpm-store && CI=true pnpm install --store-dir /root/.pnpm-store) else npm ci fi