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

Compare dependents of two packages #1

Open
mehulkar opened this issue May 20, 2024 · 2 comments
Open

Compare dependents of two packages #1

mehulkar opened this issue May 20, 2024 · 2 comments

Comments

@mehulkar
Copy link
Owner

This would help determine if two packages can be merged

@hussamkhatib
Copy link

This would help determine if two packages can be merged

Does this mean dependencies from the two packages will be moved into a common package where the two packages are dependencies of it ?

@mehulkar
Copy link
Owner Author

mehulkar commented Sep 15, 2024

Not quite! Here's what I mean:

Let's say you have packageA and packageB in your monorepo. If the consumers (i.e. dependents) of each package are the exact same, then it might be better to move all files from one package into the other.

git mv packageB/** packageA/

Another way to think about it is: if every time packageA is used, packageB is also used, then maybe it doesn't make sense to have them as separate packages. The tooling would at least make it easier to find the cases where it's a good idea.

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

2 participants