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: remove transitive dependency #42

Open
raDiesle opened this issue Aug 30, 2021 · 2 comments
Open

feature: remove transitive dependency #42

raDiesle opened this issue Aug 30, 2021 · 2 comments

Comments

@raDiesle
Copy link

Hello,

i would like to skip a dependency to be downloaded.
There are several reasons when this can make sense, such as prevent downloading of huge libraries

Therefore my suggestion would be to support something like:

resolutions : {
@icon/material: null
}

which will delete it from shrinkwrap.json file

@vs4vijay
Copy link

If you prevent downloading any package, won't that break the application / code / feature?

@raDiesle
Copy link
Author

raDiesle commented Sep 30, 2021

So this is the bad on npm:
it downloads peer dependencies, which are not required to bundle your files, but required e.g. for developing on the third party dependencies.

If I would be able to ignore it, I would be also able to explicit define my own version of the dependency taken by peer dependencies, I guess

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