force yarn 1.21.1 until we can handle invalid output of 1.22.0 (#56914)

This commit is contained in:
Spencer 2020-02-05 13:19:37 -07:00 committed by GitHub
parent dcaee36498
commit 5686010b46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View file

@ -486,6 +486,6 @@
},
"engines": {
"node": "10.18.0",
"yarn": "^1.21.1"
"yarn": "1.21.1"
}
}

View file

@ -108,8 +108,7 @@ if [[ "$installNode" == "true" || ! $(which yarn) ]]; then
###
### downloading yarn
###
yarnVersion="$(node -e "console.log(String(require('./package.json').engines.yarn || '').replace(/^[^\d]+/,''))")"
npm install -g "yarn@^${yarnVersion}"
npm install -g "yarn@$(node -e "console.log(require('./package.json').engines.yarn)")"
fi
###

View file

@ -351,7 +351,7 @@
"xregexp": "4.2.4"
},
"engines": {
"yarn": "^1.21.1"
"yarn": "1.21.1"
},
"workspaces": {
"nohoist": [