Installs the built pg-chronicle tarball into a plain Node.js project and exercises
every published entrypoint, so a broken bun run build fails here instead of in a
user's app.
What it checks:
- ESM
importofpg-chronicleandpg-chronicle/next - CommonJS
require('pg-chronicle')(theexports.requirebranch) - The
pg-chronicleCLI bin runs under Node (shebang +--help) - A live audit-trail round trip: setup, INSERT/UPDATE/DELETE, history query, teardown
docker compose up -d # from the repo root, or set DATABASE_URL
cd examples/node
npm install # re-run after `bun run build` to pick up new dist
npm startDATABASE_URL defaults to postgres://postgres:postgres@localhost:5432/postgres.
The script creates a throwaway database and drops it when it finishes.