Skip to content

Commit

Permalink
Update yarn (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Dec 15, 2020
1 parent 3285869 commit 85251bc
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 57 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: ./scripts/check-yarn-bug.sh
- run: yarn
- run: yarn test

Expand Down
55 changes: 0 additions & 55 deletions .yarn/releases/yarn-2.3.1.cjs

This file was deleted.

55 changes: 55 additions & 0 deletions .yarn/releases/yarn-2.4.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-2.3.1.cjs
yarnPath: .yarn/releases/yarn-2.4.0.cjs
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"url": "https://github.com/nicolo-ribaudo"
},
"scripts": {
"test": "node ./test/index.js"
"test": "node ./test/index.js",
"prepublish": "./scripts/check-yarn-bug.sh"
},
"dependencies": {
"@babel/plugin-syntax-async-generators": "^7.8.4",
Expand Down
5 changes: 5 additions & 0 deletions scripts/check-yarn-bug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if grep 3155328e5 .yarn/releases/yarn-*.cjs -c; then
echo "Your version of yarn is affected by https://github.com/yarnpkg/berry/issues/1882"
echo "Please run \`sed -i -e \"s/3155328e5/4567890e5/g\" .yarn/releases/yarn-*.cjs\`"
exit 1
fi

0 comments on commit 85251bc

Please sign in to comment.