npm-update-git-deps

update git deps in package json

Usage no npm install needed!

<script type="module">
  import npmUpdateGitDeps from 'https://cdn.skypack.dev/npm-update-git-deps';
</script>

README

npm-update-git-deps

Build Status | Dependencies | License

Update git deps in package json by uninstalling them and re-installing them 1 at a time.

Looks for the git+ssh and git+https pattern in the dependencies and devDependencies.

Each dep is run through lib/isGit.js


Table of Contents generated with DocToc

Install

npm i --save-dev npm-update-git-deps

Setup

Easiest way is to add as a package.json script

{
  "scripts": {
    "npm-update-git-deps": "npm-update-git-deps"
  }
}

Then

npm run npm-update-git-deps

Options

Usage: npm-update-git-deps [options]

Options:
  -d, --dependency [string]  The single dependency to target from either the dev or non-dev list (not required to be from git)
  -h, --help                 output usage information

Last publish reason

DevDependencies update & lint fixes on index.js