Do you want to request a feature or report a bug?
Bug, I think.
What is the current behavior?
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.
Github sample: https://github.com/simonrelet/yarn-workspace-issue
In a terminal run:
git clone https://github.com/simonrelet/yarn-workspace-issue
cd yarn-workspace-issue
yarn install
cd packages/ccc
yarn list
Output:
yarn list v1.3.2
warning package.json: No license field
โโ [email protected]
โ โโ chalk@^2.3.0
โโ [email protected]
โ โโ color-convert@^1.9.0
โโ [email protected]
โ โโ fs-extra@^5.0.0
โโ [email protected]
โโ [email protected]
โ โโ ansi-styles@^3.1.0
โ โโ escape-string-regexp@^1.0.5
โ โโ supports-color@^4.0.0
โโ [email protected]
โ โโ color-name@^1.1.1
โโ [email protected]
โโ [email protected]
โโ [email protected]
โ โโ graceful-fs@^4.1.2
โ โโ jsonfile@^4.0.0
โ โโ universalify@^0.1.0
โโ [email protected]
โโ [email protected]
โโ [email protected]
โ โโ graceful-fs@^4.1.6
โโ [email protected]
โ โโ has-flag@^2.0.0
โโ [email protected]
What is the expected behavior?
I would expect yarn to list the dependencies of the _current_ package.
Output:
yarn list v1.3.2
Please mention your node.js, yarn and operating system version.
Node: 9.3.0
Yarn: 1.3.2
OS: OS X 10.12.6
Should be covered by https://github.com/yarnpkg/rfcs/pull/83.
Your participation is welcome.
Sorry for the late answer, I'll have a look at the RFC.
Thank you!
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.
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 https://github.com/yarnpkg/yarn/issues/5428 needs to be solved before this can be tackled (without complicating it too much).
Most helpful comment
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.