-
Self-service
Describe the bugThe word "tolerate" means:
So "tolerate republish" would mean "it's okay to republish". But the description of the flag suggests otherwise: berry/packages/plugin-npm-cli/sources/commands/npm/publish.ts Lines 37 to 39 in ed91923 And so does the implementation: berry/packages/plugin-npm-cli/sources/commands/npm/publish.ts Lines 70 to 91 in ed91923 However, this is out for over three years, so I feel like this would've been caught by now. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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 Adding |
Beta Was this translation helpful? Give feedback.
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 theyarn pack
call for all packages that don't need publishing.