#!/usr/bin/env bash
# 构建 client profile Console 静态产物
set -euo pipefail

ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$ROOT/console/web"

if [[ ! -d node_modules ]]; then
  npm ci
fi

VITE_NIANNIAN_PROFILE=client npm run build
echo "Console client build OK: $ROOT/console/web/dist"
