27 lines
545 B
Bash
Executable file
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
|