build(makefile): swap npm ci for npm install so bootstrap no-ops on unchanged ui deps

This commit is contained in:
mateo-berri 2026-08-01 15:42:09 -07:00
parent ad2fb518f8
commit 25b89a6740

View file

@ -75,14 +75,7 @@ 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 && \
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
cd ui/litellm-dashboard && npm install --no-audit --no-fund
@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"; \