Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

build(makefile): skip npm ci in bootstrap when ui deps are unchanged

mateo-berriad2fb518f8ff
diff --git a/Makefile b/Makefile
index e9b2fb9d8f1..52105e76e7e 100644
--- a/Makefile
+++ b/Makefile
@@ -75,7 +75,14 @@ install-dev:
bootstrap:
$(UV) sync --inexact --frozen --extra proxy --group proxy-dev --group e2e-dev
$(UV_RUN) python scripts/prisma_generate_if_needed.py
- cd ui/litellm-dashboard && npm ci --no-audit --no-fund
+ @cd ui/litellm-dashboard && \
+ dep_hash=$$(git hash-object package.json package-lock.json); \
+ stamp=node_modules/.bootstrap-stamp; \
+ if [ "$$(cat "$$stamp" 2>/dev/null)" = "$$dep_hash" ]; then \
+ echo "bootstrap: ui deps up to date, skipping npm ci"; \
+ else \
+ npm ci --no-audit --no-fund && echo "$$dep_hash" > "$$stamp"; \
+ fi
@main_root=$$(git worktree list --porcelain | head -1 | sed 's/^worktree //'); \
if [ "$$main_root" != "$$(git rev-parse --show-toplevel)" ] && [ -f "$$main_root/.env" ] && [ ! -f .env ]; then \
cp "$$main_root/.env" .env && echo "bootstrap: copied .env from $$main_root"; \