Skip to content

Commit 158d343

Browse files
authored
fix(misc): update generators to use autocomplete instead of select when possible (#28851)
1 parent c50269a commit 158d343

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/js/src/generators/library/library.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ async function normalizeOptions(
698698
linter: 'none' | 'eslint';
699699
}>(
700700
{
701-
type: 'select',
701+
type: 'autocomplete',
702702
name: 'linter',
703703
message: `Which linter would you like to use?`,
704704
choices: [{ name: 'none' }, { name: 'eslint' }],
@@ -711,7 +711,7 @@ async function normalizeOptions(
711711
unitTestRunner: 'none' | 'jest' | 'vitest';
712712
}>(
713713
{
714-
type: 'select',
714+
type: 'autocomplete',
715715
name: 'unitTestRunner',
716716
message: `Which unit test runner would you like to use?`,
717717
choices: [{ name: 'none' }, { name: 'vitest' }, { name: 'jest' }],
@@ -724,7 +724,7 @@ async function normalizeOptions(
724724
linter: 'none' | 'eslint';
725725
}>(
726726
{
727-
type: 'select',
727+
type: 'autocomplete',
728728
name: 'linter',
729729
message: `Which linter would you like to use?`,
730730
choices: [{ name: 'eslint' }, { name: 'none' }],
@@ -737,7 +737,7 @@ async function normalizeOptions(
737737
unitTestRunner: 'none' | 'jest' | 'vitest';
738738
}>(
739739
{
740-
type: 'select',
740+
type: 'autocomplete',
741741
name: 'unitTestRunner',
742742
message: `Which unit test runner would you like to use?`,
743743
choices: [{ name: 'jest' }, { name: 'vitest' }, { name: 'none' }],

packages/nx/src/tasks-runner/run-command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ async function promptForApplyingSyncGeneratorChanges(): Promise<boolean> {
492492
try {
493493
const promptConfig = {
494494
name: 'applyChanges',
495-
type: 'select',
495+
type: 'autocomplete',
496496
message:
497497
'Would you like to sync the identified changes to get your workspace up to date?',
498498
choices: [
@@ -523,7 +523,7 @@ async function confirmRunningTasksWithSyncFailures(): Promise<void> {
523523
try {
524524
const promptConfig = {
525525
name: 'runTasks',
526-
type: 'select',
526+
type: 'autocomplete',
527527
message:
528528
'Would you like to ignore the sync failures and continue running the tasks?',
529529
choices: [

packages/playwright/src/generators/configuration/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ async function normalizeOptions(
224224
linter: 'none' | 'eslint';
225225
}>(
226226
{
227-
type: 'select',
227+
type: 'autocomplete',
228228
name: 'linter',
229229
message: `Which linter would you like to use?`,
230230
choices: [{ name: 'none' }, { name: 'eslint' }],
@@ -237,7 +237,7 @@ async function normalizeOptions(
237237
linter: 'none' | 'eslint';
238238
}>(
239239
{
240-
type: 'select',
240+
type: 'autocomplete',
241241
name: 'linter',
242242
message: `Which linter would you like to use?`,
243243
choices: [{ name: 'eslint' }, { name: 'none' }],

0 commit comments

Comments
 (0)