Skip to content

Use yarn 4#6681

Draft
chrisroos wants to merge 6 commits intonextfrom
use-yarn-4
Draft

Use yarn 4#6681
chrisroos wants to merge 6 commits intonextfrom
use-yarn-4

Conversation

@chrisroos
Copy link
Copy Markdown
Contributor

...

Jira Issue - MAV-XXX

Screenshots

...

@chrisroos chrisroos changed the base branch from main to next April 23, 2026 16:08
This is the latest version at the time of commit.
TODO: Test this change.
By running `yarn set version berry` as per the migration
instructions[1].

[1]: https://yarnpkg.com/migration/guide
By running `yarn install` as per the migration guide[1].

[1]: https://yarnpkg.com/migration/guide
This was created when first running `yarn install` using yarn version 4.

- `approvedGitRepositories`[1] has been set to allow installing from any
  git repo.

- `enableScripts`[2] has been set to true despite the default value
  being false. I can only guess this is because it's retaining the
  behaviour from yarn version 1 that we were using previously.

- `nodeLinker`[3] has been set to `node-modules` as that was the default
  behaviour in yarn version 1 that we were using previously.

[1]: https://yarnpkg.com/configuration/yarnrc#approvedGitRepositories
[2]: https://yarnpkg.com/configuration/yarnrc#enableScripts
[3]: https://yarnpkg.com/configuration/yarnrc#nodeLinker
chrisroos added a commit that referenced this pull request Apr 23, 2026
PR #6612 added yarn to .tool-versions instead of specifying that it
should be installed using homebrew. The version you get when installing
using homebrew is 1.22.22[1] ("Yarn classic") while the version added to
.tool-versions was 4.9.4 ("Yarn modern"). I've opened a draft PR[2] to
follow the migration guide to upgrade to Yarn modern but it seems like
it might be a bit involved. In the meantime all the developers will
start to see changes to .package.json and the addition of new yarn
related files when they run `yarn install`. I think it's safer for now
to retain the behaviour prior to #6612 while we work on #6681 in the
background.

[1]: https://formulae.brew.sh/formula/yarn
[2]: #6681
misaka pushed a commit that referenced this pull request Apr 23, 2026
PR #6612 added yarn to .tool-versions instead of specifying that it
should be installed using homebrew. The version you get when installing
using homebrew is 1.22.22[1] ("Yarn classic") while the version added to
.tool-versions was 4.9.4 ("Yarn modern"). I've opened a draft PR[2] to
follow the migration guide to upgrade to Yarn modern but it seems like
it might be a bit involved. In the meantime all the developers will
start to see changes to .package.json and the addition of new yarn
related files when they run `yarn install`. I think it's safer for now
to retain the behaviour prior to #6612 while we work on #6681 in the
background.

[1]: https://formulae.brew.sh/formula/yarn
[2]: #6681
misaka pushed a commit that referenced this pull request Apr 23, 2026
PR #6612 added yarn to .tool-versions instead of specifying that it
should be installed using homebrew. The version you get when installing
using homebrew is 1.22.22[1] ("Yarn classic") while the version added to
.tool-versions was 4.9.4 ("Yarn modern"). I've opened a draft PR[2] to
follow the migration guide to upgrade to Yarn modern but it seems like
it might be a bit involved. In the meantime all the developers will
start to see changes to .package.json and the addition of new yarn
related files when they run `yarn install`. I think it's safer for now
to retain the behaviour prior to #6612 while we work on #6681 in the
background.

[1]: https://formulae.brew.sh/formula/yarn
[2]: #6681
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.

1 participant