-
Notifications
You must be signed in to change notification settings - Fork 48
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
Prefer workspace protocol when using pnpm #72
Comments
@mitchellhamilton @Andarist would be so awesome to get an answer here. More than happy to explore at a solution as well. |
I assume that the proposal here is for |
@Andarist what is the go here? Can I raise a pr to fix something? Just need to know what needs to happen. |
I'm also running into this. Has anyone found a workaround since the issue was originally raised?
Starting in the let range = deps[depName];
if (range.startsWith('workspace:') {
range = range.slice(10);
} I'm unsure if this is a good solution but am more than happy to make a PR if I'm on the right track here @Andarist. I know Yarn PnP also uses the For now, I'm just ignoring the {
"manypkg": {
"ignoredRules": [
"INTERNAL_MISMATCH"
]
}
} |
Wanted to flag this since it makes manypkg kind of unusable with pnpm. Would you accept a PR on this? |
Yeah, I think a PR for this would be accepted. At the very least we should allow those ranges and don't raise the OTOH As requested by @ifiokjr - we should also have a config flag (TIL that |
any progress on this issue? Having this problem with yarn workspaces. |
I have a small utility called |
Opened #186 to tackle this. |
Description
When
pnpm
encounters a package in a workspace which has a lower version than the most recently published on thenpm
registry it defaults to using the registry version.I opened an issue and the proposed solution was to use workspace protocols.
Unfortunately,
manypkg fix
removes all workspace protocols when run.My proposal is not just to ignore workspace protocols when using
pnpm
but actually to prefer them, since it's the recommended way to prevent a hard situation to debug. It took me a while to realize why none of my changes were having an impact.The text was updated successfully, but these errors were encountered: