1
0
forked from baron/baron-sso

fix(frontend): use isolated pnpm store inside docker to prevent ENOENT cache corruption errors

This commit is contained in:
2026-05-15 11:24:22 +09:00
parent 1a0dddbd98
commit e71e090eec
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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