diff --git a/.changeset/two-ducks-end.md b/.changeset/two-ducks-end.md new file mode 100644 index 000000000000..737b992c931a --- /dev/null +++ b/.changeset/two-ducks-end.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +`astro add` now supports `-y` diff --git a/packages/astro/src/core/add/index.ts b/packages/astro/src/core/add/index.ts index d6ee73791a49..24025b0556f3 100644 --- a/packages/astro/src/core/add/index.ts +++ b/packages/astro/src/core/add/index.ts @@ -701,7 +701,7 @@ function parseIntegrationName(spec: string) { } async function askToContinue({ flags }: { flags: yargs.Arguments }): Promise { - if (flags.yes) return true; + if (flags.yes || flags.y) return true; const response = await prompts({ type: 'confirm',