From c922ca3564b3cafa7cbb49576c865006821306e5 Mon Sep 17 00:00:00 2001
From: pmadar
Date: Sat, 20 May 2017 20:08:58 +0200
Subject: [PATCH] Remove unnecessary dependencies(#751) (#2283)
* Remove unnecessary dependencies(#751)
* Sort alphabetically
---
packages/react-dev-utils/inquirer.js | 14 ++++++++++++++
packages/react-dev-utils/package.json | 1 +
packages/react-scripts/package.json | 1 -
packages/react-scripts/scripts/eject.js | 2 +-
4 files changed, 16 insertions(+), 2 deletions(-)
create mode 100644 packages/react-dev-utils/inquirer.js
diff --git a/packages/react-dev-utils/inquirer.js b/packages/react-dev-utils/inquirer.js
new file mode 100644
index 00000000000..9dbc080262c
--- /dev/null
+++ b/packages/react-dev-utils/inquirer.js
@@ -0,0 +1,14 @@
+/**
+ * Copyright (c) 2015-present, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ */
+
+'use strict';
+
+var inquirer = require('inquirer');
+
+module.exports = inquirer;
diff --git a/packages/react-dev-utils/package.json b/packages/react-dev-utils/package.json
index fa85d756de1..54d61bf0af7 100644
--- a/packages/react-dev-utils/package.json
+++ b/packages/react-dev-utils/package.json
@@ -19,6 +19,7 @@
"FileSizeReporter.js",
"formatWebpackMessages.js",
"getProcessForPort.js",
+ "inquirer.js",
"InterpolateHtmlPlugin.js",
"launchEditor.js",
"noopServiceWorkerMiddleware.js",
diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json
index 901f7ce389d..e68c9446e78 100644
--- a/packages/react-scripts/package.json
+++ b/packages/react-scripts/package.json
@@ -45,7 +45,6 @@
"file-loader": "0.11.1",
"fs-extra": "3.0.1",
"html-webpack-plugin": "2.28.0",
- "inquirer": "3.0.6",
"jest": "20.0.3",
"object-assign": "4.1.1",
"postcss-flexbugs-fixes": "3.0.0",
diff --git a/packages/react-scripts/scripts/eject.js b/packages/react-scripts/scripts/eject.js
index ce3cf419707..796e6f63a05 100644
--- a/packages/react-scripts/scripts/eject.js
+++ b/packages/react-scripts/scripts/eject.js
@@ -21,9 +21,9 @@ const path = require('path');
const execSync = require('child_process').execSync;
const spawnSync = require('cross-spawn').sync;
const chalk = require('chalk');
-const inquirer = require('inquirer');
const paths = require('../config/paths');
const createJestConfig = require('./utils/createJestConfig');
+const inquirer = require('react-dev-utils/inquirer');
const green = chalk.green;
const cyan = chalk.cyan;