[BUG] npm pkg fix repository.url updates don't match documentation #6891
Labels
Bug
thing that needs fixing
Documentation
documentation related issue
Priority 2
secondary priority issue
Release 10.x
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
If you have a package.json with this:
See https://github.com/broksonic21/npm-pkg-fix/blob/main/package.json
then
npm pkg fix
converts it to:(see https://github.com/broksonic21/npm-pkg-fix/pull/2/files )
Expected Behavior
That doesn't match the v10 docs at https://docs.npmjs.com/cli/v10/configuring-npm/package-json#repository which has the example canonical format to not include git+
I'd expect docs and
npm pkg fix
to matchSteps To Reproduce
https://github.com/broksonic21/npm-pkg-fix
npm pkg fix
Environment
The text was updated successfully, but these errors were encountered: