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
[Feature Request] Support for Yarn 2 "workspace ranges" #598
Comments
I've created a pull request that attempts to fix the issues mentioned here. I will setup snapshot releases for this PR soon-ish but in the meantime I would love to ask if there are any people willing to test this stuff out in their projects. |
For those using package.json
instead of package.json
This references are the ones currently used in the pnpm monorepo, which is also using changeset. |
Affected Packages
@changesets/cli
Problem
First off, thanks for the great tool!
Yarn 2 introduces a feature called workspace ranges.
With workspace ranges, you can specify the intent of "depend on the current version of local workspace package, whatever the actual published version it may be". If you think about the workflow you're simutaneously modifying multiple packages, this can be extremely useful.
The transformation of
workspace:...
version to actual versions that npm can understand is handled by yarn at publish time.However, as current
changeset publish
command only supports either npm or pnpm as publish client, this transformation cannot take place, andchangeset publish
aborts with:Proposed solution
If either
@changesets/cli
allows its users to configure which publish command to use (Related issue: [feat] ability to replacenpm publish
#580) or,It would be awesome!
The text was updated successfully, but these errors were encountered: