use path join

This commit is contained in:
Iuri Matias 2016-10-29 14:13:06 -04:00
parent 41273a4517
commit caaf3acde5
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ var TemplateGenerator = function(templateName) {
}; };
TemplateGenerator.prototype.generate = function(destinationFolder, name) { TemplateGenerator.prototype.generate = function(destinationFolder, name) {
var templatePath = path.join(__dirname + '/../' + this.templateName); var templatePath = path.join(__dirname, '/../', this.templateName);
wrench.copyDirSyncRecursive(templatePath, destinationFolder + name); wrench.copyDirSyncRecursive(templatePath, destinationFolder + name);