28 lines
545 B
Bash
28 lines
545 B
Bash
|
|
#!/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
|