You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using anything that isn't a version number in the version field in the root package.json results in the generated package.json containing the wrong version number.
e.g. "postgres": "charsleysa/postgres#fix-errors-compiled", results in "postgres": "3.2.4", being generated
Expected Behavior
Generated package.json should keep the version identifier specified in package-lock.json dependencies.
e.g. "postgres": "git+ssh://git@github.com/charsleysa/postgres.git#3b1a01b2da3e2fafb1a79006f838eff11a8de3cb",
Github Repo
No response
Steps to Reproduce
Can be done with any package that doesn't use a version number
Add "postgres": "charsleysa/postgres#fix-errors-compiled", to root package.json
Run npm install
Import postgres package into app configured to generate package.json
Run build
Generated package.json will now contain wrong version identifier
Nx Report
> NX Report complete - copy this into the issue template
Node : 18.11.0
OS : linux x64
npm : 8.19.2
nx : 15.2.1
@nrwl/angular : Not Found
@nrwl/cypress : Not Found
@nrwl/detox : Not Found
@nrwl/devkit : 15.2.1
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.2.1
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.2.1
@nrwl/js : 15.2.1
@nrwl/linter : 15.2.1
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : 15.2.1
@nrwl/nx-cloud : 15.0.2
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/rollup : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : Not Found
@nrwl/web : Not Found
@nrwl/webpack : 15.2.1
@nrwl/workspace : 15.2.1
typescript : 4.8.4
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins:
Failure Logs
No response
Additional Information
This was working fine in nx@15.0.0 so the bug appears to have been introduced when fixing another generated package.json issue, possibly by PR #12996
The text was updated successfully, but these errors were encountered:
Current Behavior
Using anything that isn't a version number in the version field in the root
package.json
results in the generatedpackage.json
containing the wrong version number.e.g.
"postgres": "charsleysa/postgres#fix-errors-compiled",
results in"postgres": "3.2.4",
being generatedExpected Behavior
Generated
package.json
should keep the version identifier specified inpackage-lock.json
dependencies.e.g.
"postgres": "git+ssh://git@github.com/charsleysa/postgres.git#3b1a01b2da3e2fafb1a79006f838eff11a8de3cb",
Github Repo
No response
Steps to Reproduce
Can be done with any package that doesn't use a version number
"postgres": "charsleysa/postgres#fix-errors-compiled",
to rootpackage.json
postgres
package into app configured to generatepackage.json
package.json
will now contain wrong version identifierNx Report
Failure Logs
No response
Additional Information
This was working fine in
nx@15.0.0
so the bug appears to have been introduced when fixing another generatedpackage.json
issue, possibly by PR #12996The text was updated successfully, but these errors were encountered: