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
pnpm link
should not change package.json
#4341
Comments
No, I don't think there is a reason for it. Looks like a bug. |
I have no local recurrence. my pnpm version: Can you provide a demo and steps to recurrence it? cc: @farfromrefug |
have 2 different folders |
my-module
{
"version": "1.0.0"
} my-project
{
"dependencies": {
}
} shell$ cd my-module
$ pnpm link --global
$ cd my-project
$ pnpm link --global my-module $ cat my-project/package.json
{
"dependencies": {
"my-module": "^1.0.0"
}
} Are you wanting to get the following?
|
@BlackHole1 well if the module is not yet in the dependencies i dont care. But if i have
I expect it NOT to change to
once i run |
okey |
What is the status of this? Could the linked PR be looked at? |
@zkochan @BlackHole1 I would appreciate if we could get an update on this defect. We're currently in the process of migrating an enterprise-scale project from npm to pnpm, but this change that |
I have checked how this works with npm. Looks like the link command never changes the |
Thank you for moving forward with the fix @zkochan! I can confirm that it works fine on our end with v8.5.0. |
Right now whenever you use
pnpm link
to link a local or global package (like for dev testing packages) the version of the package is changed in thepackage.json
from like3.2.1
to^3.2.1
.I see that as quite a big issue because it breaks the forkflow of forced specified version of packages.
Is there any reason for this? Could we stop that behavior?
The text was updated successfully, but these errors were encountered: