How to `yarn upgrade-interactive` in a lerna monorepo?
See original GitHub issueyarn 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:
- Created 4 years ago
- Reactions:13
- Comments:6
Top GitHub Comments
+1 This issue seems straight forward, what can we do to get it resolved?
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.