master-zapier-plan-draft/packages/verae-bootstrap/scripts/install-deps.sh
George Lambert 03f557203a
Some checks are pending
offline / test (push) Waiting to run
Sync docs, add verae-bootstrap, and run the full stack on NS1.
Docs match current modules: public portal is access-web /portal/,
IAM and keep are listed, edge is loopback. Bootstrap clones every
Forgejo repo and installs deps per server type. Fleet starts IAM
and staff-session. NS1 all-in-one uses edge :13000 because :3000
is taken; archive workers stay with keep.
2026-09-11 19:52:54 -04:00

16 lines
570 B
Bash
Executable file

#!/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"