[BUG] npm ci --omit-dev is not omitting dev dependencies of child workspaces when conflicting with root #6441
Closed
2 tasks done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When using workspaces, having a dev dependency which has one version in root and a different conflicting version inside a workspace folder and running
npm ci --omit=dev
it will ignore dev deps present in the root package.json but install dev dependencies for the child workspaces.I found an issue relating to it here but it was back in version 7 and has been fixed as well apparently.
Expected Behavior
Using omit=dev should not install dev deps for root or any child workspace
Steps To Reproduce
npm ci --omit=dev
from root ornpm ci --omit=dev
from inside the sub folder ornpm ci --omit=dev --workspace <package-name-in-package-json-in-subfolder>
from either folderRepo with minimum reproducible example: https://github.com/Rayyan98/npm-issue
Environment
The text was updated successfully, but these errors were encountered: