[PR #5651] fix: type annotation issue #14387

Closed
opened 2026-04-13 09:27:00 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5651

State: closed
Merged: Yes


Seems like the unbuild issue. It's not happening in 1.4

Fixes: https://github.com/better-auth/better-auth/issues/5637

Summary by cubic

Switch core build to tsdown (rolldown) for faster, simpler builds. Unifies .js outputs and fixes internal imports to play nicely with bundlers.

  • Refactors

    • Replaced unbuild with tsdown; added build and dev (watch) scripts.
    • Updated exports: ESM/CJS now output to dist/*.js; added “better-auth-dev-source” condition for dev.
    • Converted internal imports from “@better-auth/core/*” to local paths across providers and error utils.
    • Updated tsconfig for bundler resolution, incremental declarations, and custom conditions.
  • Dependencies

    • Added tsdown to the workspace; switched core devDependency to tsdown.
    • Removed unbuild from core devDependencies.
**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5651 **State:** closed **Merged:** Yes --- Seems like the unbuild issue. It's not happening in 1.4 Fixes: https://github.com/better-auth/better-auth/issues/5637 <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Switch core build to tsdown (rolldown) for faster, simpler builds. Unifies .js outputs and fixes internal imports to play nicely with bundlers. - **Refactors** - Replaced unbuild with tsdown; added build and dev (watch) scripts. - Updated exports: ESM/CJS now output to dist/*.js; added “better-auth-dev-source” condition for dev. - Converted internal imports from “@better-auth/core/*” to local paths across providers and error utils. - Updated tsconfig for bundler resolution, incremental declarations, and custom conditions. - **Dependencies** - Added tsdown to the workspace; switched core devDependency to tsdown. - Removed unbuild from core devDependencies. <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:27:00 -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#14387