This repository was archived by the owner on May 1, 2024. It is now read-only.
Improve documentation around package-lock.json conflict resolution #777
Replies: 1 comment 1 reply
|
Thanks for opening this discussion. I'm pinging the CLI team to see where they think something like this should live. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Since npm v6, there has been no information in the documentation regarding package-lock.json conflict resolution. After a bit of research, I came across this npm/cli#4844 (comment) by @wraithgar stating that the https://github.com/npm/npm-merge-driver functionality has now been integrated directly into npm via the https://github.com/npm/parse-conflict-json package.
Though I tested and merge conflicts in package-lock.json were resolved automatically when performing an
npm iin a project with package-lock conflicts, I think it's pretty unclear how the entire process works, including which conflict wins when resolved automatically.I am guessing that the parse-conflict-json package utilizes the default algorithm specified in the README, but does this replicate what the npm-merge-driver did previously?
It also appears I am not the only one with this confusion as per this discussion here: https://gist.github.com/szemate/6fb69c8e3d8cce3efa9a6c922b337d98 -- specifically the comment by DaveVodrazka:
All reactions