From 9203e4ff73d134a1d987b2c1dd2faec56988c3f1 Mon Sep 17 00:00:00 2001 From: Cliff Hill Date: Sat, 1 Nov 2025 13:27:56 -0400 Subject: [PATCH] More frontend dependency fixes for the CICD build. Signed-off-by: Cliff Hill --- Dockerfile.cicd | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile.cicd b/Dockerfile.cicd index 6057bdc..ad50b5b 100644 --- a/Dockerfile.cicd +++ b/Dockerfile.cicd @@ -235,24 +235,24 @@ RUN cd /workspace/backend && \ RUN cd /workspace/frontend && \ echo "=== Frontend Tools Verification ===" && \ - echo "Current directory contents:" && \ - ls -la . && \ if [ -f ".frontend-deps-failed" ]; then \ echo "WARNING: Skipping frontend tool verification due to failed dependencies installation"; \ echo "Frontend CI/CD jobs may be limited in this environment"; \ - elif [ -d "node_modules" ]; then \ - echo "✓ node_modules found, verifying tools..." && \ + elif [ -d "node_modules" ] || [ -f ".pnp.cjs" ]; then \ + if [ -f ".pnp.cjs" ]; then \ + echo "✓ Yarn PnP dependencies found (.pnp.cjs), verifying tools..."; \ + else \ + echo "✓ Traditional node_modules found, verifying tools..."; \ + fi && \ yarn eslint --version && \ yarn prettier --version && \ yarn tsc --version && \ yarn vitest --version && \ echo "✓ All frontend tools verified successfully"; \ else \ - echo "ERROR: node_modules not found - frontend dependencies not installed"; \ - echo "Available directories in frontend:"; \ + echo "ERROR: No frontend dependencies found (neither node_modules nor .pnp.cjs)"; \ + echo "Available files in frontend:"; \ ls -la .; \ - echo "Checking if dependencies exist elsewhere:"; \ - find /workspace -name "node_modules" -type d 2>/dev/null || echo "No node_modules found anywhere"; \ exit 1; \ fi