You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On one hand, it would be great to have a wildcard which also applied to prereleases.
On the other it's probably not a good idea to deviate from existing syntax set by npm. I would especially loath changing the meaning of existing syntax.
Feels bad, but perhaps a new wildcard like % is the only viable choice if this was to be fixed.
Until such a solution is reached (if ever?), I'd recommend scripting the update of dependency versions tracked in your yarn workspace.
We actually already slightly deviate in one specific case: peer dependencies warnings (because we consider that the intent isn't ambiguous here). We could do that for workspaces as well.
To anyone else who came here because they use are using lerna and yarn and have * in their root package.json pointing at a module in the monorepo itself and want to do a prerelease of the monorepo.
Replace the * with a relative file:packages/name-of-your-package and you're golden.
Say there is a structure:
yarn gives an error:
Probalby shoul just consider this available "prerelease" version if wilcard is used in dep?
The text was updated successfully, but these errors were encountered: