question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: commands to add/remove dependencies from managed packages

See original GitHub issue

Without some way of doing this built in to Lerna itself, usage of module hoisting alongside Yarn becomes impractical when adding or removing dependencies to packages.

  • Yarn wants to download all the dependencies it’s missing, and is ignorant of hoisted ones. So you suffer the wait of re-downloading your packages whenever running yarn add directly within a module. Cleaning up this duplication also eats time.
  • Adding the dependency manually is also an option, but this requires re-running lerna and that takes far longer than a normal module install.

lerna add [--dev] and lerna remove commands which accept the target package as well as dependency would provide a smooth means of dealing with these problems.

Great package and desperately needed in the node ecosystem, keep up the great work!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:37
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

31reactions
shrugscommented, May 25, 2018

Workaround for now:

lerna exec -- yarn remove my-package
19reactions
evocateurcommented, Mar 24, 2018

Still remains to be implemented.

On Mar 23, 2018, at 23:12, sachnk notifications@github.com wrote:

Hi –

Thanks for the great work. I’m currently using lerna add with no problems. Any recommended ways to achieve the corresponding lerna remove functionality?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove components from a managed package
In order to remove components from a managed-released package, there are two options: 1. Partners may request to enable the feature to Delete...
Read more >
Dependencies | Twilio
Managing Dependencies · Enter the name and version of the npm module you want to include in the first row of empty fields....
Read more >
3 Common Tasks — The Yocto Project ® 4.1.999 documentation
For example, use require recipes-core/ package / file .inc instead of require ... For help on the BitBake layer management tool, use the...
Read more >
DISM App Package (.appx or .appxbundle) Servicing ...
You can use app package servicing commands to add, remove, ... For more information, see Deployment Imaging Servicing Management (DISM) ...
Read more >
Consume NuGet packages | JetBrains Rider Documentation
JetBrains Rider: choosing a project to manage NuGet packages ... Every installed and available package has a lot of helpful commands in its ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found