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] Adding cross-dependencies

See original GitHub issue

It’s kinda awkward right now to cd into a package directory and install a dependency, cd back up and run lerna bootstrap again.

Is there a way we can abstract this?

Something along the lines of:

$ lerna add [package] dependency
$ lerna add [package] dependency --dev
$ lerna add [package] dependency --peer

Update: We should match Yarn’s API for adding.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:13
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
spudlycommented, Feb 17, 2017

I was getting by with just running npm install--save <package> before, but now that I’ve enabled automatic hoisting I want it to install the package at the root so normal install won’t work.

Current workflow:

  1. Run npm show <pkg> version to determine what version to use
  2. Manually add the dependency to package.json
  3. Run lerna bootstrap --scope="<my pkg>"

Adding this feature would save me a lot of time!

2reactions
kirbysayshicommented, Feb 1, 2017

One way I worked around this for now:

$ lerna exec -- npm install --save debug@latest
Read more comments on GitHub >

github_iconTop Results From Across the Web

scrum - Feature Team Cross Dependencies
The problem is twofold. We have certain services that are consumed by both of the teams. So, we also formed a component group...
Read more >
4 Steps To Solve Cross-Team Dependencies | Agile Insider
Step 1. Analyze the situation · what is the feature that the A-Team wants to build? How should it work? How/why is the...
Read more >
Jira cross-project dependencies: best practices and ...
We will show you how you can use their features to create Jira cross-project dependencies and make their management easy and efficient.
Read more >
How to deal with cross dependencies and references - Drupal
I'm trying to find out how one would work with entity references and other cross dependencies. Case #1. Say, I'm creating a `news`...
Read more >
Track feature dependencies to mitigate risks
Identifying dependencies early helps you identify the true cost of building a feature, which may include laying the groundwork in addition ...
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