Skip to content

fix: mark driver packages as external in build to prevent 4x binary bloat#246

Merged
anandgupta42 merged 1 commit intomainfrom
fix/build-external-drivers
Mar 18, 2026
Merged

fix: mark driver packages as external in build to prevent 4x binary bloat#246
anandgupta42 merged 1 commit intomainfrom
fix/build-external-drivers

Conversation

@anandgupta42
Copy link
Copy Markdown
Contributor

What does this PR do?

Adds database driver packages to the external array in Bun.build() config so they're NOT bundled into the compiled binary.

Build artifacts went from 1GB (v0.4.1) to 4GB (v0.4.2+) because driver packages (pg, snowflake-sdk, bigquery, etc.) were being bundled. This caused npm publish to fail with ENOSPC.

Type of change

  • Bug fix

Issue for this PR

Fixes npm publish ENOSPC failure in v0.4.2/v0.4.3 releases.

How did you verify your code works?

Typecheck passes. Build config change only — no runtime changes.

Checklist

  • My code follows the project's coding standards
  • I have performed a self-review of my code

🤖 Generated with Claude Code

…loat

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@claude
Copy link
Copy Markdown

claude Bot commented Mar 18, 2026

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review.

@anandgupta42 anandgupta42 merged commit a3d3176 into main Mar 18, 2026
6 of 7 checks passed
@anandgupta42 anandgupta42 deleted the fix/build-external-drivers branch March 25, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant