1#!/usr/bin/env bash 2set -euo pipefail 3 4# Build committed vendor libraries from the npm packages installed in this repo. 5# Usage: ./update-vendor.sh 6 7SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 8cd "$SCRIPT_DIR" 9 10if [[ ! -d node_modules ]]; then 11 echo "ERROR: node_modules is missing. Run npm install first." >&2 12 exit 1 13fi 14 15npm run build:vendor 16