stock-bot/scripts/build-all.sh
2026-10-20 12:39:38 -04:00

24 lines
796 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/.."
args=()
for option in "$@"; do
case "$option" in
--clean|-c) args+=(--force) ;;
--verbose|-v) args+=(--output-logs=full) ;;
--dry|--dry=json|--dry-run|--dry-run=json) args+=("$option") ;;
--help|-h)
echo "Usage: $0 [--clean] [--verbose]"
echo " --clean Force every workspace build, ignoring cached results"
echo " --verbose Print complete workspace build logs"
exit 0
;;
*) echo "Unknown option: $option" >&2; exit 1 ;;
esac
done
# The stock-app package contains convenience commands, not buildable source.
# Select all leaf workspaces so nested stock services are actually built.
exec bun run turbo run build --filter='!@stock-bot/stock-app' "${args[@]}"