[PR #3245] [CLOSED] fix(cli): respect drizzle config when generating schema #4718

Closed
opened 2026-03-13 11:57:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3245
Author: @PhantomKnight287
Created: 7/2/2025
Status: Closed

Base: mainHead: fix/respect-drizzle-config-in-cli


📝 Commits (4)

  • d593bef respect drizzle config while generating schema
  • 6baa122 Update state.txt
  • a417752 fix formatting for CI
  • b495b29 emit schema inside auth-schema.ts in drizzle config directory

📊 Changes

8 files changed (+420 additions, -4 deletions)

View changed files

.vscode/extensions.json (+3 -0)
📝 packages/better-auth/src/adapters/kysely-adapter/test/state.txt (+1 -1)
📝 packages/cli/package.json (+1 -0)
📝 packages/cli/src/commands/generate.ts (+23 -2)
📝 packages/cli/src/utils/get-config.ts (+111 -0)
📝 packages/cli/test/generate.test.ts (+207 -0)
📝 packages/cli/test/get-config.test.ts (+71 -1)
📝 pnpm-lock.yaml (+3 -0)

📄 Description

Changes in this PR

  • This PR adds the ability in the cli to read the drizzle.config.{js,ts,mjs} and emit the schema in its config.schema or config.schema[0] location.
  • This PR also adds a extensions.json which gives the contributors a popup to install recommended extensions(biome in this case)

🔄 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/3245 **Author:** [@PhantomKnight287](https://github.com/PhantomKnight287) **Created:** 7/2/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/respect-drizzle-config-in-cli` --- ### 📝 Commits (4) - [`d593bef`](https://github.com/better-auth/better-auth/commit/d593bef1a86939c3515763f398d187830ee05ef8) respect drizzle config while generating schema - [`6baa122`](https://github.com/better-auth/better-auth/commit/6baa122968594be9512733a3be5b06087a79746b) Update state.txt - [`a417752`](https://github.com/better-auth/better-auth/commit/a4177529d4607ea109def4cec1b504512bc38a9c) fix formatting for CI - [`b495b29`](https://github.com/better-auth/better-auth/commit/b495b29f2860d79086f34126220604d067506eb0) emit schema inside auth-schema.ts in drizzle config directory ### 📊 Changes **8 files changed** (+420 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `.vscode/extensions.json` (+3 -0) 📝 `packages/better-auth/src/adapters/kysely-adapter/test/state.txt` (+1 -1) 📝 `packages/cli/package.json` (+1 -0) 📝 `packages/cli/src/commands/generate.ts` (+23 -2) 📝 `packages/cli/src/utils/get-config.ts` (+111 -0) 📝 `packages/cli/test/generate.test.ts` (+207 -0) 📝 `packages/cli/test/get-config.test.ts` (+71 -1) 📝 `pnpm-lock.yaml` (+3 -0) </details> ### 📄 Description ## Changes in this PR - This PR adds the ability in the cli to read the `drizzle.config.{js,ts,mjs}` and emit the schema in its `config.schema` or `config.schema[0]` location. - This PR also adds a `extensions.json` which gives the contributors a popup to install recommended extensions(biome in this case) --- <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-03-13 11:57:14 -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#4718