Skip to content

Commit

Permalink
fix: set default prompt type
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jan 9, 2019
1 parent 33f7362 commit 184d64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runPrompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = async (questions, generator) => {
}

// Compability with older version
if (q.type === 'text') {
if (q.type === 'text' || q.type === undefined) {
q.type = 'input'
}

Expand Down

0 comments on commit 184d64b

Please sign in to comment.