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

fix: do not move packages that are not shared to catalog #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcous
Copy link

@mcous mcous commented Nov 8, 2024

Hello, thanks for this codemod! I tried it out in a monorepo, and noticed this aspect of the docs was not true:

If there are more than 2 packages with same dependency - it will move dependency to catalog.

Instead, the codemod moved all dependencies to the catalog, which wasn't what I wanted. In case the difference was unintentional, this PR updates the codemod to behave according to the docs. In addition to tracking the version count, it also tracks the dependent count, so we only select dependencies that have a single version used across multiple dependencies

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

Successfully merging this pull request may close these issues.

1 participant