fix: 自动激活pnpm工具链

This commit is contained in:
Nixevol
2026-07-03 02:56:18 +08:00
parent 10f8c50c5d
commit b9e2b78fcd
7 changed files with 38 additions and 3 deletions
+2 -1
View File
@@ -8,7 +8,7 @@
"""
from __future__ import annotations
from _lib import build_env, load_config, run, write_env
from _lib import build_env, ensure_pnpm, load_config, run, write_env
COMPOSE = "docker compose --env-file .env -f docker/docker-compose.full.yml"
@@ -18,6 +18,7 @@ def main() -> None:
write_env(build_env(cfg))
# 安装依赖并构建前端静态(供 Nginx 挂载)
ensure_pnpm()
run("pnpm install")
run("pnpm build:shared")
run("pnpm --filter @artveris/admin build")