analytics/scripts/run/build.sh
Claude Code 34961b06c5 scripts(scripts): 🔨 Add/update scripts for build automation and deployment workflows
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-04 15:14:01 -07:00

27 lines
545 B
Bash
Executable file

#!/bin/bash
# Build commands for @analytics
# Sourced by the top-level ./run script — do not execute directly.
# ROOT_DIR is set by the caller.
case "${2:-all}" in
all | "")
# ./run build
cd "$ROOT_DIR" && bun run build
;;
packages)
# ./run build:packages
cd "$ROOT_DIR" && bun run build:lib
;;
services)
# ./run build:services
cd "$ROOT_DIR" && bun run build:services
;;
*)
echo "Unknown build command: build:${2}"
echo "Usage: ./run build[:<packages|services>]"
exit 1
;;
esac