This repository has been 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. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 i
in 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:
Beta Was this translation helpful? Give feedback.
All reactions