- Snapshot DB schema to .migration-baseline-schema.sql (ground truth for API port) - Add BASELINE.md documenting current state before UI redesign - Pre-flight cleanup: removed node_modules, .next, tsbuildinfo (~527 MB freed) - Next.js web container stopped (big-bang per user decision) - Bun 1.3.14 installed via official installer (see script/setup-bun.sh) Parent: t_e1cbd87d Follows: HermesBriefcase/Personal/Projects/Project-E-UI-Redesign-Spec.md
26 lines
719 B
Bash
Executable File
26 lines
719 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Idempotent Bun installer — wraps the official installer and sets up PATH.
|
|
# Safe to re-run; skips re-install if bun is already present.
|
|
set -euo pipefail
|
|
|
|
if command -v bun &>/dev/null; then
|
|
echo "bun already installed: $(bun --version)"
|
|
exit 0
|
|
fi
|
|
|
|
if [ -x "$HOME/.bun/bin/bun" ]; then
|
|
echo "bun binary found at ~/.bun/bin/bun, adding to PATH"
|
|
export PATH="$HOME/.bun/bin:$PATH"
|
|
echo "bun version: $(bun --version)"
|
|
exit 0
|
|
fi
|
|
|
|
echo "Installing bun via official installer..."
|
|
curl -fsSL https://bun.sh/install | bash
|
|
|
|
# Ensure PATH is set for the current session
|
|
export BUN_INSTALL="$HOME/.bun"
|
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
|
|
|
echo "bun installed: $(bun --version)"
|