feat(publish)!: make version & publish commands optionnal, closes #450#552
Merged
ghiscoding merged 4 commits intonextfrom Apr 6, 2023
Merged
feat(publish)!: make version & publish commands optionnal, closes #450#552ghiscoding merged 4 commits intonextfrom
ghiscoding merged 4 commits intonextfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## next #552 +/- ##
=======================================
Coverage ? 97.64%
=======================================
Files ? 160
Lines ? 12383
Branches ? 2017
=======================================
Hits ? 12090
Misses ? 292
Partials ? 1 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Make
versionandpublishas optional commands. This change will in summary turn every command of the lib as optional commands (exceptinitwhich is a tiny command) and the CLI is now a dependency of all of these optional command.This is a breaking change and the users will have to do this change on their end if they still want to use
versionandpublishAlso note that
@lerna-lite/versionis a strict dependency of@lerna-lite/publish, so just installing thepublishpackage will automatically provide theversionas well. Behind the scene it will install the followingMotivation and Context
The issue #450 highlighted the fact that some users, not just in that issue, are actually using only the
runand/orexeccommands and they're not interested inpublishandversioncommands since they have their own process for publishing releases (or sometime not publishing at all). The newwatchcommand could also be another example of a command that could be used as a standalone without having to install and downloadversionandpublish@lerna-lite/versionand@lerna-lite/publishdependencies optional #450How Has This Been Tested?
Types of changes
Checklist: