Generated package.json no longer takes the correct versions of packages #12872
Labels
blocked: retry with latest
Retry with latest release or head.
outdated
scope: core
core nx functionality
type: bug
Current Behavior
After bumping to
nx@15
we saw an important regression on our usage of thegeneratePackageJson
flag. It is no longer using versions defined in the rootpackage.json
. Instead it's like it is picking the oldest version it can find in the lockfile.For example we are using
luxon@3.0.2
in the rootpackage.json
but we end up with"luxon": "1.28.0"
in the generatedpackage.json
file. While looking in the lockfile I see thatluxon@1.28.0
is a dependency of another package, that is also present in the package.json.Expected Behavior
This is a regression. Before, nx generated
package.json
was using versions from the rootpackage.json
and not any random version that could be a dependency of a dependency.Steps to Reproduce
Providing a minimal repro will take a bit of time on my side. May do it later.
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: