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 for including transitive dependencies #161

Open
bmish opened this issue Jan 13, 2023 · 2 comments
Open

Option for including transitive dependencies #161

bmish opened this issue Jan 13, 2023 · 2 comments

Comments

@bmish
Copy link
Contributor

bmish commented Jan 13, 2023

Right now, only dependencies mentioned in package.json are included in the output. This is similar to npm ls.

A new option -t / --transitive could be implemented for including transitive dependencies (dependencies of dependencies). This would be similar to npm ls --all.

@bmish
Copy link
Contributor Author

bmish commented Jan 13, 2023

Thanks for this great tool by the way. Interested to hear what you think about all my suggestions.

@pmmmwh
Copy link
Owner

pmmmwh commented Jan 29, 2023

Hey, thanks for all the suggestions. I don't have ample time to work on them at the moment unfortunately, but I think they are all quite reasonable.

As for transitive dependencies, I think it would be quite hard to implement because we would have to do a lot of dependency resolution to even create something remotely accurate - basically we would have to ping npm for all the deps, then all their deps, and recursively until we reach an end, and then also resolve what versions are applicable for each branch. It feels like a very heavy and complicated process, and might be best left to package managers to do.

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