Skip to content

Commit

Permalink
[CLEANUP beta] Throw when ember is defined in bower.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Nov 12, 2021
1 parent 017b11e commit d601591
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/index.js
Expand Up @@ -45,9 +45,8 @@ module.exports = {
this._super.init && this._super.init.apply(this, arguments);

if ('ember' in this.project.bowerDependencies()) {
// TODO: move this to a throw soon.
this.ui.writeWarnLine(
'Ember.js is now provided by node_module `ember-source`, please remove it from bower'
throw new SilentError(
'Ember.js is now provided by the `ember-source` node module, please remove `ember` from your `bower.json` file.'
);
}

Expand Down

0 comments on commit d601591

Please sign in to comment.