[PR #6654] [MERGED] chore: use unbuild for better-auth package #32407

Closed
opened 2026-04-17 23:13:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6654
Author: @himself65
Created: 12/10/2025
Status: Merged
Merged: 12/10/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/12/10/peer


📝 Commits (5)

📊 Changes

4 files changed (+54 additions, -61 deletions)

View changed files

📝 knip.jsonc (+2 -0)
📝 packages/better-auth/package.json (+38 -1)
📝 packages/better-auth/tsdown.config.ts (+2 -51)
📝 pnpm-lock.yaml (+12 -9)

📄 Description

Summary by cubic

Aligned peer dependencies for better-auth by adding optional peers for database drivers/ORMs and bumping better-sqlite3 to ^12.4.1. Streamlined the build by enabling unbundled output with sourcemaps and removing manual externals to avoid bundling conflicts and install issues.

  • Dependencies
    • Added optional peerDependencies: @prisma/client, better-sqlite3, drizzle-kit, drizzle-orm, mongodb, mysql2, pg, prisma, vitest.
    • Marked each as optional in peerDependenciesMeta.
    • Enabled sourcemaps and unbundled build in tsdown.config; removed the manual externals list.
    • Bumped better-sqlite3 to ^12.4.1 and updated the lockfile.

Written for commit 5bdfff1b0b. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6654 **Author:** [@himself65](https://github.com/himself65) **Created:** 12/10/2025 **Status:** ✅ Merged **Merged:** 12/10/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/12/10/peer` --- ### 📝 Commits (5) - [`4b6784d`](https://github.com/better-auth/better-auth/commit/4b6784d8b813dfd870d844eb31cf933807031943) chore: fix peer dependencies - [`2f6942f`](https://github.com/better-auth/better-auth/commit/2f6942fe8a16ecfee0e04561f2d883f79a282f9a) chore: fix peer dependencies - [`642d577`](https://github.com/better-auth/better-auth/commit/642d577c368776ba5d9254bde5c166caa210cd22) chore: enable unbuild - [`5067775`](https://github.com/better-auth/better-auth/commit/5067775045eb623ba954eaa726598d1711fe5d3f) fix: lint - [`5bdfff1`](https://github.com/better-auth/better-auth/commit/5bdfff1b0b0ab26e9acbbb2a745769cdee3bac23) fix: deps ### 📊 Changes **4 files changed** (+54 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `knip.jsonc` (+2 -0) 📝 `packages/better-auth/package.json` (+38 -1) 📝 `packages/better-auth/tsdown.config.ts` (+2 -51) 📝 `pnpm-lock.yaml` (+12 -9) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Aligned peer dependencies for better-auth by adding optional peers for database drivers/ORMs and bumping better-sqlite3 to ^12.4.1. Streamlined the build by enabling unbundled output with sourcemaps and removing manual externals to avoid bundling conflicts and install issues. - **Dependencies** - Added optional peerDependencies: @prisma/client, better-sqlite3, drizzle-kit, drizzle-orm, mongodb, mysql2, pg, prisma, vitest. - Marked each as optional in peerDependenciesMeta. - Enabled sourcemaps and unbundled build in tsdown.config; removed the manual externals list. - Bumped better-sqlite3 to ^12.4.1 and updated the lockfile. <sup>Written for commit 5bdfff1b0b0ab26e9acbbb2a745769cdee3bac23. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 23:13:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#32407