localdeps

Checks if everything is up to date

Localdeps

Symbolic links local dependencies to your project

To use localdeps, make sure you first install it globally:

npm install -g localdeps

To use, add 3 things to your package.json:

  1. add a localDependencies section (e.g. "localDependencies":{ "foo":"../shared/foo/" })
  2. add "scripts": { "preinstall":"localdeps" }
  3. add "localdeps":"0.1.x" to your dependencies section

Example:

{
    "name": "foo",
    "version": "0.1.0",
    ...
    "scripts":{
        "preinstall":"localdeps"
    },
    "dependencies":{
        "bar":"0.2.0"
    },
 
    "localDependencies": {
        "bar":"../bar"
    }
    ...
}

If you have any circular local dependencies, localdeps will explode (more accurately, npm install will be called recursively forever and ever and ever).

Open source software under the zlib license.