File tree 6 files changed +9
-8
lines changed
packages/react-scripts/scripts
6 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ var spawnSync = require('cross-spawn').sync;
14
14
var chalk = require ( 'chalk' ) ;
15
15
var prompt = require ( 'react-dev-utils/prompt' ) ;
16
16
var paths = require ( '../config/paths' ) ;
17
- var createJestConfig = require ( '.. /utils/createJestConfig' ) ;
17
+ var createJestConfig = require ( './utils/createJestConfig' ) ;
18
18
19
19
var green = chalk . green ;
20
20
var cyan = chalk . cyan ;
@@ -48,7 +48,8 @@ prompt(
48
48
var folders = [
49
49
'config' ,
50
50
'config/jest' ,
51
- 'scripts'
51
+ 'scripts' ,
52
+ 'scripts/utils'
52
53
] ;
53
54
54
55
// Make shallow array of files paths
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ var prompt = require('react-dev-utils/prompt');
29
29
var paths = require ( '../config/paths' ) ;
30
30
var config = require ( '../config/webpack.config.dev' ) ;
31
31
var devServerConfig = require ( '../config/webpackDevServer.config' ) ;
32
- var createWebpackCompiler = require ( '.. /utils/createWebpackCompiler' ) ;
33
- var addWebpackMiddleware = require ( '.. /utils/addWebpackMiddleware' ) ;
32
+ var createWebpackCompiler = require ( './utils/createWebpackCompiler' ) ;
33
+ var addWebpackMiddleware = require ( './utils/addWebpackMiddleware' ) ;
34
34
35
35
var useYarn = fs . existsSync ( paths . yarnLockFile ) ;
36
36
var cli = useYarn ? 'yarn' : 'npm' ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ if (!process.env.CI && argv.indexOf('--coverage') < 0) {
28
28
29
29
// @remove -on-eject-begin
30
30
// This is not necessary after eject because we embed config into package.json.
31
- const createJestConfig = require ( '.. /utils/createJestConfig' ) ;
31
+ const createJestConfig = require ( './utils/createJestConfig' ) ;
32
32
const path = require ( 'path' ) ;
33
33
const paths = require ( '../config/paths' ) ;
34
34
argv . push ( '--config' , JSON . stringify ( createJestConfig (
Original file line number Diff line number Diff line change
1
+ var chalk = require ( 'chalk' ) ;
1
2
var historyApiFallback = require ( 'connect-history-api-fallback' ) ;
2
3
var httpProxyMiddleware = require ( 'http-proxy-middleware' ) ;
3
- var paths = require ( '../config/paths' ) ;
4
- var chalk = require ( 'chalk' ) ;
4
+ var paths = require ( '../../config/paths' ) ;
5
5
6
6
module . exports = function addMiddleware ( devServer ) {
7
7
// `proxy` lets you to specify a fallback server during development.
Original file line number Diff line number Diff line change 9
9
*/
10
10
11
11
const fs = require ( 'fs' ) ;
12
- const paths = require ( '../config/paths' ) ;
12
+ const paths = require ( '../../ config/paths' ) ;
13
13
14
14
module . exports = ( resolve , rootDir , isEjecting ) => {
15
15
// Use this instead of `paths.testsSetup` to avoid putting
File renamed without changes.
You can’t perform that action at this time.
0 commit comments