From 49ee2ad057467dcf006b8fa628676509dfabd6cb Mon Sep 17 00:00:00 2001 From: selva Date: Wed, 25 Apr 2018 01:25:03 +0800 Subject: [PATCH 1/2] Removes Unused reference to exixts-sync which fixes the deprecation thrown by ember-cli --- index.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/index.js b/index.js index bae89362..7e265d8a 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,6 @@ 'use strict'; var path = require('path'); -var existsSync = require('exists-sync'); var fs = require('fs-extra'); var attachMiddleware = require('./lib/attach-middleware'); var config = require('./lib/config'); @@ -123,17 +122,6 @@ module.exports = { attachMiddleware.testMiddleware(app, config); }, - // Custom Methods - - /** - * Thin wrapper around exists-sync that allows easy stubbing in tests - * @param {String} path - path to check existence of - * @returns {Boolean} whether or not path exists - */ - _existsSync: function(path) { - return existsSync(path); - }, - /** * Get project configuration * @returns {Configuration} project configuration From 17c67f58f901af1f4499df1c97de01d57b803d4b Mon Sep 17 00:00:00 2001 From: selva Date: Wed, 25 Apr 2018 01:27:43 +0800 Subject: [PATCH 2/2] Removes Unused reference to exixts-sync which fixes the deprecation thrown by ember-cli --- package.json | 1 - yarn.lock | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index dd72b8dd..d37ca3b6 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "ember-cli-babel": "^6.6.0", "ember-cli-htmlbars": "^2.0.1", "ember-cli-version-checker": "^2.0.0", - "exists-sync": "0.0.4", "extend": "^3.0.0", "fs-extra": "^5.0.0", "istanbul-api": "^1.1.14", diff --git a/yarn.lock b/yarn.lock index 581f6837..91941e7e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5125,6 +5125,12 @@ no-case@^2.2.0: dependencies: lower-case "^1.1.1" +node-dir@^0.1.16: + version "0.1.17" + resolved "https://registry.npmjs.org/node-dir/-/node-dir-0.1.17.tgz#5f5665d93351335caabef8f1c554516cf5f1e4e5" + dependencies: + minimatch "^3.0.2" + node-fetch-npm@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/node-fetch-npm/-/node-fetch-npm-2.0.2.tgz#7258c9046182dca345b4208eda918daf33697ff7"