nx release version
duplicates local packages across "dev" and "prod" dependencies
#19990
Closed
1 of 4 tasks
Labels
Current Behavior
I'm experiencing an issue where running
nx release version
will mess up thepackage.json
files when local dependencies are shared across dev and prod dependencies and duplicate the local dependencies.Given this NPM workspace-based monorepo
Running
npx nx release version minor -d
yieldsNote
Notice that
local-package-c
is being added independencies
oflocal-package-a
although it's adevDependency
.Expected Behavior
From the example above, I'd expect the
packages/a/package.json
dependencies
anddevDependencies
to contain the same keys before and after runningnx release version
.GitHub Repo
https://github.com/kraenhansen/nx-issue-19990
Steps to Reproduce
nx release version
dependencies
anddevDependencies
of A'spackage.json
.Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
I believe this is the code that needs an update
nx/packages/js/src/generators/release-version/release-version.ts
Lines 272 to 279 in 79c9233
The text was updated successfully, but these errors were encountered: