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

Support npm workspaces in set-workspace-version.js #499

Merged

Conversation

timostamm
Copy link
Member

Support npm workspaces - including patterns in set-workspace-version.js. Update logic for syncing the lock file to handle local packages without a name.

Context (and base): #497

@timostamm timostamm requested a review from paul-sachs December 12, 2024 18:36
@timostamm
Copy link
Member Author

@paul-sachs, this might work, but let's make sure. Going to give it a test in the other repos tomorrow.

Copy link
Collaborator

@paul-sachs paul-sachs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and it works well for our purposes.

Signed-off-by: Timo Stamm <[email protected]>
@timostamm
Copy link
Member Author

I've refactored the script in 16f4364. It requires a package-lock.json file now, and checks conditions more rigorously. Workspace packages can omit a version, but only if they are private.

Also updating the script in connectrpc/connect-es#1368 and bufbuild/protobuf-es#1036.

@timostamm timostamm merged commit 1f0c1eb into psachs/fix-release-process-1 Dec 13, 2024
4 checks passed
@timostamm timostamm deleted the tstamm/set-workspace-version.js branch December 13, 2024 12:57
paul-sachs pushed a commit that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants