List peerDependencies under dependencies tab #158791
Replies: 1 comment 1 reply
-
Hi @ThisIsMissEm, Thanks for sharing this detailed suggestion! It makes a lot of sense that the peerDependencies and overrides don’t currently show up in the dependencies tab, even though they directly affect how a package works once installed. Displaying peerDependencies alongside regular dependencies would definitely help developers quickly spot what additional packages they need to install manually to ensure everything functions smoothly. The same goes for overrides, which can sometimes cause tricky installation issues if not noticed. Your example and screenshots illustrate this well—having a more comprehensive dependencies view in the UI would improve transparency and help avoid surprises during installs. This kind of feature could improve the developer experience by making it easier to understand the full dependency picture at a glance. It’s a great idea worth discussing further with the npm team or in the community. Thanks again for the thoughtful proposal! If you’d like, I can help summarize this feedback for npm’s repo or find related discussions to support the suggestion. Keep the ideas coming! 😊 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is somewhat related to #128435, however different: currently the dependencies tab shows you
dependencies
anddevDependencies
, but doesn't showpeerDependencies
noroverrides
, however these do affect package installation.Example package.json: https://github.com/fedify-dev/express/blob/main/package.json
Example rendered:
Here's how it could look instead:
(I just hacked this together using tables in the developer tools)
This would help developers spot when the package has
peerDependencies
that need to be install in order to use it.The same could also be done for
overrides
since I've seen that cause nasty install issues tooBeta Was this translation helpful? Give feedback.
All reactions