diff --git a/src/nuxt/sdk-setup.ts b/src/nuxt/sdk-setup.ts index 075d04b1..0545d2e1 100644 --- a/src/nuxt/sdk-setup.ts +++ b/src/nuxt/sdk-setup.ts @@ -17,7 +17,7 @@ import { import { abort, abortIfCancelled, - askShouldAddNuxtOverride, + askShouldAddPackageOverride, featureSelectionPrompt, isUsingTypeScript, } from '../utils/clack-utils'; @@ -236,7 +236,7 @@ export async function addNuxtOverrides( ); for (const { pkgName, pkgVersion } of overrides) { - const shouldAddOverride = await askShouldAddNuxtOverride( + const shouldAddOverride = await askShouldAddPackageOverride( pkgName, pkgVersion, ); diff --git a/src/utils/clack-utils.ts b/src/utils/clack-utils.ts index 21806b9b..94b5cf5b 100644 --- a/src/utils/clack-utils.ts +++ b/src/utils/clack-utils.ts @@ -1492,11 +1492,11 @@ export async function featureSelectionPrompt>( }); } -export async function askShouldAddNuxtOverride( +export async function askShouldAddPackageOverride( pkgName: string, pkgVersion: string, ): Promise { - return traceStep(`ask-add-nuxt-overrides`, () => + return traceStep(`ask-add-package-override`, () => abortIfCancelled( clack.confirm({ message: `Do you want to add an override for ${chalk.cyan(