v2.6.0
New
-
In
meta.js
, thedefault
field for a prompt can now be a function which will receive the answers data as the argument, which enables usage like the following:module.exports = { prompts: { library: { type: 'string', required: true, message: 'Library name for browser usage', default (answers) { if (answers.name) { return kebabToCamel(answers.name) } else { return '' } } } } }