[PR #6507] [MERGED] chore(cli): reduce better-auth imports #14961

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

📋 Pull Request Information

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

Base: canaryHead: himself65/2025/12/03/deps


📝 Commits (1)

  • 5f911e4 chore(cli): reduce better-auth deps

📊 Changes

12 files changed (+64 additions, -54 deletions)

View changed files

📝 packages/cli/package.json (+3 -2)
📝 packages/cli/src/commands/generate.ts (+12 -9)
📝 packages/cli/src/commands/login.ts (+7 -8)
📝 packages/cli/src/commands/migrate.ts (+16 -13)
📝 packages/cli/src/generators/auth-config.ts (+2 -3)
📝 packages/cli/src/generators/index.ts (+2 -3)
📝 packages/cli/src/generators/types.ts (+2 -1)
📝 packages/cli/src/utils/get-config.ts (+11 -11)
📝 packages/cli/test/generate-all-db.test.ts (+1 -1)
📝 packages/cli/test/generate.test.ts (+1 -1)
📝 packages/cli/test/migrate.test.ts (+1 -1)
📝 pnpm-lock.yaml (+6 -1)

📄 Description

Summary by cubic

Refactored the CLI to reduce direct better-auth imports by moving types to @better-auth/core and telemetry to @better-auth/telemetry. Switched logging to console.* with no CLI behavior changes.

  • Refactors

    • Replaced better-auth imports with @better-auth/core and @better-auth/telemetry in generate, migrate, login, generators, get-config, and tests.
    • Updated BetterAuthError import to @better-auth/core/error.
    • Switched logger calls to console.log/error/warn.
  • Dependencies

    • Added @better-auth/telemetry.
    • Kept better-auth as a dependency (updated specifier) and refreshed pnpm-lock.yaml.

Written for commit 5f911e4466. 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/6507 **Author:** [@himself65](https://github.com/himself65) **Created:** 12/3/2025 **Status:** ✅ Merged **Merged:** 12/4/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/12/03/deps` --- ### 📝 Commits (1) - [`5f911e4`](https://github.com/better-auth/better-auth/commit/5f911e4466db0f456730cc0f6a9eba53bb9e13cf) chore(cli): reduce better-auth deps ### 📊 Changes **12 files changed** (+64 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/package.json` (+3 -2) 📝 `packages/cli/src/commands/generate.ts` (+12 -9) 📝 `packages/cli/src/commands/login.ts` (+7 -8) 📝 `packages/cli/src/commands/migrate.ts` (+16 -13) 📝 `packages/cli/src/generators/auth-config.ts` (+2 -3) 📝 `packages/cli/src/generators/index.ts` (+2 -3) 📝 `packages/cli/src/generators/types.ts` (+2 -1) 📝 `packages/cli/src/utils/get-config.ts` (+11 -11) 📝 `packages/cli/test/generate-all-db.test.ts` (+1 -1) 📝 `packages/cli/test/generate.test.ts` (+1 -1) 📝 `packages/cli/test/migrate.test.ts` (+1 -1) 📝 `pnpm-lock.yaml` (+6 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Refactored the CLI to reduce direct better-auth imports by moving types to @better-auth/core and telemetry to @better-auth/telemetry. Switched logging to console.* with no CLI behavior changes. - **Refactors** - Replaced better-auth imports with @better-auth/core and @better-auth/telemetry in generate, migrate, login, generators, get-config, and tests. - Updated BetterAuthError import to @better-auth/core/error. - Switched logger calls to console.log/error/warn. - **Dependencies** - Added @better-auth/telemetry. - Kept better-auth as a dependency (updated specifier) and refreshed pnpm-lock.yaml. <sup>Written for commit 5f911e4466db0f456730cc0f6a9eba53bb9e13cf. 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-13 09:44:01 -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#14961