Skip to content

Commit

Permalink
Merge pull request #166 from rwjblue/drop-version-checking
Browse files Browse the repository at this point in the history
Do not issue warning when including ember-try in project's package.json.
  • Loading branch information
rwjblue authored Nov 14, 2017
2 parents 9b32644 + 244193d commit a46d00c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
/* jshint node: true */
'use strict';

var VersionChecker = require('ember-cli-version-checker');

module.exports = {
name: 'ember-try',
init: function() {
this._super.init && this._super.init.apply(this, arguments);

var checker = new VersionChecker(this);
var cliVersion = checker.for('ember-cli', 'npm');

if (cliVersion.satisfies('>= 2.6.0') && this.project.pkg.devDependencies && this.project.pkg.devDependencies['ember-try']) {
this.ui.writeDeprecateLine('ember-try is now included with ember-cli. Including it in your package.json is unnecessary.');
}
},
includedCommands: function() {
return require('./lib/commands');
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"cli-table2": "^0.2.0",
"core-object": "^1.1.0",
"debug": "^2.2.0",
"ember-cli-version-checker": "^2.1.0",
"ember-try-config": "^2.2.0",
"extend": "^3.0.0",
"fs-extra": "^0.26.0",
Expand Down

0 comments on commit a46d00c

Please sign in to comment.