Go to file
2024-03-09 05:51:05 +01:00
.github/workflows Revert "always use the built-in fetch - fixes #70" 2024-03-09 05:50:57 +01:00
fixtures add test for dual 2023-09-05 01:03:57 +02:00
snapshots update deps and lint fixes 2023-10-20 14:11:25 +02:00
.editorconfig misc tweaks 2022-08-25 01:13:46 +02:00
.eslintrc.yaml rename bin dir to dist 2024-03-09 05:51:05 +01:00
.gitattributes add vendor gitattribute 2023-11-09 16:18:08 +01:00
.gitignore rename bin dir to dist 2024-03-09 05:51:05 +01:00
.ignore rename bin dir to dist 2024-03-09 05:51:05 +01:00
.npmrc switch to npm 2021-08-23 09:44:25 +02:00
Makefile rename bin dir to dist 2024-03-09 05:51:05 +01:00
package-lock.json rename bin dir to dist 2024-03-09 05:51:05 +01:00
package.json rename bin dir to dist 2024-03-09 05:51:05 +01:00
README.md fix typo 2024-03-09 03:00:00 +01: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 Revert "always use the built-in fetch - fixes #70" 2024-03-09 05:50:57 +01:00
updates.test.js update deps and lint fixes 2023-10-20 14:11:25 +02:00
vitest.config.js update test config 2023-12-14 13:29:33 +01: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.

All pkg options support glob matching via picomatch or regex (on CLI, wrap the regex in slashes, e.g. '/^foo/').

Config File

The config file is used to configure certain options of the module. CLI arguments have precedence over options in the config file, except for include and exclude options which are merged.

export default {
  exclude: [
    "semver",
    "@vitejs/*",
    /^react(-dom)?$/,
  ],
};

Config File Locations

The config file can be placed in these locations, relative to package.json:

  • updates.config.js
  • updates.config.mjs
  • .config/updates.js
  • .config/updates.mjs

Config File Options

  • include Array[String|Regexp]: Array of dependencies to include
  • exclude Array[String|Regexp]: Array of dependencies to exclude
  • types Array[String]: Array of dependency types
  • registry String: URL to npm registry

© silverwind, distributed under BSD licence