Quantcast
Channel: Łukasz Gozda Gandecki
Viewing all articles
Browse latest Browse all 10

npm install from forked branch with package.json

$
0
0

A little snippet for something I’ve been fighting with for a little bit today.
I forked a mongo-watch package to include some tweaks I needed for my script, and I wanted an easy way to install that very version on all the instances where the script will be running, before the original author applies (or not) my pull request.
Turned out – it’s really easy, when you know how to do it. ;)

{
    "name": "observeMyClouds",
    "description": "",
    "version": "0.0.1",
    "private": true,
    "dependencies": {
        "async": "*",
        "spooky": "*",
        "mongo-watch": "git://github.com/lgandecki/mongo-watch.git#replicaSets",
        "mongojs": "*"
    }
}

Viewing all articles
Browse latest Browse all 10

Trending Articles