Skip to content

Commit 3842a49

Browse files
feat: validate user input (#1610)
1 parent 793a688 commit 3842a49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/webpack-cli/lib/utils/cli-executer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ async function prompter() {
3737
message: `Enter value of the ${selection} flag`,
3838
initial: options.defaultValue,
3939
result: (value) => [selection, value],
40+
validate: (value) => Boolean(value),
4041
});
4142
questions.push(valuePrompt);
4243
});

0 commit comments

Comments
 (0)