Go to file
2023-08-07 18:45:54 +02:00
.github/workflows require node 16 2023-04-18 20:19:24 +02:00
fixtures fix file case 2023-06-23 01:47:31 +02:00
snapshots update devDeps 2023-08-07 18:45:54 +02:00
.editorconfig misc tweaks 2022-08-25 01:13:46 +02:00
.eslintrc.yaml fix vitest import, update deps 2023-07-08 11:28:28 +02:00
.gitattributes enable multi-os travis 2019-08-20 21:49:57 +02:00
.gitignore ignore .DS_Store 2023-03-19 22:01:33 +01:00
.ignore bundle version into script 2022-09-26 00:17:29 +02:00
.npmrc switch to npm 2021-08-23 09:44:25 +02:00
Makefile fix print issue with 2-part pypi versions 2023-06-23 01:45:10 +02:00
package-lock.json update devDeps 2023-08-07 18:45:54 +02:00
package.json update devDeps 2023-08-07 18:45:54 +02:00
README.md tweak readme 2023-07-14 13:04:30 +02:00
screenshot.png tweak screenshot 2020-07-14 23:05:32 +02:00
updates.config.js exclude registry-auth-token 2023-04-23 23:35:27 +02:00
updates.js refactor highlightDiff 2023-07-24 11:43:39 +02:00
updates.test.js remove unneeded test 2023-06-29 06:42:09 +02:00
vitest.config.js fix vitest import, update deps 2023-07-08 11:28:28 +02:00

updates

updates is a CLI tool which checks for npm and poetry dependency updates of the current project and optionally updates package.json/pyproject.toml. It is highly configurable and is typically able to complete in less than a second.

Usage

# check for updates
npx updates

# update package.json and install new dependencies
npx updates -u && npm i

Bun and Deno

bunx updates
deno run -A npm:updates

Options

See --help. Options that take multiple arguments can take them either via comma-separated value or by specifying the option multiple times. If an option has a optional pkg argument but none is given, the option will be applied to all packages instead.

Config File

Put a updates.config.js or updates.config.mjs in the root of your project, usually besides package.json to configure certain options of the module. CLI arguments have precedence over options in the config file.

export default {
  exclude: [
    "semver",
  ],
};

Config File Options

  • include Array: Array of dependencies to include
  • exclude Array: Array of dependencies to exclude
  • types Array: Array of dependency types
  • registry String: URL to npm registry

© silverwind, distributed under BSD licence