-
-
Notifications
You must be signed in to change notification settings - Fork 6
Yarn 4 support #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @@ -1,5 +1,7 @@ | |||
| plugins: | |||
| - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs | |||
| spec: "@yarnpkg/plugin-interactive-tools" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plugin is removed because Yarn 4 includes this plugin.
| @@ -1,2047 +0,0 @@ | |||
| import { URL as URL$1, fileURLToPath, pathToFileURL } from 'url'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to add this file to .gitignore (like .pnp.cjs), or does Yarn not generate it anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yarn 4 does not generate this file anymore, only .pnp.cjs is generated. Maybe it has been included in Yarn 4 as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yarn generates it if it detects that ESM support is required, it should be added to .gitignore if you're not using zero-installs and PnP.
|
I will open a new PR to Babel using the built version of this PR, if the Babel CI is green it should be good to merge. |
|
Currently the Babel CI is failing because the serialized |
|
That RegExp hasn't changed for 4 years so that's odd, I would expect it to be related to yarnpkg/berry#4305. yarn-plugin-conditions/sources/ConditionProtocol/Resolver.ts Lines 130 to 135 in 204bb4f
|
|
Ty! Is this ready now that CI on the Babel PR is passing? |
Yes it is ready for review now. 🙏 |
| compressionLevel: mixed | ||
|
|
||
| yarnPath: .yarn/releases/yarn-3.6.1.cjs | ||
| enableGlobalCache: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, is there any reason for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is automatically generated by Yarn 4 when migrating from Yarn 3 config. The default is now true in Yarn 4, but it was false in Yarn 3.

This is a breaking change.
We bumped the yarn dependencies and adapted to Yarn 4 breaking changes. Because the plugin relies on yarn internal packages, we will not support Yarn 3 in the near future. Use 0.1.0 if you are using Yarn 3.
The built plugin seems to work with the Babel repo after it upgraded to Yarn 4.