[PR #1528] [MERGED] chore: fix type exports and sync dep versions to improve build times #20749

Closed
opened 2026-04-15 19:54:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1528
Author: @BlankParticle
Created: 2/21/2025
Status: Merged
Merged: 2/21/2025
Merged by: @Bekacru

Base: v1.2Head: chore/improve-build


📝 Commits (1)

  • c0a25d6 chore: fix type exports and sync dep versions to improve build times

📊 Changes

42 files changed (+661 additions, -2063 deletions)

View changed files

📝 demo/nextjs/package.json (+1 -1)
📝 dev/bun/package.json (+2 -3)
📝 docs/components/builder/social-provider.tsx (+1 -1)
📝 docs/package.json (+1 -1)
📝 examples/browser-extension-example/package.json (+2 -2)
📝 examples/expo-example/package.json (+2 -2)
📝 examples/tanstack-example/app/lib/auth-client.ts (+1 -5)
📝 examples/tanstack-example/package.json (+3 -3)
📝 package.json (+1 -1)
📝 packages/better-auth/package.json (+1 -1)
📝 packages/better-auth/src/api/routes/email-verification.ts (+9 -4)
📝 packages/better-auth/src/api/routes/forget-password.ts (+14 -7)
📝 packages/better-auth/src/api/routes/session.ts (+1 -1)
📝 packages/better-auth/src/api/routes/sign-up.ts (+19 -13)
📝 packages/better-auth/src/api/routes/update-user.ts (+13 -8)
📝 packages/better-auth/src/auth.ts (+1 -2)
📝 packages/better-auth/src/cookies/cookies.test.ts (+2 -1)
📝 packages/better-auth/src/db/field.ts (+2 -1)
📝 packages/better-auth/src/index.ts (+0 -2)
📝 packages/better-auth/src/init.ts (+1 -1)

...and 22 more files

📄 Description

removes some export from better-auth root package and syncs package version across the monorepo to improve build times.

On my machine, building only the better-auth package

# Before
pnpm build  184.44s user 51.85s system 141% cpu 2:46.68 total

# After
pnpm build  149.19s user 29.45s system 136% cpu 2:10.87 total

🔄 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/1528 **Author:** [@BlankParticle](https://github.com/BlankParticle) **Created:** 2/21/2025 **Status:** ✅ Merged **Merged:** 2/21/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `v1.2` ← **Head:** `chore/improve-build` --- ### 📝 Commits (1) - [`c0a25d6`](https://github.com/better-auth/better-auth/commit/c0a25d6dda9b275c68832894d089ad5fd50ef6c6) chore: fix type exports and sync dep versions to improve build times ### 📊 Changes **42 files changed** (+661 additions, -2063 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/package.json` (+1 -1) 📝 `dev/bun/package.json` (+2 -3) 📝 `docs/components/builder/social-provider.tsx` (+1 -1) 📝 `docs/package.json` (+1 -1) 📝 `examples/browser-extension-example/package.json` (+2 -2) 📝 `examples/expo-example/package.json` (+2 -2) 📝 `examples/tanstack-example/app/lib/auth-client.ts` (+1 -5) 📝 `examples/tanstack-example/package.json` (+3 -3) 📝 `package.json` (+1 -1) 📝 `packages/better-auth/package.json` (+1 -1) 📝 `packages/better-auth/src/api/routes/email-verification.ts` (+9 -4) 📝 `packages/better-auth/src/api/routes/forget-password.ts` (+14 -7) 📝 `packages/better-auth/src/api/routes/session.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/sign-up.ts` (+19 -13) 📝 `packages/better-auth/src/api/routes/update-user.ts` (+13 -8) 📝 `packages/better-auth/src/auth.ts` (+1 -2) 📝 `packages/better-auth/src/cookies/cookies.test.ts` (+2 -1) 📝 `packages/better-auth/src/db/field.ts` (+2 -1) 📝 `packages/better-auth/src/index.ts` (+0 -2) 📝 `packages/better-auth/src/init.ts` (+1 -1) _...and 22 more files_ </details> ### 📄 Description removes some export from `better-auth` root package and syncs package version across the monorepo to improve build times. On my machine, building only the `better-auth` package ```bash # Before pnpm build 184.44s user 51.85s system 141% cpu 2:46.68 total # After pnpm build 149.19s user 29.45s system 136% cpu 2:10.87 total ``` --- <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-15 19:54:13 -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#20749