ember-cli-tree-shake
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -77,8 +77,6 @@ const Controllers = require('./controllers'); | ||
let jsPath = path.relative(this.paths.app + '/' + node.templatePath(), this.filepath); | ||
let jsPath = path.relative(this.paths.app, this.filepath); | ||
let controllerDirPath = path.dirname(jsPath); | ||
let templatePathPart = '/templates/'; | ||
if (node.templatePath()) { | ||
templatePathPart += node.templatePath() + '/'; | ||
if (controllerDirPath.startsWith('controllers')) { | ||
jsPath = path.relative('controllers', jsPath); | ||
} | ||
@@ -88,4 +86,5 @@ | ||
this.paths.app, | ||
templatePathPart, | ||
path.basename(jsPath, '.js') + '.hbs' | ||
'templates', | ||
path.dirname(jsPath), | ||
path.basename(jsPath, path.extname(jsPath)) + '.hbs' | ||
); | ||
@@ -92,0 +91,0 @@ let walker, htmlbars; |
{ | ||
"name": "ember-cli-tree-shake", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Use tree shaking to discover dead code in your Ember app", | ||
@@ -5,0 +5,0 @@ "directories": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15838