fix(core): fix boolean prompts

This commit is contained in:
victor savkin 2020-12-01 16:24:45 -05:00
parent 8afc5c5bce
commit 3ec22dfc48

View File

@ -388,7 +388,7 @@ async function promptForValues(opts: Options, schema: Schema) {
if (typeof v['x-prompt'] === 'string') {
question.message = v['x-prompt'];
question.type = v.type;
question.type = v.type === 'boolean' ? 'confirm' : 'string';
} else if (
v['x-prompt'].type == 'confirmation' ||
v['x-prompt'].type == 'confirm'