Comparing version 7.0.2 to 7.0.3
@@ -50,2 +50,3 @@ 'use strict'; | ||
return inquirer.prompt(prompts).then(function (answers) { | ||
data = typeof data === 'function' ? data(answers) : data; | ||
var merged = Object.assign({}, data, answers); | ||
@@ -52,0 +53,0 @@ |
{ | ||
"name": "kopy", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "Gracefully copy a directory and render templates.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -96,3 +96,3 @@ # kopy | ||
Type: `object`<br> | ||
Type: `object` `function`<br> | ||
Default: `undefined` | ||
@@ -102,2 +102,4 @@ | ||
If it's a function, we use its return value as `data`, and the first arguments is `answers`. | ||
##### prompts | ||
@@ -104,0 +106,0 @@ |
14709
216
195