-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(release): allow local dependency version protocols to be preserved, pnpm publish support #27787
feat(release): allow local dependency version protocols to be preserved, pnpm publish support #27787
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 151faf2. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 4 targets
Sent with 💌 from NxCloud. |
@@ -993,7 +999,8 @@ let pmVersion: string | undefined; | |||
const localPackageProtocols = [ | |||
'file:', // all package managers | |||
'workspace:', // not npm | |||
'portal:', // modern yarn only |
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.
I had jumped the gun on this being there in a previous PR, because we don't support it at the project graph level right now, so it's already not an applicable setup
968a389
to
74fc79f
Compare
…ed, pnpm publish support
228f1ef
to
151faf2
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
We always update relevant dependency versions to their new semantic version as part of versioning and we only ever publish using
npm publish
.Expected Behavior
We allow for the user to configure a preference for preserving local dependency protocols (such as
file:
andworkspace:
) when versioning, whilst maintaining all other aspects of the versioning logic.This would allow them to combine it with
pnpm publish
, which would handle the dynamic replacement of those values during the packing step. Therefore, when the user is usingpnpm
, we now preferentially publish usingpnpm publish
instead ofnpm publish
.Related Issue(s)
Fixes #