Use Yarn 2 (#11962)
* chore: use yarn 2 * chore: remove redundant yarn locks * chore: remove publishEslintPkg * chore: remove redundant make bootstrap * Update .yarnrc.yml Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com> * chore: use workspace protocol for eslint packages in the root Co-Authored-By: merceyz <merceyz@users.noreply.github.com> * chore: pin caniuse-lite versions Testcases in packages/babel-preset-env/test/fixtures/debug/browserslists-defaults-not-ie depends on specific caniuse-lite versions. We pinned the version here so we don't have to deal with fixture different in e2e-tests where all deps will be updated and tested. * chore: resolve yarn install warnings * chore: update yarn cache path on circle/travis * chore: add yarn deduplicate plugin * chore: deduplicate lock files * chore: move devDependencies to leaf packages * chore: remove @yarnpkg/plugin-constraints * chore: remove unused dedupe options * test: fix unwanted self reference * chore: remove output-file-sync dependency * chore: update browserify to 16.5.2 Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
This commit is contained in:
@@ -21,13 +21,28 @@ cd tmp/create-react-app || exit
|
||||
# TEST #
|
||||
#==============================================================================#
|
||||
|
||||
# !!! WARNING !!!
|
||||
# create-react-app uses the useBuiltIns: true option of @babel/preset-react,
|
||||
# removed in Babel 8.0.0. And it does not specify runtime option. The test will break on
|
||||
# runtime: "automatic", default of Babel 8.
|
||||
# This change replaces useBuiltIns: true with runtime: "classic"
|
||||
sed -i 's/useBuiltIns: true/runtime: "classic"/' packages/babel-preset-react-app/create.js
|
||||
|
||||
bump_deps="$PWD/../../utils/bump-babel-dependencies.js"
|
||||
node "$bump_deps"
|
||||
for d in ./packages/*/
|
||||
do
|
||||
(cd "$d"; node "$bump_deps")
|
||||
done
|
||||
|
||||
# Don't use Yarn 2
|
||||
export YARN_IGNORE_PATH=1
|
||||
|
||||
startLocalRegistry "$PWD"/../../verdaccio-config.yml
|
||||
yarn install
|
||||
node "$PWD"/../../utils/bump-babel-dependencies.js
|
||||
yarn lerna exec -- node "$PWD"/../../utils/bump-babel-dependencies.js
|
||||
yarn install
|
||||
|
||||
# Test
|
||||
CI=true yarn test
|
||||
|
||||
unset YARN_IGNORE_PATH
|
||||
cleanup
|
||||
|
||||
Reference in New Issue
Block a user