#!/bin/bash
set -e
pnpm install --frozen-lockfile
pnpm --filter db run push-force
# Idempotent: ensure the default groups exist and existing users are mapped
# (Admins, Tx, Everyone). Safe to run repeatedly.
pnpm --filter scripts run seed
pnpm --filter @workspace/tx-os exec playwright install chromium
