Skip to content

Commit

Permalink
fix(misc): update generators to use autocomplete instead of select wh…
Browse files Browse the repository at this point in the history
…en possible (#28851)
  • Loading branch information
AgentEnder authored Nov 8, 2024
1 parent c50269a commit 158d343
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/js/src/generators/library/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ async function normalizeOptions(
linter: 'none' | 'eslint';
}>(
{
type: 'select',
type: 'autocomplete',
name: 'linter',
message: `Which linter would you like to use?`,
choices: [{ name: 'none' }, { name: 'eslint' }],
Expand All @@ -711,7 +711,7 @@ async function normalizeOptions(
unitTestRunner: 'none' | 'jest' | 'vitest';
}>(
{
type: 'select',
type: 'autocomplete',
name: 'unitTestRunner',
message: `Which unit test runner would you like to use?`,
choices: [{ name: 'none' }, { name: 'vitest' }, { name: 'jest' }],
Expand All @@ -724,7 +724,7 @@ async function normalizeOptions(
linter: 'none' | 'eslint';
}>(
{
type: 'select',
type: 'autocomplete',
name: 'linter',
message: `Which linter would you like to use?`,
choices: [{ name: 'eslint' }, { name: 'none' }],
Expand All @@ -737,7 +737,7 @@ async function normalizeOptions(
unitTestRunner: 'none' | 'jest' | 'vitest';
}>(
{
type: 'select',
type: 'autocomplete',
name: 'unitTestRunner',
message: `Which unit test runner would you like to use?`,
choices: [{ name: 'jest' }, { name: 'vitest' }, { name: 'none' }],
Expand Down
4 changes: 2 additions & 2 deletions packages/nx/src/tasks-runner/run-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ async function promptForApplyingSyncGeneratorChanges(): Promise<boolean> {
try {
const promptConfig = {
name: 'applyChanges',
type: 'select',
type: 'autocomplete',
message:
'Would you like to sync the identified changes to get your workspace up to date?',
choices: [
Expand Down Expand Up @@ -523,7 +523,7 @@ async function confirmRunningTasksWithSyncFailures(): Promise<void> {
try {
const promptConfig = {
name: 'runTasks',
type: 'select',
type: 'autocomplete',
message:
'Would you like to ignore the sync failures and continue running the tasks?',
choices: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ async function normalizeOptions(
linter: 'none' | 'eslint';
}>(
{
type: 'select',
type: 'autocomplete',
name: 'linter',
message: `Which linter would you like to use?`,
choices: [{ name: 'none' }, { name: 'eslint' }],
Expand All @@ -237,7 +237,7 @@ async function normalizeOptions(
linter: 'none' | 'eslint';
}>(
{
type: 'select',
type: 'autocomplete',
name: 'linter',
message: `Which linter would you like to use?`,
choices: [{ name: 'eslint' }, { name: 'none' }],
Expand Down

0 comments on commit 158d343

Please sign in to comment.