Skip to content

About --tolerate-republish #4770

Answered by arcanis
alecmev asked this question in Q&A
Aug 17, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Publishing a package over an existing version isn't possible on registries - they would crash, and the process would exit with an error code. This is problematic when using yarn workspaces foreach npm publish, as it could stop the iteration.

Adding --tolerate-republish tells Yarn that if the package already exists, then it's fine to skip the "republish" error and exit without error code. To this end we check for the package existence first, since it allows us to skip the yarn pack call for all packages that don't need publishing.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alecmev
Comment options

@arcanis
Comment options

@alecmev
Comment options

Answer selected by alecmev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #4769 on August 17, 2022 17:13.