🔧 Update server dependency check to verify key modules in root node_modules

This commit is contained in:
2026-01-29 14:10:31 +00:00
parent da9d658238
commit 39a574c2c2

View File

@@ -154,9 +154,10 @@ check_prerequisites() {
fi
log_success "Dependencies installed"
# Check if server dependencies are installed
if [ ! -d "$PROJECT_ROOT/server/node_modules" ]; then
log_error "Server dependencies not installed. Run 'npm install --workspace=server' first"
# Check if server dependencies are installed (workspaces hoist to root node_modules)
# Check for key server dependencies in root node_modules
if [ ! -d "$PROJECT_ROOT/node_modules/express" ] || [ ! -d "$PROJECT_ROOT/node_modules/cors" ]; then
log_error "Server dependencies not installed. Run 'npm install' first"
exit 1
fi
log_success "Server dependencies installed"