Skip to content

Commit

Permalink
[Tests] avoid npm run env bug in npm 7
Browse files Browse the repository at this point in the history
Fixed by npm/cli#2655
  • Loading branch information
web-developer77 committed Feb 9, 2021
1 parent 4c978a8 commit c1bc6eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions install-relevant-react.sh
Expand Up @@ -5,9 +5,9 @@ REACT="${REACT:-${1:-16}}"
echo "installing React $REACT"

if [ "$REACT" = "0.13" ]; then
npm run env -- 13
npm run env: -- 13
elif [ "$REACT" = "0.14" ]; then
npm run env -- 14
npm run env: -- 14
else
npm run env -- "${REACT}"
npm run env: -- "${REACT}"
fi
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -29,7 +29,7 @@
"test:karma": "karma start",
"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",
"react": "sh install-relevant-react.sh",
"env": "babel-node ./env.js",
"env:": "babel-node ./env.js",
"docs:clean": "rimraf _book",
"docs:prepare": "gitbook install",
"docs:build": "npm run docs:prepare && gitbook build",
Expand Down Expand Up @@ -100,7 +100,6 @@
"semver": "^6.3.0",
"webpack": "^2.7.0"
},
"dependencies": {},
"greenkeeper": {
"ignore": [
"mocha",
Expand Down

0 comments on commit c1bc6eb

Please sign in to comment.