[BUG] dev true is flaky #6521
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 there is same dependency marked as both
devDependency
and adependency
at the same time, thepackage-lock.json
start become flaky, sometimes it list it withdev: true
and some other times it doesn'twhich causes conflicts in our repo, because of incorrect changes were made
Expected Behavior
if a package is both
dependency
anddevDependency
, not to be marked as"dev": true
in thepackage-lock.json
Steps To Reproduce
npx create-nx-workspace
standalone
,css
,yes,
no,
no`npm i
multiple times and check after each time ifpackage-lock.json
file changedthe cause of the error is
@nx/angular
see nrwl/nx#6885it's installed as production dependency instead of dev dependency
you can see here https://github.com/nrwl/nx/blob/master/packages/angular/package.json it has a lot of what normally are dev dependencies as direct dependencies or peer dependencies, very obvious examples are
@nx/linter
and@nx/jest
which are installed as a dev dependencies in the project rootpackage.json
Environment
The text was updated successfully, but these errors were encountered: