Skip to content

Commit

Permalink
Revert "Add addon options templateCompilerPath (adopted-ember-addon…
Browse files Browse the repository at this point in the history
…s#88)"

This reverts commit 40b2ae8.
  • Loading branch information
lifeart authored Sep 11, 2018
1 parent 10e6cf9 commit 6e6c7e8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ module.exports = {
var lsReloader = require('./lib/hot-reloader')(config.options, this.supportedTypes);
lsReloader.run();
},
_getTemplateCompilerPath() {
var npmCompilerPath = path.join('ember-source', 'dist', 'ember-template-compiler.js');
return path.relative(this.project.root, require.resolve(npmCompilerPath));
},
included: function (app) {
this._super.included(app);

Expand All @@ -28,7 +24,9 @@ module.exports = {
var config = app.project.config('development');
var addonConfig = config[this.name] || { supportedTypes: ['components'] };
this.supportedTypes = addonConfig['supportedTypes'] || ['components'];
var npmPath = addonConfig['templateCompilerPath'] || this._getTemplateCompilerPath();

var npmCompilerPath = path.join('ember-source', 'dist', 'ember-template-compiler.js');
var npmPath = path.relative(app.project.root, require.resolve(npmCompilerPath));

// Require template compiler as in CLI this is only used in build, we need it at runtime
if (fs.existsSync(npmPath)) {
Expand Down

0 comments on commit 6e6c7e8

Please sign in to comment.