deer-flow/frontend/Makefile
ShitK 4e44938551
fix: align pnpm consumers with Corepack fallback (#4405)
* fix: align pnpm consumers with Corepack fallback

* fix: run pnpm helper from frontend workspace

* fix: preserve Corepack resolution hint
2026-07-29 08:08:33 +08:00

33 lines
530 B
Makefile

ifeq ($(OS),Windows_NT)
PYTHON ?= python
else
PYTHON ?= python3
endif
PNPM = $(PYTHON) ../scripts/pnpm.py
install:
$(PNPM) install
build:
$(PNPM) build
dev:
$(PNPM) dev
test:
$(PNPM) test
test-e2e:
$(PNPM) test:e2e
lint:
$(PNPM) lint
format:
$(PNPM) format:write
build-static:
NEXT_CONFIG_BUILD_OUTPUT=standalone SKIP_ENV_VALIDATION=1 NEXT_PUBLIC_STATIC_WEBSITE_ONLY=true $(PNPM) build
@if [ -d .next/static ]; then mkdir -p .next/standalone/.next && cp -R .next/static .next/standalone/.next/static; fi