[BUG] npm ls --all --omit=dev
includes dev dependencies of dependencies
#7895
Labels
npm ls --all --omit=dev
includes dev dependencies of dependencies
#7895
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Potentially related:
When using the --omit=dev flag, my expectation is that all dev dependencies are excluded. However, what seems to happen is that only the dev dependencies of the root package are excluded – dev dependencies of local dependency packages are still included. This is unexpected.
Expected Behavior
All devDependencies should be omitted when --omit=dev is used. Not just the devDependencies from the root package.
Steps To Reproduce
npm ls --all --omit=dev
typescript
, a devDependency of a child package, is included in the list but shouldn'tOutput:
package.json of my-package:
Environment
The text was updated successfully, but these errors were encountered: