Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: --only for isolating fix to current directory #130

Open
marcodejongh opened this issue Jan 12, 2022 · 0 comments
Open

Feature request: --only for isolating fix to current directory #130

marcodejongh opened this issue Jan 12, 2022 · 0 comments

Comments

@marcodejongh
Copy link
Contributor

marcodejongh commented Jan 12, 2022

We're building a system for incrementally upgrading our monorep (for which we'll also need #13).
After a user runs yarn add, we run manypkg fix to make sure the right version was added. But if a dependency is under incremental upgrade that can have unexpected consequences.

If a developer runs yarn add react in pkgD, manypkg fix will updated all the other React dependencies down to 1.0.0, undoing the incremental upgrade. By adding a --only (open to better names), we want to have manypkg fix only update the current directory, in this case pkgD, so that only pkgD's package.json is fixed.

We're more than happy to contribute this back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant