Skip to content

Commit

Permalink
Save yarn locally to workaround setup-node issue
Browse files Browse the repository at this point in the history
Setup-node refuses to add an option for enabling corepack due to it being marked experimental.
This unwittingly resulted in us using the globally installed yarn v1 version for building, despite our expectation that yarn v4 would be used.
Rather than do a dance of enabling corepack and setting up node, this saves yarn locally and checks it into git.
  • Loading branch information
shakuzen committed Nov 19, 2023
1 parent 59d5742 commit bcc3699
Show file tree
Hide file tree
Showing 3 changed files with 896 additions and 1 deletion.
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.2.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
"node": ">=18.0"
},
"description": "Website for r/JapanFinance wiki",
"packageManager": "[email protected].1+sha256.5a9d054e67fbbae8774cd3667736fd74407ffbbb336898523ca1fe87b3fc4ee3"
"packageManager": "[email protected].2"
}

0 comments on commit bcc3699

Please sign in to comment.