Skip to content

Commit 30adcd4

Browse files
committed
Remove unnecessary dependencies(#751)
1 parent 4e886f7 commit 30adcd4

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
@@ -25,6 +25,7 @@
2525
"openBrowser.js",
2626
"openChrome.applescript",
2727
"printHostingInstructions.js",
28+
"inquirer.js",
2829
"WatchMissingNodeModulesPlugin.js",
2930
"WebpackDevServerUtils.js",
3031
"webpackHotDevClient.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
@@ -20,9 +20,9 @@ const fs = require('fs-extra');
2020
const path = require('path');
2121
const spawnSync = require('cross-spawn').sync;
2222
const chalk = require('chalk');
23-
const inquirer = require('inquirer');
2423
const paths = require('../config/paths');
2524
const createJestConfig = require('./utils/createJestConfig');
25+
const inquirer = require('react-dev-utils/inquirer');
2626

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

0 commit comments

Comments
 (0)