mhassan1 / yarn-plugin-licenses

Yarn Berry plugin that adds `yarn licenses` commands
39 stars 11 forks source link

Update pnp.ts #40

Closed hakubo closed 11 months ago

hakubo commented 11 months ago

ZipOpenFS was moved to libzip

https://github.com/yarnpkg/berry/commit/fc57d688a2fd48eebbdeff75f69d4d5ca2b1e567

hakubo commented 11 months ago

actually not sure how to approach it better

I'm using Yarn v4 - rc52 and it does not work there.

But this plugins supports v3 also - do you have pointers how to tackle that?

mhassan1 commented 11 months ago

The reason why CI is failing is that Yarn plugins get the @yarnpkg/* packages from the Yarn binary, itself (not the packages in package.json). Since Yarn 4 has a bunch of breaking changes, I don't think it will be possible to support Yarn 3 and Yarn 4 in the same version of this plugin.

I'd like to wait until Yarn 4 is released before I release a breaking version of this plugin. Until then, I've pushed up a branch that adds Yarn 4 support: yarn plugin import https://raw.githubusercontent.com/mhassan1/yarn-plugin-licenses/yarn-4-rc/bundles/@yarnpkg/plugin-licenses.js.

See https://github.com/mhassan1/yarn-plugin-licenses/issues/41.