Files
agentrhq__authsome/scripts/build-ui.sh
T
Manoj Bajaj 745f1a28d4 fix: bundle static UI assets into wheel
Hatchling respects .gitignore by default, so the generated
src/authsome/ui/web/* assets were excluded from the wheel even though
build-ui.sh populates them before uv build runs in CI.

- Add force-include for the wheel target (sdist already had this) with
  the correct installed path (authsome/ui/web, not src/authsome/ui/web)
- Remove .gitkeep — build-ui.sh's mkdir -p creates the directory;
  no placeholder needed
- Drop the .gitignore exception for .gitkeep

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 13:15:21 +05:30

15 lines
388 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
UI_DIR="${ROOT_DIR}/ui"
TARGET_DIR="${ROOT_DIR}/src/authsome/ui/web"
UV_BIN="${UV:-uv}"
"${UV_BIN}" run pnpm --dir "${UI_DIR}" install --frozen-lockfile
"${UV_BIN}" run pnpm --dir "${UI_DIR}" build
rm -rf "${TARGET_DIR}"
mkdir -p "${TARGET_DIR}"
cp -R "${UI_DIR}/out/." "${TARGET_DIR}/"