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

fix: don't touch packages with 'workspace' set as a package version #95

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bartlomiejzuber
Copy link

Fixes #87

Changes

It skips connected packages that has 'workspace' e.g. 'workspace:*' keyword set as version number.

  • New code is covered by tests
  • All the changes are mentioned in docs (readme.md)

@antongolub
Copy link
Member

Hey @bartlomiejzuber,

By default semrel uses npm-plugin to publish packages. If we dont switch workspace:* ref to a specific version like 1.0.0 what happens next?

@antongolub
Copy link
Member

antongolub commented Aug 9, 2023

Take a look on the upstream repo: https://github.com/dhoulb/multi-semantic-release/blob/b4e68f9ec42b166ff2e713c04a966b0fbecc9661/test/lib/updateDeps.test.js#L53

Smth similar is implemented there. Maybe it's possible to reuse this code.

@zigang93
Copy link

@antongolub can you explain how to avoid this? my pnpm install failed due to 'workspace:*' keyword set as version number.

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.

Prevent updating dependencies in affected package.json
3 participants