etherscan-link
etherscan-link copied to clipboard
Upgrade Yarn to v3
This project is using Yarn v1 for managing dependencies and running package scripts. However, we're using Yarn v3 in all of our projects. We should do the same here.
Please use the module template as a guide for completing this ticket.
- Remove
.yarnrc(this is replaced with.yarnrc.ymlin Yarn v3) - Copy over
.yarnrc.yml,.yarn/releases,.yarn/plugins - Add a
packageManagerfield topackage.jsonand use the same value as in the module template - Copy
scripts/prepack.shover - Rename the
prepublishOnlypackage script inpackage.jsontoprepack - Update the
build-lint-testGitHub workflow to runyarn --immutableinstead ofyarn --frozen-lockfile
You can test that the prepack script works by running yarn pack. In this case the tests should be run before a local version of the package is built.