#!/usr/bin/env bash # Wrapper so Node resolves playwright from scripts/node_modules. set -euo pipefail DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$DIR" if [[ ! -d node_modules/playwright ]]; then echo "Installing playwright in scripts/ …" npm install npx playwright install chromium fi exec node ./capture-auth-state.mjs "$@"