Skip to content

Commit

Permalink
force yarn 1.21.1 until we can handle invalid output of 1.22.0 (elast…
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer authored Feb 5, 2020
1 parent dcaee36 commit 5686010
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,6 @@
},
"engines": {
"node": "10.18.0",
"yarn": "^1.21.1"
"yarn": "1.21.1"
}
}
3 changes: 1 addition & 2 deletions src/dev/ci_setup/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

###
Expand Down
2 changes: 1 addition & 1 deletion x-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
"xregexp": "4.2.4"
},
"engines": {
"yarn": "^1.21.1"
"yarn": "1.21.1"
},
"workspaces": {
"nohoist": [
Expand Down

0 comments on commit 5686010

Please sign in to comment.