From 3890b4a38e791d9b7d86840745ce873d8e39e009 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 19 Feb 2017 20:01:42 -0500 Subject: [PATCH] refactor to use method to determine app root path, instead of constantly using relative paths --- lib/cmds/template_generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmds/template_generator.js b/lib/cmds/template_generator.js index 18e65e401..b2dd26ff6 100644 --- a/lib/cmds/template_generator.js +++ b/lib/cmds/template_generator.js @@ -6,7 +6,7 @@ var TemplateGenerator = function(templateName) { }; TemplateGenerator.prototype.generate = function(destinationFolder, name) { - var templatePath = js.embarkPath(this.templateName); + var templatePath = fs.embarkPath(this.templateName); console.log('Initializing Embark Template....'.green); fs.copySync(templatePath, destinationFolder + name);