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.

How to `yarn upgrade-interactive` in a lerna monorepo?

See original GitHub issue

yarn upgrade-interactive and yarn upgrade-interactive --latest are a critical tool for reviewing and staying up-to-date with dependencies. Is there a way to execute these for all or even just one lerna package in a monorepo? Moving to the package folder and attempting the usual yarn upgrade-interactive fails because yarn doesn’t know how to deal with the lerna package references.

I think I’m looking for something like yarn lerna upgrade-interactive [--latest] [--scope=... --exact].

If it is not possible today: Maybe it’s not in lerna’s scope to solve this problem alone, but is there anything it needs to add to allow yarn to support this case without tightly coupling the two projects? If no lerna changes are needed, what can you recommend to yarn maintainers in supporting the feature in a lerna monorepo?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:13
  • Comments:6

github_iconTop GitHub Comments

24reactions
TimNZcommented, Jun 9, 2020

+1 This issue seems straight forward, what can we do to get it resolved?

1reaction
viboucommented, Mar 12, 2020

This commands are not working. When using lerna exec --scope my-component -- yarn upgrade-interactive without the concurrency, I still see the upgrade for every other package in my workspace. It’s really annoying.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I update all subfolder package.json in a monorepo to ...
Yarn has an upgrade interactive mode that makes this pretty easy. In your case, you want to cd into the root of your...
Read more >
yarn upgrade-interactive
The upgrade-interactive command takes the same parameters as, and functions the same as the base upgrade command. This command will display the outdated ......
Read more >
lerna-update-wizard - npm
Command line interface for simplifying the process of bulk updating dependencies across multiple Lerna or Yarn Workspace packages.
Read more >
Creating a Monorepo with Lerna & Yarn Workspaces - Medium
Using --root-mode upward is the special sauce to using Yarn workspaces. This tells Babel the node_modules are located in the root instead of ......
Read more >
Yarn is much faster Yarn workspaces allow for easy monorepo ...
Yarn has upgrade-interactive. NPM has a separate package for that. Can you link me to the benchmarks? Much of the posts that I...
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 Hashnode Post

No results found