diff --git a/lib/questions/type.js b/lib/questions/type.js index 2f8daab0..50ddfce1 100644 --- a/lib/questions/type.js +++ b/lib/questions/type.js @@ -17,7 +17,7 @@ const typeToListItem = ({types, disableEmoji}, type) => { * @param {string[]} config The whole config. */ const findType = function (substring, config) { - const types = config.list; + const types = config.list || Object.keys(config.types); return Promise.resolve(fuzzy.filter(substring || '', types).map(({original: type}) => typeToListItem(config, type))); };