Skip to content

Commit

Permalink
Make clack utility for package overrides generic
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiborza committed Nov 29, 2024
1 parent 32fef42 commit 6a70ac2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/nuxt/sdk-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import {
abort,
abortIfCancelled,
askShouldAddNuxtOverride,
askShouldAddPackageOverride,
featureSelectionPrompt,
isUsingTypeScript,
} from '../utils/clack-utils';
Expand Down Expand Up @@ -236,7 +236,7 @@ export async function addNuxtOverrides(
);

for (const { pkgName, pkgVersion } of overrides) {
const shouldAddOverride = await askShouldAddNuxtOverride(
const shouldAddOverride = await askShouldAddPackageOverride(
pkgName,
pkgVersion,
);
Expand Down
4 changes: 2 additions & 2 deletions src/utils/clack-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1492,11 +1492,11 @@ export async function featureSelectionPrompt<F extends ReadonlyArray<Feature>>(
});
}

export async function askShouldAddNuxtOverride(
export async function askShouldAddPackageOverride(
pkgName: string,
pkgVersion: string,
): Promise<boolean> {
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(
Expand Down

0 comments on commit 6a70ac2

Please sign in to comment.