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