From b16a09059f9a4c478cfc642b0ec728c1e5fc65d5 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Mon, 20 Oct 2025 09:57:42 +0200 Subject: [PATCH] Update deploy script to allow dev dependencies during npm installation for frontend builds, ensuring successful execution of npm ci commands. Adjust fallback mechanism to remove --omit=dev flag for improved reliability in dependency management. --- deploy.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index af26924..11d85a3 100755 --- a/deploy.sh +++ b/deploy.sh @@ -239,9 +239,10 @@ setup_frontend() { npm config set audit false >/dev/null 2>&1 || true npm config set progress false >/dev/null 2>&1 || true npm config set loglevel warn >/dev/null 2>&1 || true - timeout 600 bash -lc "npm ci --omit=dev --no-audit --no-fund --silent --loglevel=warn --no-progress" || { + # Frontend braucht dev-Dependencies für den Build (vite, etc.) + timeout 600 bash -lc "npm ci --no-audit --no-fund --silent --loglevel=warn --no-progress" || { print_warning "npm ci ist fehlgeschlagen oder hat zu lange gedauert. Versuche fallback ohne timeout..." - npm ci --omit=dev --no-audit --no-fund --silent --loglevel=warn --no-progress || { + npm ci --no-audit --no-fund --silent --loglevel=warn --no-progress || { print_error "npm ci (Frontend) fehlgeschlagen"; exit 1; } } @@ -514,9 +515,10 @@ EOF npm config set audit false >/dev/null 2>&1 || true npm config set progress false >/dev/null 2>&1 || true npm config set loglevel warn >/dev/null 2>&1 || true - timeout 600 bash -lc "npm ci --omit=dev --no-audit --no-fund --silent --loglevel=warn --no-progress" || { + # Frontend braucht dev-Dependencies für den Build (vite, etc.) + timeout 600 bash -lc "npm ci --no-audit --no-fund --silent --loglevel=warn --no-progress" || { print_warning "npm ci ist fehlgeschlagen oder hat zu lange gedauert. Versuche fallback ohne timeout..." - npm ci --omit=dev --no-audit --no-fund --silent --loglevel=warn --no-progress || { + npm ci --no-audit --no-fund --silent --loglevel=warn --no-progress || { print_error "npm ci (Frontend Update) fehlgeschlagen"; exit 1; } }