Skip to content

Commit

Permalink
throw if ember is also provided as a bowerDep
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Mar 15, 2016
1 parent d972b91 commit 737a034
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ add(paths, 'shims', 'vendor/ember/shims.js');
add(absolutePaths, 'templateCompiler', __dirname + '/dist/ember-template-compiler.js');

module.exports = {
init: function() {
if ('ember' in this.project.bowerDependencies()) {
throw new TypeError('Ember.js is now provided by node_module `ember-source`, please remove it from bower');
}
},

name: 'ember-source',
paths: paths,
absolutePaths: absolutePaths,
Expand Down

0 comments on commit 737a034

Please sign in to comment.