Skip to content
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

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

JamesHenry
Copy link
Collaborator

@JamesHenry JamesHenry commented Sep 5, 2024

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: and workspace:) 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 using pnpm, we now preferentially publish using pnpm publish instead of npm publish.

Related Issue(s)

Fixes #

Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Sep 9, 2024 11:55am

@@ -993,7 +999,8 @@ let pmVersion: string | undefined;
const localPackageProtocols = [
'file:', // all package managers
'workspace:', // not npm
'portal:', // modern yarn only
Copy link
Collaborator Author

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

@JamesHenry JamesHenry changed the title feat(release): allow local dependency protocols to be preserved during versioning feat(release): allow local dependency version protocols to be preserved, pnpm publish support Sep 5, 2024
@JamesHenry JamesHenry force-pushed the release-version-preserveLocalDependencyProtocols branch 2 times, most recently from 968a389 to 74fc79f Compare September 5, 2024 20:35
@JamesHenry JamesHenry force-pushed the release-version-preserveLocalDependencyProtocols branch from 228f1ef to 151faf2 Compare September 9, 2024 11:52
@JamesHenry JamesHenry marked this pull request as ready for review September 9, 2024 12:34
@JamesHenry JamesHenry requested review from a team as code owners September 9, 2024 12:34
@JamesHenry JamesHenry self-assigned this Sep 9, 2024
@JamesHenry JamesHenry merged commit 431fe2a into master Sep 10, 2024
6 checks passed
@JamesHenry JamesHenry deleted the release-version-preserveLocalDependencyProtocols branch September 10, 2024 13:56
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants