forked from baron/baron-sso
fix(frontend): force clean pnpm install in runtime script to prevent ENOENT errors with corrupted node_modules mounts
This commit is contained in:
@@ -61,7 +61,7 @@ ensure_frontend_dependencies() {
|
||||
echo "Installing frontend dependencies..."
|
||||
if [ "$WORKSPACE_DIR" = "/common" ]; then
|
||||
npm install -g pnpm
|
||||
(cd /common && CI=true pnpm install)
|
||||
(cd /common && rm -rf node_modules && CI=true pnpm install)
|
||||
else
|
||||
npm ci
|
||||
fi
|
||||
|
||||
@@ -61,7 +61,7 @@ ensure_frontend_dependencies() {
|
||||
echo "Installing frontend dependencies..."
|
||||
if [ "$WORKSPACE_DIR" = "/common" ]; then
|
||||
npm install -g pnpm
|
||||
(cd /common && CI=true pnpm install)
|
||||
(cd /common && rm -rf node_modules && CI=true pnpm install)
|
||||
else
|
||||
npm ci
|
||||
fi
|
||||
|
||||
@@ -61,7 +61,7 @@ ensure_frontend_dependencies() {
|
||||
echo "Installing frontend dependencies..."
|
||||
if [ "$WORKSPACE_DIR" = "/common" ]; then
|
||||
npm install -g pnpm
|
||||
(cd /common && CI=true pnpm install)
|
||||
(cd /common && rm -rf node_modules && CI=true pnpm install)
|
||||
else
|
||||
npm ci
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user