-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
docs: Add section on workspace version bumps #8019
base: latest
Are you sure you want to change the base?
Conversation
#### Note on `--save` | ||
By default, `npm version -ws` will bump the versions in each workspace without automatically | ||
updating dependency references across workspaces. Including the `--save` flag triggers a | ||
minimal reify operation that updates references **if** your semver range allows it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minima reify operation
is more info that folks probably want or need here. We just need to document what it does, not how.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed the "minima reify operation" and any mention of the internal npm mechanics
you must broaden the range (e.g., `">=1.0.0 <3.0.0"`, `"^1.0.0 || ^2.0.0"`, etc.) or | ||
manually update it to allow a major bump. | ||
|
||
It's important to note, Reify takes place even without the `--save` flag. However, in that case, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this last paragraph.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed the last paragraph.
This PR enhances the npm version documentation by adding a dedicated section, "Version Bumps with Workspaces", to clarify the behavior of npm version -ws in the context of inter-workspace dependencies. The new section provides detailed explanations and examples to address common questions about how workspace dependency updates are handled.
References
Related to #4578