dependency-sync

4.1.3 • Public • Published

dependency-sync

sync your dependencies

js-standard-style Greenkeeper badge

usage for entry point in module

npx dependency-sync

multiple entry points

npx dependency-sync ./file-1.js ./file-2.js

esm modules & jsx

npx dependency-sync -t babelify

babel and babelify will need to be installed and configured

example package.json

  "devDependencies": {
    "@babel/core": "7.8.4",
    "@babel/preset-env": "7.8.4",
    "@babel/preset-react": "7.8.3",
    "babelify": "10.0.0"
  },
  "dependency-sync": {
    "args": [
      "-t",
      "babelify"
    ]
  }

example babel.config.js

  module.exports = {
    presets: ['@babel/preset-env', '@babel/preset-react']
  }

watch dependency changes

npx dependency-sync --watch

check-only

will exit with error if modules are not in sync

npx dependency-sync --check-only

keep

dependency-sync ignores devDependencies, However dependencies that aren't explicitly required will be removed.

To prevent this add the following directive to your package.json.

"dependency-sync": {
  "keep": [
    "babelify"
  ]
}

yarn

To use dependency-sync with yarn use add the following directive to your package.json.

args is passed to yarn add

"dependency-sync": {
  "yarn": true
}

or with extra arguments

```json
"dependency-sync": {
  "yarn": 
    "args": [ ]
  }
}

dry-run

npx dependency-sync --dry-run

verbose

npx dependency-sync --verbose

license

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.1.31latest

Version History

VersionDownloads (Last 7 Days)Published
4.1.31
4.1.21
4.1.11
4.1.01
4.0.21
4.0.11
4.0.01
3.0.01
2.2.11
2.2.01
2.1.01
2.0.251
2.0.241
2.0.231
2.0.221
2.0.211
2.0.201
2.0.191
2.0.181
2.0.171
2.0.161
2.0.151
2.0.142
2.0.131
2.0.121
2.0.111
2.0.101
2.0.91
2.0.61
2.0.51
2.0.41
2.0.31
2.0.21
2.0.11
2.0.01
1.1.101
1.1.91
1.1.81
1.1.71
1.1.61
1.1.51
1.1.41
1.1.31
1.1.21
1.0.01

Package Sidebar

Install

npm i dependency-sync

Weekly Downloads

46

Version

4.1.3

License

MIT

Unpacked Size

14.4 kB

Total Files

14

Last publish

Collaborators

  • jameskyburz