# sync-local-deps

> Keep your local npm packages up-to-date with each other

Latest version **0.1.1** (published 2019-05-10) · 0 weekly downloads

## Install

```sh
npm install sync-local-deps
pnpm add sync-local-deps
yarn add sync-local-deps
bun add sync-local-deps
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-05-10 |
| First published | 2018-10-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 421.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Noah Sugarman |
| Maintainers | noahsug |
| Keywords | bump, dependencies, npm |

## Links

- npm: https://www.npmjs.com/package/sync-local-deps
- Repository: https://github.com/noahsug/sync-local-deps
- Homepage: https://github.com/noahsug/sync-local-deps#readme
- Issues: https://github.com/noahsug/sync-local-deps/issues
- npm.io page: https://npm.io/package/sync-local-deps

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [yargs](https://npm.io/package/yargs.md) ^13.2.2
- [semver](https://npm.io/package/semver.md) ^6.0.0

## Recent versions

- 0.1.1 (latest) — 2019-05-10
- 0.1.0 — 2019-05-10
- 0.0.11 — 2019-01-29
- 0.0.10 — 2019-01-29
- 0.0.9 — 2019-01-26
- 0.0.8 — 2019-01-25
- 0.0.7 — 2019-01-25
- 0.0.6 — 2019-01-25
- 0.0.5 — 2018-10-31
- 0.0.4 — 2018-10-30
- 0.0.3 — 2018-10-26
- 0.0.2 — 2018-10-26
- 0.0.1 — 2018-10-26

## README

# sync-local-deps

> Keep your local npm packages up-to-date with each other

## Install

```
npm install -g sync-local-deps
```

## Usage

```sh
sync-local-deps [root] [options]

Options:
  [root]               directory where projects are located, defaults to cwd()
  --dryrun, -D         don't make changes                       [default: false]
  --skip, -S           list of directories to skip         [array] [default: []]
  --skipPublish, -P    list of directories to not npm publish
                                                           [array] [default: []]
  --skipGitPush, -G    list of directories to not git push [array] [default: []]
  --ignoreDevDeps, -I  don't update dev deps                           [boolean]
  --updateAll, -a     include even those dependencies whose latest version
                       satisfies the declared semver dependency        [boolean]
  --npmVersion, -v     npm version to bump to, see "npm version --help"
                                                     [string] [default: "patch"]
  --only, -o           only sync the given projects, looks at cwd if empty
                                                                         [array]
  --help               Show help                                       [boolean]
  --version            Show version number                             [boolean]
```

sync-local-deps does the following:

1. scans the given `root` directory for projects that depend on other projects in `root`
1. build a dependency graph between projects so they're updated in the correct order
1. for each project with out-of-date local dependencies:
   1. `npm install --save dep1@latest dep2@latest ...`
   1. `git commit -am 'bump deps'`
   1. `npm version patch && npm publish`
   1. `git push`

This process continues until every package has up-to-date local dependencies.

The output will looks something like this:
![](https://raw.github.com/noahsug/sync-local-deps/master/example.png)

---
_Source: https://npm.io/package/sync-local-deps · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
