You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 21a4a25
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: migrate all prompts from inquirer to @inquirer/prompts
Replace every inquirer.prompt call with the matching @inquirer/prompts
function and drop inquirer, @types/inquirer and the direct
@inquirer/search dependency. confirmPrompt no longer swallows errors, so
Ctrl+C reaches the central ExitPromptError handling.
The 'did you mean' suggestion prompts in the root command and in
`recipes` now use an AbortSignal timeout instead of closing the prompt
UI, which crashed the CLI with ERR_USE_AFTER_CLOSE whenever the user
answered before the timeout.
Tests that mocked inquirer.prompt now mock @inquirer/prompts, and the
env/recipes prompt snapshots are updated for the new rendering.
message: 'What is the purpose of this migration?',
99
-
validate: (input: string)=>(input.trim().length>0 ? true : 'Description cannot be empty'),
100
-
},
101
-
])
102
-
description=answers.description
94
+
description=awaitinput({
95
+
message: 'What is the purpose of this migration?',
96
+
validate: (value: string)=>(value.trim().length>0 ? true : 'Description cannot be empty'),
97
+
})
103
98
}else{
104
99
thrownewError(
105
100
`--description <description> argument is required when not running interactively. Provide a description of the migration (e.g. --description "add users table").`,
0 commit comments