[BUG] npm audit fix
adds redundant dependencies in workspaces
#7950
Labels
npm audit fix
adds redundant dependencies in workspaces
#7950
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
An additional package is added as a dependency to existing workspaces, even though it is not listed as a dependency of the existing workspace in the package.json originally.
Expected Behavior
npm audit fix --force
should only upgrade existing vulnerable dependencies. It should NOT add new dependencies to workspaces unless explicitly defined in the package.json originally.Steps To Reproduce
npm ci
.npm audit fix --force
to address all vulnerabilities.@swc/cli
is added to the workspacepackage-a
, however, the workspacepackage-a
doesn't need it.Environment
The text was updated successfully, but these errors were encountered: