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
feature request: --exclude-dependents support for lerna ls #2198
Comments
It's definitely by design. #707 etc etc. There are tons of other issues that want this very same thing. I guess I'm tired of saying no. If people want to shoot themselves in the foot, who am I to stop them? I'm okay with
|
Thanks for the quick response @evocateur! Appreciate the link to #707. I'll update the title of this to signify this is (yet another) feature request.
That sounds great. If I prioritize the time then I'll open a pull request with the flag. I'd be happy to close this out too if you'd like and I can reference it in the potential PR. Thank you for all you do! Lerna is a key piece of how we manage some of our packages and it's great to see new features landing all the time (like |
@piperchester, are you working on implementing this? I was considering taking a stab if you haven't started yet. |
Yep! I'm almost done -- feel free to poll me for updates @farooqu. |
Footguns abound. Fixes lerna#2198
Footguns abound. Fixes lerna#2198
Footguns abound. Fixes lerna#2198
Expected Behavior
will not include dependents by default.
Current Behavior
includes dependent packages by default.
Possible Solution
Wanted to open an issue to start a discussion to see if others feel that this behavior should be changed. I'd be interested in helping contribute a flag so that one can opt out of the behavior if desired.
Something like
--no-dependents
, perhaps.Steps to Reproduce (for bugs)
lerna ls --since HEAD~1
Context
Working on a project that looks at changed packages. If a package is changed, but it has dependents, then
lerna ls
include that dependent package (even if it hasn't been changed). There might be another command that would help here (I thinklerna changed --since
would be great, but I don't thinklerna changed
supports filter flags).For more context, we're looking for this to implement publishing logic in CI to determine which packages need to be published (and we can't use
lerna publish
because we just want tonpm pack
them not actually publish to the registry).The text was updated successfully, but these errors were encountered: