[PR #6300] [MERGED] chore(extend): cli utils get-config possible paths #23478

Closed
opened 2026-04-15 21:44:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6300
Author: @nrjdalal
Created: 11/25/2025
Status: Merged
Merged: 11/26/2025
Merged by: @himself65

Base: canaryHead: chore/extend-cli-utils-get-config-possible-paths


📝 Commits (1)

  • 1490832 chore(extend): cli utils get-config possible paths

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 packages/cli/src/utils/get-config.ts (+6 -0)

📄 Description

In all my projects, I want to keep better auth logic tied together in an auth folder, but still want main addressing at @/lib/auth, now if a user wants client, it's @/lib/auth/client, otherwise @/lib/auth.

.
└── lib
    ├── auth
    │   ├── client.ts
    │   └── index.ts
    └── utils.ts

Summary by cubic

Extended the CLI get-config to resolve auth/index.* and auth/index.server.* files. This supports projects that organize auth code in lib/auth while still resolving @/lib/auth (and @/lib/auth/client) without extra setup.

  • New Features
    • Added support for: auth/index.ts, .tsx, .js, .jsx and auth/index.server.ts, .js.

Written for commit 149083266b. 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/6300 **Author:** [@nrjdalal](https://github.com/nrjdalal) **Created:** 11/25/2025 **Status:** ✅ Merged **Merged:** 11/26/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `chore/extend-cli-utils-get-config-possible-paths` --- ### 📝 Commits (1) - [`1490832`](https://github.com/better-auth/better-auth/commit/149083266b2510a6f2923cfe3fb84a80dad46a55) chore(extend): cli utils get-config possible paths ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/utils/get-config.ts` (+6 -0) </details> ### 📄 Description In all my projects, I want to keep better auth logic tied together in an auth folder, but still want main addressing at `@/lib/auth`, now if a user wants client, it's `@/lib/auth/client`, otherwise `@/lib/auth`. ``` . └── lib ├── auth │ ├── client.ts │ └── index.ts └── utils.ts ``` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Extended the CLI get-config to resolve auth/index.* and auth/index.server.* files. This supports projects that organize auth code in lib/auth while still resolving @/lib/auth (and @/lib/auth/client) without extra setup. - **New Features** - Added support for: auth/index.ts, .tsx, .js, .jsx and auth/index.server.ts, .js. <sup>Written for commit 149083266b2510a6f2923cfe3fb84a80dad46a55. 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-15 21:44:58 -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#23478