#!/usr/bin/env bash
# Regenerate chat-loop.widget.html from the WIDGET:START/END block in chat-loop.html.
set -euo pipefail
SLUG=$(basename "$(pwd)")
SCRIPT_DIR=$(cd "$(dirname "$0")/../.." && pwd)
node "$SCRIPT_DIR/scripts/extract-widget.mjs" "$SLUG"
