Skip to content

Commit fba6a04

Browse files
committed
[Tests] avoid npm run env bug in npm 7
Fixed by npm/cli#2655
1 parent cdfb1c6 commit fba6a04

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

install-relevant-react.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ REACT="${REACT:-${1:-16}}"
55
echo "installing React $REACT"
66

77
if [ "$REACT" = "0.13" ]; then
8-
npm run env -- 13
8+
npm run env: -- 13
99
elif [ "$REACT" = "0.14" ]; then
10-
npm run env -- 14
10+
npm run env: -- 14
1111
else
12-
npm run env -- "${REACT}"
12+
npm run env: -- "${REACT}"
1313
fi

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"test:karma": "karma start",
3030
"test:all": "npm run react 13 && npm run test:only && npm run react 14 && npm run test:only && npm run react 15 && npm run test:only && npm run react 15.4 && npm run test:only && npm run react 15.5 && npm run test:only && npm run react 16 && npm run test:only && npm run react 16.1 && npm run test:only && npm run react 16.2 && npm run test:only && npm run react 16.3 && npm run test:only && npm run react 16.4 && npm run test:only && npm run react 16.5 && npm run test:only && npm run react 16.8 && npm run test:only",
3131
"react": "sh install-relevant-react.sh",
32-
"env": "babel-node ./env.js",
32+
"env:": "babel-node ./env.js",
3333
"docs:clean": "rimraf _book",
3434
"docs:prepare": "gitbook install",
3535
"docs:build": "npm run docs:prepare && gitbook build",
@@ -100,7 +100,6 @@
100100
"semver": "^6.3.0",
101101
"webpack": "^2.7.0"
102102
},
103-
"dependencies": {},
104103
"greenkeeper": {
105104
"ignore": [
106105
"mocha",

0 commit comments

Comments
 (0)