yarnpkg/yarn

yarn why does not tell if the package is a peer dependency

Open

#3301 aperta il 2 mag 2017

Vedi su GitHub
 (2 commenti) (2 reazioni) (0 assegnatari)JavaScript (2731 fork)batch import
good first issuetriaged

Metriche repository

Star
 (41.514 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Do you want to request a feature or report a bug? Bug

What is the current behavior? yarn why does not tell if the reason behind dependency is actually peer-dependency

If the current behavior is a bug, please provide the steps to reproduce. have a dependency with peer-dependency (ie. sass-loader with node-sass) ask yarn why node-sass the result is following:

yarn why node-sass
yarn why v0.23.3
[1/4] 🤔  Why do we have the module "node-sass"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
[4/4] 🚡  Calculating file sizes...
info Has been hoisted to "node-sass"
info This module exists because it's specified in "dependencies".
info Disk size without dependencies: "7.71MB"
info Disk size with unique dependencies: "12.09MB"
info Disk size with transitive dependencies: "37.87MB"
info Amount of shared dependencies: 109

What is the expected behavior? I'd like to know that node-sass exists also because it's a peer dependency of sass-loader

Please mention your node.js, yarn and operating system version. yarn: v0.23.3 node.js: v6.5.0 os: Latest osx

Guida contributor