mirror of
https://github.com/agentrhq/authsome.git
synced 2026-09-19 01:34:19 +08:00
745f1a28d4
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>
15 lines
388 B
Bash
Executable File
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}/"
|