Skip to content

Conversation

@mcmire
Copy link
Contributor

@mcmire mcmire commented Jul 7, 2022

The package manager used has been upgraded from Yarn v1 to Yarn v3. All
of the steps in the migration guide have been followed, so
effectively everything should work the same way it did before. (Note
that we are not using Plug'n'Play because it seems to prevent TypeScript
from finding type definitions via @types/* packages.)

The setup script has been replaced with a Yarn v3 plugin that will
automatically run allow-scripts after install. This means that we can
now use yarn install again as normal. This change was made to address
a problem that happened when running yarn setup for the first time.
Yarn 3 doesn't automatically install itself until you run the install
command directly, so running the setup script before install would
have thrown an error. This is non-obvious, so we chose to remove setup
altogether.

See original source in controllers.

The package manager used has been upgraded from Yarn v1 to Yarn v3. All
of the steps in the [migration guide][1] have been followed, so
effectively everything should work the same way it did before. (Note
that we are not using Plug'n'Play because it seems to prevent TypeScript
from finding type definitions via `@types/*` packages.)

The `setup` script has been replaced with a Yarn v3 plugin that will
automatically run `allow-scripts` after install. This means that we can
now use `yarn install` again as normal. This change was made to address
a problem that happened when running `yarn setup` for the first time.
Yarn 3 doesn't automatically install itself until you run the `install`
command directly, so running the `setup` script before `install` would
have thrown an error. This is non-obvious, so we chose to remove `setup`
altogether.

See [original source in `controllers`][2].

[1]: https://yarnpkg.com/getting-started/migration
[2]: MetaMask/core@d92bec0

Co-authored-by: Mark Stacey <[email protected]>
@mcmire mcmire requested a review from a team as a code owner July 7, 2022 18:25
@mcmire mcmire requested review from Gudahtt, rekmarks and rickycodes July 7, 2022 18:26
mcmire added a commit to MetaMask/create-release-branch that referenced this pull request Jul 7, 2022
This is copied from the module template. See here for more context:

<MetaMask/metamask-module-template#108>
mcmire added a commit to MetaMask/create-release-branch that referenced this pull request Jul 7, 2022
This is copied from the module template. See here for more context:

<MetaMask/metamask-module-template#108>
mcmire added a commit to MetaMask/create-release-branch that referenced this pull request Jul 12, 2022
This is copied from the module template. See here for more context:

<MetaMask/metamask-module-template#108>
Gudahtt
Gudahtt previously approved these changes Jul 19, 2022
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mcmire
Copy link
Contributor Author

mcmire commented Jul 20, 2022

🙏🏻

@mcmire mcmire merged commit 84a2f63 into main Jul 20, 2022
@mcmire mcmire deleted the upgrade-to-yarn-v3 branch July 20, 2022 17:05
Gudahtt added a commit to MetaMask/browser-passworder that referenced this pull request Oct 26, 2022
Yarn has been updated following the steps taken in the module template
repository: MetaMask/metamask-module-template#108
Gudahtt added a commit to MetaMask/browser-passworder that referenced this pull request Oct 26, 2022
Yarn has been updated following the steps taken in the module template
repository: MetaMask/metamask-module-template#108

`auto-changelog` has also been updated; the version used previously was
not compatible with Yarn v3.
Gudahtt added a commit to MetaMask/browser-passworder that referenced this pull request Oct 26, 2022
Yarn has been updated following the steps taken in the module template
repository: MetaMask/metamask-module-template#108

`auto-changelog` has also been updated; the version used previously was
not compatible with Yarn v3.
Gudahtt added a commit to MetaMask/browser-passworder that referenced this pull request Oct 31, 2022
Yarn has been updated following the steps taken in the module template
repository: MetaMask/metamask-module-template#108

`auto-changelog` has also been updated; the version used previously was
not compatible with Yarn v3.
Gudahtt added a commit to MetaMask/browser-passworder that referenced this pull request Nov 3, 2022
Yarn has been updated following the steps taken in the module template
repository: MetaMask/metamask-module-template#108

`auto-changelog` has also been updated; the version used previously was
not compatible with Yarn v3.
Gudahtt added a commit to MetaMask/browser-passworder that referenced this pull request Nov 3, 2022
Yarn has been updated following the steps taken in the module template
repository: MetaMask/metamask-module-template#108

`auto-changelog` has also been updated; the version used previously was
not compatible with Yarn v3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants