1
0
Fork 0

Merge pull request #94 from bmuenzenmeyer/93-template-path

fix(templatePath): supply templatePath if specified as default to inquirer
This commit is contained in:
Travis Fischer 2018-10-28 23:50:50 -04:00 committed by Joost De Cock
parent 39c4e570d2
commit 7f7dd1d739
3 changed files with 27 additions and 0 deletions

View file

@ -78,6 +78,7 @@ module.exports = async (opts) => {
type: 'input',
name: 'templatePath',
message: 'Template Path',
default: opts.templatePath,
when: ({ template }) => template === 'custom',
validate: input => new Promise(resolve => {
const fullPath = path.resolve(process.cwd(), input)