diff --git a/lib/createQuestions.js b/lib/createQuestions.js index 510bc4a2..e15ca873 100644 --- a/lib/createQuestions.js +++ b/lib/createQuestions.js @@ -21,7 +21,7 @@ const createQuestions = (state, cliAnswers) => { const questions = state.config.questions .filter((name) => cliAnswers[name] === undefined) .map((name) => { - const question = creators[name].createQuestion(state); + const question = name.createQuestion ? name.createQuestion(state):creators[name].createQuestion(state); if (state.config.messages && state.config.messages[name]) { question.message = state.config.messages[name];