File tree 10 files changed +24
-22
lines changed
babel-plugin-named-asset-import
confusing-browser-globals
10 files changed +24
-22
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.3.1" ,
4
4
"description" : " Babel plugin for named asset imports in Create React App" ,
5
5
"repository" : {
6
- "type" : " git" ,
7
- "url" : " https://github.com/facebook/create-react-app.git" ,
6
+ "type" : " git" ,
7
+ "url" : " https://github.com/facebook/create-react-app.git" ,
8
8
"directory" : " packages/babel-plugin-named-asset-import"
9
9
},
10
10
"license" : " MIT" ,
Original file line number Diff line number Diff line change 3
3
"version" : " 7.0.2" ,
4
4
"description" : " Babel preset used by Create React App" ,
5
5
"repository" : {
6
- "type" : " git" ,
7
- "url" : " https://github.com/facebook/create-react-app.git" ,
6
+ "type" : " git" ,
7
+ "url" : " https://github.com/facebook/create-react-app.git" ,
8
8
"directory" : " packages/babel-preset-react-app"
9
9
},
10
10
"license" : " MIT" ,
Original file line number Diff line number Diff line change 8
8
"test" : " jest"
9
9
},
10
10
"repository" : {
11
- "type" : " git" ,
12
- "url" : " https://github.com/facebook/create-react-app.git" ,
11
+ "type" : " git" ,
12
+ "url" : " https://github.com/facebook/create-react-app.git" ,
13
13
"directory" : " packages/confusing-browser-globals"
14
14
},
15
15
"keywords" : [
Original file line number Diff line number Diff line change 6
6
],
7
7
"description" : " Create React apps with no build configuration." ,
8
8
"repository" : {
9
- "type" : " git" ,
10
- "url" : " https://github.com/facebook/create-react-app.git" ,
9
+ "type" : " git" ,
10
+ "url" : " https://github.com/facebook/create-react-app.git" ,
11
11
"directory" : " packages/create-react-app"
12
12
},
13
13
"license" : " MIT" ,
33
33
"fs-extra" : " 7.0.1" ,
34
34
"hyperquest" : " 2.1.3" ,
35
35
"inquirer" : " 6.2.2" ,
36
- "semver" : " 5.6 .0" ,
36
+ "semver" : " 6.0 .0" ,
37
37
"tar-pack" : " 3.4.1" ,
38
38
"tmp" : " 0.0.33" ,
39
39
"validate-npm-package-name" : " 3.0.0"
Original file line number Diff line number Diff line change 3
3
"version" : " 3.0.8" ,
4
4
"description" : " ESLint configuration used by Create React App" ,
5
5
"repository" : {
6
- "type" : " git" ,
7
- "url" : " https://github.com/facebook/create-react-app.git" ,
6
+ "type" : " git" ,
7
+ "url" : " https://github.com/facebook/create-react-app.git" ,
8
8
"directory" : " packages/eslint-config-react-app"
9
9
},
10
10
"license" : " MIT" ,
Original file line number Diff line number Diff line change 3
3
"version" : " 0.2.2" ,
4
4
"description" : " Polyfills for various browsers including commonly used language features" ,
5
5
"repository" : {
6
- "type" : " git" ,
7
- "url" : " https://github.com/facebook/create-react-app.git" ,
6
+ "type" : " git" ,
7
+ "url" : " https://github.com/facebook/create-react-app.git" ,
8
8
"directory" : " packages/react-app-polyfill"
9
9
},
10
10
"license" : " MIT" ,
Original file line number Diff line number Diff line change 3
3
"version" : " 8.0.0" ,
4
4
"description" : " Webpack utilities used by Create React App" ,
5
5
"repository" : {
6
- "type" : " git" ,
7
- "url" : " https://github.com/facebook/create-react-app.git" ,
6
+ "type" : " git" ,
7
+ "url" : " https://github.com/facebook/create-react-app.git" ,
8
8
"directory" : " packages/react-dev-utils"
9
9
},
10
10
"license" : " MIT" ,
Original file line number Diff line number Diff line change 11
11
"build:prod" : " cross-env NODE_ENV=production node build.js"
12
12
},
13
13
"repository" : {
14
- "type" : " git" ,
15
- "url" : " https://github.com/facebook/create-react-app.git" ,
14
+ "type" : " git" ,
15
+ "url" : " https://github.com/facebook/create-react-app.git" ,
16
16
"directory" : " packages/react-error-overlay"
17
17
},
18
18
"license" : " MIT" ,
44
44
"chalk" : " ^2.4.2" ,
45
45
"chokidar" : " ^2.1.2" ,
46
46
"cross-env" : " 5.2.0" ,
47
- "eslint" : " 5.16.0" ,
47
+ "eslint" : " ^ 5.16.0" ,
48
48
"eslint-config-react-app" : " ^3.0.8" ,
49
49
"eslint-plugin-flowtype" : " 2.50.1" ,
50
50
"eslint-plugin-import" : " 2.16.0" ,
Original file line number Diff line number Diff line change 3
3
"version" : " 2.1.8" ,
4
4
"description" : " Configuration and scripts for Create React App." ,
5
5
"repository" : {
6
- "type" : " git" ,
7
- "url" : " https://github.com/facebook/create-react-app.git" ,
6
+ "type" : " git" ,
7
+ "url" : " https://github.com/facebook/create-react-app.git" ,
8
8
"directory" : " packages/react-scripts"
9
9
},
10
10
"license" : " MIT" ,
41
41
"css-loader" : " 2.1.1" ,
42
42
"dotenv" : " 6.2.0" ,
43
43
"dotenv-expand" : " 4.2.0" ,
44
- "eslint" : " 5.16.0" ,
44
+ "eslint" : " ^ 5.16.0" ,
45
45
"eslint-config-react-app" : " ^3.0.8" ,
46
46
"eslint-loader" : " 2.1.2" ,
47
47
"eslint-plugin-flowtype" : " 2.50.1" ,
70
70
"react-dev-utils" : " ^8.0.0" ,
71
71
"resolve" : " 1.10.0" ,
72
72
"sass-loader" : " 7.1.0" ,
73
+ "semver" : " 6.0.0" ,
73
74
"style-loader" : " 0.23.1" ,
74
75
"terser-webpack-plugin" : " 1.2.3" ,
75
76
"url-loader" : " 1.1.2" ,
Original file line number Diff line number Diff line change 10
10
11
11
const chalk = require ( 'react-dev-utils/chalk' ) ;
12
12
const fs = require ( 'fs' ) ;
13
+ const semver = require ( 'semver' ) ;
13
14
const path = require ( 'path' ) ;
14
15
15
16
// We assume that having wrong versions of these
@@ -74,7 +75,7 @@ function verifyPackageTree() {
74
75
fs . readFileSync ( maybeDepPackageJson , 'utf8' )
75
76
) ;
76
77
const expectedVersion = expectedVersionsByDep [ dep ] ;
77
- if ( depPackageJson . version !== expectedVersion ) {
78
+ if ( ! semver . satisfies ( depPackageJson . version , expectedVersion ) ) {
78
79
console . error (
79
80
chalk . red (
80
81
`\nThere might be a problem with the project dependency tree.\n` +
You can’t perform that action at this time.
0 commit comments