mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +00:00
fix(cli): --yes option does not work on @better-auth/cli generate (#3749)
* fix: do not prompt before overwriting schema on `@better-auth/cli generate --yes ...` * chore: changeset --------- Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
This commit is contained in:
5
.changeset/twenty-camels-float.md
Normal file
5
.changeset/twenty-camels-float.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@better-auth/cli": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: `--yes` option does not work on `@better-auth/cli generate`
|
||||||
@@ -57,7 +57,7 @@ export async function generateAction(opts: any) {
|
|||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
if (schema.append || schema.overwrite) {
|
if (schema.append || schema.overwrite) {
|
||||||
let confirm = options.y;
|
let confirm = options.y || options.yes;
|
||||||
if (!confirm) {
|
if (!confirm) {
|
||||||
const response = await prompts({
|
const response = await prompts({
|
||||||
type: "confirm",
|
type: "confirm",
|
||||||
|
|||||||
Reference in New Issue
Block a user