mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
build(makefile): swap npm ci for npm install so bootstrap no-ops on unchanged ui deps
This commit is contained in:
parent
ad2fb518f8
commit
25b89a6740
1 changed files with 1 additions and 8 deletions
9
Makefile
9
Makefile
|
|
@ -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"; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue