Skip to content

Commit c922ca3

Browse files
pmadarromaindso
authored andcommitted
Remove unnecessary dependencies(facebook#751) (facebook#2283)
* Remove unnecessary dependencies(facebook#751) * Sort alphabetically
1 parent d64eba8 commit c922ca3

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

packages/react-dev-utils/inquirer.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
'use strict';
11+
12+
var inquirer = require('inquirer');
13+
14+
module.exports = inquirer;

packages/react-dev-utils/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"FileSizeReporter.js",
2020
"formatWebpackMessages.js",
2121
"getProcessForPort.js",
22+
"inquirer.js",
2223
"InterpolateHtmlPlugin.js",
2324
"launchEditor.js",
2425
"noopServiceWorkerMiddleware.js",

packages/react-scripts/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"file-loader": "0.11.1",
4646
"fs-extra": "3.0.1",
4747
"html-webpack-plugin": "2.28.0",
48-
"inquirer": "3.0.6",
4948
"jest": "20.0.3",
5049
"object-assign": "4.1.1",
5150
"postcss-flexbugs-fixes": "3.0.0",

packages/react-scripts/scripts/eject.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ const path = require('path');
2121
const execSync = require('child_process').execSync;
2222
const spawnSync = require('cross-spawn').sync;
2323
const chalk = require('chalk');
24-
const inquirer = require('inquirer');
2524
const paths = require('../config/paths');
2625
const createJestConfig = require('./utils/createJestConfig');
26+
const inquirer = require('react-dev-utils/inquirer');
2727

2828
const green = chalk.green;
2929
const cyan = chalk.cyan;

0 commit comments

Comments
 (0)