diff --git a/adminfront/scripts/runtime-mode.sh b/adminfront/scripts/runtime-mode.sh index 8f85dcac..b8ae3c32 100644 --- a/adminfront/scripts/runtime-mode.sh +++ b/adminfront/scripts/runtime-mode.sh @@ -60,8 +60,8 @@ ensure_frontend_dependencies() { if [ "$installed_hash" != "$deps_hash" ]; then echo "Installing frontend dependencies..." if [ "$WORKSPACE_DIR" = "/common" ]; then - npm install -g pnpm - (cd /common && rm -rf node_modules .pnpm-store && npm install -g pnpm && pnpm config set store-dir /root/.pnpm-store && CI=true pnpm install --no-frozen-lockfile --ignore-scripts) + + (cd /common && rm -rf node_modules .pnpm-store pnpm-lock.yaml pnpm-workspace.yaml && npm install --no-fund --no-audit) else npm ci fi diff --git a/devfront/scripts/runtime-mode.sh b/devfront/scripts/runtime-mode.sh index 03416cf9..15d8ab3c 100644 --- a/devfront/scripts/runtime-mode.sh +++ b/devfront/scripts/runtime-mode.sh @@ -60,8 +60,8 @@ ensure_frontend_dependencies() { if [ "$installed_hash" != "$deps_hash" ]; then echo "Installing frontend dependencies..." if [ "$WORKSPACE_DIR" = "/common" ]; then - npm install -g pnpm - (cd /common && rm -rf node_modules .pnpm-store && npm install -g pnpm && pnpm config set store-dir /root/.pnpm-store && CI=true pnpm install --no-frozen-lockfile --ignore-scripts) + + (cd /common && rm -rf node_modules .pnpm-store pnpm-lock.yaml pnpm-workspace.yaml && npm install --no-fund --no-audit) else npm ci fi diff --git a/orgfront/scripts/runtime-mode.sh b/orgfront/scripts/runtime-mode.sh index ce9f7d74..d9311fd5 100644 --- a/orgfront/scripts/runtime-mode.sh +++ b/orgfront/scripts/runtime-mode.sh @@ -60,8 +60,8 @@ ensure_frontend_dependencies() { if [ "$installed_hash" != "$deps_hash" ]; then echo "Installing frontend dependencies..." if [ "$WORKSPACE_DIR" = "/common" ]; then - npm install -g pnpm - (cd /common && rm -rf node_modules .pnpm-store && npm install -g pnpm && pnpm config set store-dir /root/.pnpm-store && CI=true pnpm install --no-frozen-lockfile --ignore-scripts) + + (cd /common && rm -rf node_modules .pnpm-store pnpm-lock.yaml pnpm-workspace.yaml && npm install --no-fund --no-audit) else npm ci fi