Skip to content

Commit

Permalink
Update create.js
Browse files Browse the repository at this point in the history
  • Loading branch information
devlato authored Jun 26, 2020
1 parent 2b1813f commit e331c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ exports.handler = ({ name, contentType, templateFile, extension }) => {
: !!process.env.TEMPLATE_FILE && typeof process.env.TEMPLATE_FILE === 'string'
? path.isAbsolute(process.env.TEMPLATE_FILE)
? process.env.TEMPLATE_FILE
: path.join(__dirname, process.env.TEMPLATE_FILE)
: path.join(process.cwd(), process.env.TEMPLATE_FILE)
: path.join(__dirname, '..', '..', 'lib', 'template.js')
extension = !!extension
? extension
Expand Down

0 comments on commit e331c92

Please sign in to comment.