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

--why should also work with node_modules that installed using yarn #2

Closed
ranyitz opened this issue Mar 21, 2018 · 0 comments · Fixed by #41
Closed

--why should also work with node_modules that installed using yarn #2

ranyitz opened this issue Mar 21, 2018 · 0 comments · Fixed by #41
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ranyitz
Copy link
Owner

ranyitz commented Mar 21, 2018

Currently when using the --why feature we rely on _requiredBy field, provided only by npm.

We should be able to detect if the node_modules were installed by yarn/npm and act accordingly to give a similar experience for both.

We could parse the yarn.lock file, the --why data is being stored there, in a reverse manner, but that should be possible to extract it with some transformations.

@ranyitz ranyitz added bug Something isn't working help wanted Extra attention is needed labels Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant