Test env NATS cluster cut-over

This commit is contained in:
George Lambert 2026-09-11 23:59:56 -04:00
commit b1e9dfa39d
25 changed files with 833 additions and 0 deletions

16
scripts/install-deps.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# npm install in every cloned package that has package.json.
set -euo pipefail
DEST="${VERAE_SRC:-$HOME/verae-src}"
if [[ ! -d "$DEST" ]]; then
echo "missing $DEST — run scripts/clone.sh first" >&2
exit 1
fi
command -v node >/dev/null
command -v npm >/dev/null
find "$DEST" -maxdepth 2 -name package.json ! -path '*/node_modules/*' | while read -r pkg; do
dir="$(dirname "$pkg")"
echo "npm install $dir"
(cd "$dir" && npm install --no-audit --no-fund && npm rebuild --no-audit --no-fund >/dev/null)
done
echo "deps installed under $DEST"