In yarn v3, how can we get list of only prod dependencies
Asked Answered
H

0

6

I need to get a list of only prod dependencies with yarn 3. Could not find any option in official documentation for listing only prod or devDependencies.

Corresponding npm command is npm list --omit=dev

The available command to get list of all the dependencies is: yarn info --recursive

Is there a workaround to get only prod dependencies list with yarn v3?

Haycock answered 2/8, 2022 at 21:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.