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

Option to run transitively #21

Open
benmccann opened this issue Jun 25, 2024 · 2 comments
Open

Option to run transitively #21

benmccann opened this issue Jun 25, 2024 · 2 comments

Comments

@benmccann
Copy link
Contributor

I'd rather avoid adding libraries to my projects that transitively pull in huge dependency chains because they rely on libraries like deep-equal or be alerted to libraries that depend on unmaintained libraries so that I can help them address it.

It would also be nice to have an option to apply this only to dependencies or to both dependencies plus devDependencies. I'd most likely to avoid these issues in dependencies so that I don't inadvertently propagate them. But if I can limit them everywhere in at least some of my smaller more important projects that would be quite nice as well.

@43081j
Copy link
Contributor

43081j commented Jun 26, 2024

i wonder if this should live in some kind of CLI that sources from the same module-replacements repo

it'd be quite far from a lint rule anymore since it is effectively linting the tree at that point rather than an individual file (which is what eslint is for)

someone mentioned in the discord a while back something similar, as not all projects have eslint setup. a tool to detect these dependencies in general could be helpful

@benmccann
Copy link
Contributor Author

A tool would make sense. I'd probably want to set it up on our CI, but we can do that whether it's a CLI or lint rule

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