Yarn: `yarn ls <package>` is missing.

Created on 6 Oct 2016  ยท  4Comments  ยท  Source: yarnpkg/yarn

Missing feature, compare with npm ls once. Should yarn why once be the replacement for it? If so, the dependency graph that it shows seems wrong.

[cpojer: ~/Projects/yarn (master)]$ yarn why once
yarn why v0.14.0
[1/3] ๐Ÿค”  Why do we have the module "once"...?
[2/3] ๐Ÿšš  Initialising dependency graph...
[3/3] ๐Ÿ”  Finding dependency...
info Reasons this module exists
   - "node-gyp#glob" depends on it
   - "jest#jest-cli#istanbul-api" depends on it

[cpojer: ~/Projects/yarn (master)]$ npm ls once
[email protected] /Users/cpojer/Projects/yarn
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚   โ””โ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚   โ””โ”€โ”ฌ [email protected]
โ”‚     โ””โ”€โ”€ [email protected]
โ””โ”€โ”ฌ [email protected]
  โ””โ”€โ”ฌ [email protected]
    โ””โ”€โ”€ [email protected]
cat-bug

Most helpful comment

For anyone who comes here in search of the ls command, yarn list <package> works on v1.9.4(ls doesn't work).

All 4 comments

We have yarn ls <package> now ๐Ÿ˜ƒ

@torifat awesome!!

For anyone who comes here in search of the ls command, yarn list <package> works on v1.9.4(ls doesn't work).

yarn ls <package> not found

โฏ yarn ls react     
yarn run v1.19.1
error Command "ls" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Was this page helpful?
0 / 5 - 0 ratings