ember-cli-htmlbars
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -12,3 +12,3 @@ 'use strict'; | ||
init: function() { | ||
this._super.init && this._super.init.apply(this, arguments); | ||
if (this._super.init) { this._super.init.apply(this, arguments); } | ||
checker.assertAbove(this, '0.1.2'); | ||
@@ -64,7 +64,16 @@ }, | ||
if (!templateCompilerPath) { | ||
var ember = this.project.findAddonByName('ember-core'); | ||
if (ember) { | ||
return ember.absolutePaths.templateCompiler; | ||
} else if (!templateCompilerPath) { | ||
templateCompilerPath = this.project.bowerDirectory + '/ember/ember-template-compiler'; | ||
} | ||
return path.resolve(this.project.root, templateCompilerPath); | ||
var absolutePath = path.resolve(this.project.root, templateCompilerPath); | ||
if (path.extname(absolutePath) === '') { | ||
absolutePath += '.js'; | ||
} | ||
return absolutePath; | ||
}, | ||
@@ -75,3 +84,3 @@ | ||
var EmberENV = projectConfig.EmberENV || {}; | ||
var templateCompilerPath = this.templateCompilerPath() + '.js'; | ||
var templateCompilerPath = this.templateCompilerPath(); | ||
@@ -78,0 +87,0 @@ global.EmberENV = EmberENV; // Needed for eval time feature flag checks |
{ | ||
"name": "ember-cli-htmlbars", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "A library for adding htmlbars to ember CLI", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
16950
305