A package to automatically merge package-lock.json conflicts. Heavily based on npm-merge-driver with automated setup at package install time and a single small dependency for ci checking.
To install run
npm i --save-dev npm-merge-driver-installthen add a prepare script in package.json like the following:
{"prepare": "npm-merge-driver-install"}create a prepare.js file and change your prepare script to the following:
// NOTE: you can use is-ci here or other custom code
import isCI from 'is-ci';
import { install } from 'npm-merge-driver-install';
if (!isCI) {
install();
}then change the prepare script in package.json to
{"prepare": "node prepare.js"}npm-merge-driver-install: install npm merge drivernpm-merge-driver-uninstall: uninstall npm merge drivernpm-merge-driver-merge: the internal merge binary used to merge package.json and package-lock.jsonnpm-merge-driver-is-installed: check if npm-merge-driver-install is installed