Skip to content

Default db:generate to --pglite#28

Open
Begarudev wants to merge 1 commit into
seveibar:mainfrom
Begarudev:fix/default-init-db-generate-to-pglite
Open

Default db:generate to --pglite#28
Begarudev wants to merge 1 commit into
seveibar:mainfrom
Begarudev:fix/default-init-db-generate-to-pglite

Conversation

@Begarudev
Copy link
Copy Markdown

@Begarudev Begarudev commented May 20, 2026

Closes #2.

pgstrap init now scaffolds db:generate with --pglite so a freshly bootstrapped project can run bun run db:generate without needing a Postgres instance in the background. The flag already exists (added in #1 / #7) — this just flips the default in the init template.

Diff

  • src/init.ts: scaffolded script now reads pgstrap generate --pglite
  • tests/init.test.ts: corresponding assertion updated

Anyone who already initialized can opt out per project by editing their own package.json script back to pgstrap generate.

bun test / bun run build / bun run format:check all green locally.

@algora-pbc /claim #2

Copilot AI review requested due to automatic review settings May 20, 2026 08:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the pgstrap init scaffold so new projects can run bun run db:generate without requiring a running Postgres instance by defaulting generation to PGlite, aligning with Issue #2.

Changes:

  • Change the scaffolded db:generate script to pgstrap generate --pglite.
  • Update the init test assertion to match the new scaffolded script.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/init.ts Updates the generated package.json db:generate script to include --pglite by default.
tests/init.test.ts Updates the test expectation to assert the new db:generate script value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use pglite so that postgres isn't required when generating types

2 participants