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 copyDependencies for deps with a / #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

s1anden
Copy link

@s1anden s1anden commented Feb 10, 2021

When a dependency has a slash, previously it would try to find
the package.json in the parent folder (e.g., @reduxjs/ for @reduxjs/toolkit)
In some cases, like (@reduxjs/toolkit), there is no such dependency,
and it would fail to copy anything at all. In other cases, such as
@emotion/core, it would copy more than it needs to because the
parent package contains many children packages.

This way it copies only the target dependency (and its dependencies)

When a dependency has a slash, previously it would try to find
the package.json in the parent folder (e.g., @reduxjs/ for @reduxjs/toolkit)
In some cases, like (@reduxjs/toolkit), there is no such dependency,
and it would fail to copy anything at all. In other cases, such as
@emotion/core, it would copy more than it needs to because the
parent package contains many children packages.

This way it copies only the target dependency (and its dependencies)
@s1anden
Copy link
Author

s1anden commented Feb 24, 2021

@vespakoen Any chance for you to take a look at this?

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.

None yet

1 participant