You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
yarn list show dependencies of all packages in the workspace #5174
When you run yarn list, yarn list --production, or NODE_ENV=production yarn list (not sure which one is recommended BTW) in a package, the output is the list of dependencies of all the packages in the workspace.
If the current behavior is a bug, please provide the steps to reproduce.
git clone https://github.com/simonrelet/yarn-workspace-issue
cd yarn-workspace-issue
yarn install
cd packages/ccc
yarn list
I would also like the ability to run yarn list on a single workspace. It appears that the workspace docs are inaccurate.
yarn list and yarn workspace package-name list produce the same output, even when truly running yarn list in package-name would produce different output.
Reacted by Alistair MacDonald, ywg-jean, yucj, Honest Charley Bodkin, Vlad Vaviloff, Nir Yosef and ngondalia
I went through the code and I feel that the ideal way to implement this would be to have separate lockfiles for each workspace package. In other words, I would say that #5428 needs to be solved before this can be tackled (without complicating it too much).
Activity
bestander commentedon Jan 8, 2018
Should be covered by yarnpkg/rfcs#83.
Your participation is welcome.
simonrelet commentedon Feb 15, 2018
Sorry for the late answer, I'll have a look at the RFC.
Thank you!
NickHeiner commentedon Mar 27, 2019
I would also like the ability to run
yarn liston a single workspace. It appears that the workspace docs are inaccurate.yarn listandyarn workspace package-name listproduce the same output, even when truly runningyarn listinpackage-namewould produce different output.chaitan94 commentedon Oct 6, 2019
I went through the code and I feel that the ideal way to implement this would be to have separate lockfiles for each workspace package. In other words, I would say that #5428 needs to be solved before this can be tackled (without complicating it too much).