Fix create-react-app and vue-cli tests on Node.js 17 (#13879)

* Fix `create-react-app` and `vue-cli` tests on Node.js 17

* Only on Node 17

* Fix
This commit is contained in:
Nicolò Ribaudo 2021-10-25 07:22:42 +02:00 committed by GitHub
parent c7ddb1ae93
commit ff922962a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -40,6 +40,11 @@ do
(cd "$d"; node "$bump_deps") (cd "$d"; node "$bump_deps")
done done
if [[ "$(node --version)" == v17.* ]]; then
# Remove this when https://github.com/webpack/webpack/issues/14532 is fixed
export NODE_OPTIONS=--openssl-legacy-provider
fi
startLocalRegistry "$PWD"/../../verdaccio-config.yml startLocalRegistry "$PWD"/../../verdaccio-config.yml
npm install npm install

View File

@ -25,10 +25,15 @@ cd tmp/vue-cli || exit
export YARN_IGNORE_PATH=1 export YARN_IGNORE_PATH=1
startLocalRegistry "$PWD"/../../verdaccio-config.yml startLocalRegistry "$PWD"/../../verdaccio-config.yml
yarn install yarn install --ignore-engines # Remove --ignore-engines when vue-cli upgrades their lockfile to eslint-import-resolver-webpack@0.13.2
node "$PWD"/../../utils/bump-babel-dependencies.js node "$PWD"/../../utils/bump-babel-dependencies.js
yarn lerna exec -- node "$PWD"/../../utils/bump-babel-dependencies.js yarn lerna exec -- node "$PWD"/../../utils/bump-babel-dependencies.js
yarn install yarn install --ignore-engines # Remove --ignore-engines when vue-cli upgrades their lockfile to eslint-import-resolver-webpack@0.13.2
if [[ "$(node --version)" == v17.* ]]; then
# Remove this when https://github.com/webpack/webpack/issues/14532 is fixed
export NODE_OPTIONS=--openssl-legacy-provider
fi
# Test # Test
CI=true yarn test -p babel,babel-preset-app CI=true yarn test -p babel,babel-preset-app