Skip to content

Commit 722b86d

Browse files
pmadargaearon
authored andcommitted
Remove connect-history-api-fallback and cross-spawn dependencies from react-scripts (facebook#751) (facebook#2320)
1 parent f930fd9 commit 722b86d

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

Diff for: bin/react-scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
'use strict';
1212

13-
const spawn = require('cross-spawn');
13+
const spawn = require('react-dev-utils/crossSpawn');
1414
const script = process.argv[2];
1515
const args = process.argv.slice(3);
1616

Diff for: package.json

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
"babel-runtime": "6.23.0",
3131
"case-sensitive-paths-webpack-plugin": "1.1.4",
3232
"chalk": "1.1.3",
33-
"connect-history-api-fallback": "1.3.0",
34-
"cross-spawn": "4.0.2",
3533
"css-loader": "0.28.1",
3634
"dotenv": "4.0.0",
3735
"eslint": "3.19.0",

Diff for: scripts/eject.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ process.on('unhandledRejection', err => {
1919
const fs = require('fs-extra');
2020
const path = require('path');
2121
const execSync = require('child_process').execSync;
22-
const spawnSync = require('cross-spawn').sync;
2322
const chalk = require('chalk');
2423
const paths = require('../config/paths');
2524
const createJestConfig = require('./utils/createJestConfig');
2625
const inquirer = require('react-dev-utils/inquirer');
26+
const spawnSync = require('react-dev-utils/crossSpawn').sync;
2727

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

Diff for: scripts/init.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ process.on('unhandledRejection', err => {
1818

1919
const fs = require('fs-extra');
2020
const path = require('path');
21-
const spawn = require('cross-spawn');
2221
const chalk = require('chalk');
22+
const spawn = require('react-dev-utils/crossSpawn');
2323

2424
module.exports = function(
2525
appPath,

0 commit comments

Comments
 (0)