src/utils.js
function generateQuestionsCustom(config, questions) {
  const mandatoryQuestions = [questions.name, questions.path]

  return mandatoryQuestions.filter((question) => {
    if (config[question.name]) {
      return false
    }
    return true
  })
}
function generateQuestionsCustom(config, questions) {
  const mandatoryQuestions = [questions.name, questions.path]

  return mandatoryQuestions.filter((question) => {
    if (config[question.name]) {
      return false
    }
    return true
  })
}
function generateQuestionsCustom ( config , questions ) { const mandatoryQuestions = [ questions . name , questions . path ] return mandatoryQuestions . filter ( ( question ) => { if ( config [ question . name ] ) { return false } return true } ) }
If the user want to use custom templates, return filtered questions
for only custom configuration
@param {object} config
@param {object} questions
If the user want to use custom templates return filtered questions for only custom configuration