#!/bin/sh

# tools/bootstrap: Resolve all dependencies the app requires

set -e
cd "$(dirname "$0")/.."
echo "==> Running tools/bootstrap…"

# Install Node.js dependencies
echo "==> Running npm install…"
npm install

# Install Playwright and its dependencies
echo "==> Installing Playwright browsers and dependencies…"
npx playwright install-deps
npx playwright install

# Done
echo "==> tools/bootstrap done."
