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