Merge pull request #94 from bmuenzenmeyer/93-template-path
fix(templatePath): supply templatePath if specified as default to inquirer
This commit is contained in:
parent
39c4e570d2
commit
7f7dd1d739
3 changed files with 27 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue