{"name":"npm-merge-driver","version":"2.3.3","keywords":["npm","lockfiles","package-lock.json","npm-shrinkwrap.json","shrinkwrap","pkglock","git","merge","driver"],"author":{"name":"Kat Marchán","email":"kzm@sykosomatic.org"},"license":"ISC","_id":"npm-merge-driver@2.3.3","maintainers":[{"name":"zkat","email":"kzm@sykosomatic.org"}],"homepage":"https://github.com/npm/npm-merge-driver#readme","bugs":{"url":"https://github.com/npm/npm-merge-driver/issues"},"bin":{"npm-merge-driver":"index.js"},"man":["./npm-merge-driver.1"],"dist":{"shasum":"13883b83c3ecf0195638033a9d66ae95a5f37be7","tarball":"http://registry-npm.ywwl.com/npm-merge-driver/download/npm-merge-driver-2.3.3.tgz","integrity":"sha512-V8eC9BprV2yScE+XDA1yy4eI1ASH4J2nmJhpoKjsCGSfrJbZhkxa+R0oGufeTbzHXcI/eqA7heBIE3OrCXt4ZA==","signatures":[{"sig":"MEUCIGwPj0GY+Pg5ng3xFGQuNBKctbMMhxYkhwXdawiIx+KqAiEA7GnSPDQfDLB3IRDT709l/fVaTJyN8ClYt+q5mo0P9w4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":172245,"noattachment":false,"key":"/npm-merge-driver/-/npm-merge-driver-2.3.3.tgz"},"main":"index.js","files":["*.js","npm-merge-driver.1"],"config":{"nyc":{"exclude":["node_modules/**","test/**"]}},"engines":{"npm":">5.6.0"},"gitHead":"65e126c96aa643530d16d7046f9f3475d4ecbba2","scripts":{"docs":"tail -n +2 README.md | marked-man --manual 'User Commands' --version \"$npm_package_name@$npm_package_version\" > npm-merge-driver.1","test":"tap -J --coverage test/*.js","pretest":"standard","release":"standard-version -s","precommit":"lint-staged","prerelease":"npm t","update-coc":"weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'","postrelease":"npm publish && git push --follow-tags","update-contrib":"weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"},"_npmUser":{"name":"zkat","email":"kzm@sykosomatic.org"},"repository":{"url":"git+https://github.com/npm/npm-merge-driver.git","type":"git"},"_npmVersion":"5.6.0","description":"git merge driver for dealing with npm-related files","directories":{},"lint-staged":{"*.js":["prettier-standard","git add"]},"_nodeVersion":"8.9.1","dependencies":{"yargs":"^10.0.3","mkdirp":"^0.5.1"},"devDependencies":{"nyc":"^11.3.0","tap":"^11.0.0","husky":"^0.14.3","standard":"^10.0.3","marked-man":"^0.2.1","lint-staged":"^6.0.0","weallbehave":"^1.2.0","weallcontribute":"^1.0.8","standard-version":"^4.1.0","prettier-standard":"^7.0.3"},"bundleDependencies":["yargs","mkdirp"],"_npmOperationalInternal":{"tmp":"tmp/npm-merge-driver-2.3.3.tgz_1512513009898_0.42000398715026677","host":"s3://npm-registry-packages"},"readme":"[![npm](https://img.shields.io/npm/v/npm-merge-driver.svg)](https://npm.im/npm-merge-driver) [![license](https://img.shields.io/npm/l/npm-merge-driver.svg)](https://npm.im/npm-merge-driver) [![Travis](https://img.shields.io/travis/npm/npm-merge-driver.svg)](https://travis-ci.org/npm/npm-merge-driver) [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/npm/npm-merge-driver?svg=true)](https://ci.appveyor.com/project/npm/npm-merge-driver) [![Coverage Status](https://coveralls.io/repos/github/npm/npm-merge-driver/badge.svg?branch=latest)](https://coveralls.io/github/npm/npm-merge-driver?branch=latest)\n\n# npm-merge-driver(1) -- git merge driver for automatic merging of lockfiles\n\n### Automatic Setup (recommended):\n\nTo start using it right away:\n\n```\n$ npx npm-merge-driver install --global\n```\n\n**Or** install it locally, per-project:\n```\n$ cd /path/to/git/repository\n$ npx npm-merge-driver install\n```\n\n...And you're good to go!\n\nNext time your lockfile has a conflict, it will be automatically fixed. You\ndon't need to do anything else.\n\n### Example\n\n```\n$ npx npm-merge-driver install\n$ git merge my-conflicting-branch\nnpm WARN conflict A git conflict was detected in package-lock.json. Attempting to auto-resolve.\n\nadded 1 package in 0.077s\nAuto-merging package-lock.json\nMerge made by the 'recursive' strategy.\n package-lock.json | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)\n$ git status\n<clean>\n```\n\n### Advanced\n\nThe following section is only for advanced configuration of the driver if you\nhave specific needs.\n\n#### Setup Options\n\n`npm-merge-driver install` supports a couple of config options:\n\n`--driver` - string to install as the driver in the git configuration\n\n`--driver-name` - string to use as the merge driver name in your configuration\n\n`--files` - list of files that will trigger this driver\n\n`--no-legacy` - disables retrying legacy commands on error\n\n#### Merge Options\n\n`npm-merge-driver merge` can also be configured:\n\n`-c, --command` - command to execute when a lockfile is conflicted\n\n`--no-legacy` - disables retrying legacy commands on error\n\n#### Install as Dependency\n\nTo avoid regular `npx` installs, consider installing the driver:\n\n`$ npm install [-g|--save-dev] npm-merge-driver`\n\n#### Manual Setup (advanced):\n\n`npm-merge-driver` requires two git configurations to work: a git configuration\nto add the driver to git, which is by default your local `.git/config` file, and\na `gitattributes(5)` configuration, which is by default your local\n`.git/info/attributes`.\n\nIf you **do not** want `npm-merge-driver` to install itself for you:\n\nAdd the driver to `.git/config`:\n```\n$ git config merge.\"npm-merge-driver\".name \\\n    \"Automatically merge npm lockfiles\"\n$ git config merge.\"npm-merge-driver\".driver \\\n    \"npx npm-merge-driver merge %A %O %B %P\"\n```\n\nAdd the relevant attributes to `.gitattributes` or `.git/info/attributes`:\n```\npackage-lock.json merge=npm-merge-driver\nnpm-shrinkwrap.json merge=npm-merge-driver\n```\n\n#### Using with other package managers\n\n`npm-merge-driver` can be used with package managers other than npm! It's a bit\nmore verbose, but works just as well, assuming the package manager has a command\nthat can automatically resolve merge conflicts in its lockfile:\n\n```\n$ npx npm-merge-driver install \\\n    --driver-name yarn-merge-driver \\\n    --driver \"npx npm-merge-driver merge %A %O %B %P -c yarn\" \\\n    --files yarn.lock\n```\n\n...and now, any time `yarn.lock` has a conflict, it will be automatically\nresolved without you having to manually run `yarn`.\n\n#### Uninstalling\n\nTo remove an installed merge driver, use `npm-merge-driver uninstall`:\n\n```\n$ npx npm-merge-driver uninstall [--global] [--driver-name=npm-merge-driver]\n```\n\n## AUTHOR\n\nWritten by [Kat Marchan](https://github.com/zkat)\n\n## REPORTING BUGS\n\nPlease file any relevant issues [on Github.](https://github.com/npm/npm-merge-driver)\n\n## LICENSE\n\nThis work is released under the terms of the ISC license. See `LICENSE.md` for details.\n\n## SEE ALSO\n\n* `git-config(1)`\n* `gitattributes(5)`\n","publish_time":1512513010063,"_cnpm_publish_time":1512513010063,"dist-tags":{"latest":"2.3.6"}}