From 244193d55a0d15b3c2512b7a68508b8f53c4a4f6 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Tue, 14 Nov 2017 16:06:07 -0500 Subject: [PATCH] Do not issue warning when including ember-try in project's package.json. --- index.js | 11 ----------- package.json | 1 - 2 files changed, 12 deletions(-) diff --git a/index.js b/index.js index afe19193..4b70ad79 100644 --- a/index.js +++ b/index.js @@ -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'); } diff --git a/package.json b/package.json index f0148478..e70dd804 100644 --- a/package.json +++ b/package.json @@ -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",