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 b5d5c127085..7030b7d6cdc 100644 --- a/packages/react-dev-utils/package.json +++ b/packages/react-dev-utils/package.json @@ -25,6 +25,7 @@ "openBrowser.js", "openChrome.applescript", "printHostingInstructions.js", + "inquirer.js", "WatchMissingNodeModulesPlugin.js", "WebpackDevServerUtils.js", "webpackHotDevClient.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 28dd41b8aaf..c5aaf33b1d2 100644 --- a/packages/react-scripts/scripts/eject.js +++ b/packages/react-scripts/scripts/eject.js @@ -20,9 +20,9 @@ const fs = require('fs-extra'); const path = require('path'); 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;