You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Syncing external dependencies across packages #259
it scans your packages and finds common external dependencies, which it then installs at the root node_modules folder. node will walk the directory tree and find the modules it needs there for your packages. this can potentially cause other issues though.
But suppose my dependency is deliberately out of date--where I can't update it or haven't gotten around to it yet--but I want to make sure it's consistent across packages. It would be useful to have a command with output like:
I have stubs for lerna upgrade and lerna remove in master right now (complementing the existing lerna add), I'm just trying to find time to implement them (as well as a graceful lerna outdated).
Reacted by Julien Heller, David, trompx, Arian Valdez, Sean Yu, gaitat, Sebastian "Sebbie" Silbermann and Lars Hornbaker
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Activity
jamiebuilds commentedon Jun 29, 2016
You mean making sure that
package-aandpackage-bboth depend on the same semver range oflodash(i.e."^1.0.0" === "^1.0.0")?christophercliff commentedon Jun 29, 2016
Yes.
jamiebuilds commentedon Jun 29, 2016
Hmm... if there is enough utility in it. I feel like
lerna exec -- npm outdatedwould be what most people actually wantedrygine commentedon Jun 29, 2016
@christophercliff PR #237 does exactly this
it scans your packages and finds common external dependencies, which it then installs at the root node_modules folder. node will walk the directory tree and find the modules it needs there for your packages. this can potentially cause other issues though.
christophercliff commentedon Jun 29, 2016
@thejameskyle thanks, that's useful.
But suppose my dependency is deliberately out of date--where I can't update it or haven't gotten around to it yet--but I want to make sure it's consistent across packages. It would be useful to have a command with output like:
gigabo commentedon Jun 29, 2016
We have a
pin-dependencycommand in our internal lerna-like tool at Redfin that's invaluable for managing external dependencies.How about something like this?
christophercliff commentedon Aug 4, 2016
For just listing versions,
lerna exec -- npm outdated lodashdoes the trick.Might be nice if
lerna execoutput each package name before running the command.[-]Syncing external dependencies across packages[/-][+][Feature] Syncing external dependencies across packages[/+]zouxuoz commentedon Dec 4, 2017
@thejameskyle what the status of this feature? Can I try to do it and send PR? 🙂
Aghassi commentedon Mar 23, 2018
@gigabo That
pincommand would be nice. Would you mind giving a rough example of what that may look like?@zouxuoz You most definitely should try and send a PR if the feature doesn't exist. Open source and all 😄
flux627 commentedon Apr 18, 2018
Just here to add a 👍 for the
pincommand.evocateur commentedon Apr 19, 2018
I have stubs for
lerna upgradeandlerna removein master right now (complementing the existinglerna add), I'm just trying to find time to implement them (as well as a gracefullerna outdated).stale commentedon Dec 27, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
lock commentedon Apr 3, 2019
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.