Some checks failed
ci / test (18, macos-latest) (push) Has been cancelled
ci / test (18, ubuntu-latest) (push) Has been cancelled
ci / test (18, windows-latest) (push) Has been cancelled
ci / test (20, macos-latest) (push) Has been cancelled
ci / test (20, ubuntu-latest) (push) Has been cancelled
ci / test (20, windows-latest) (push) Has been cancelled
* switch to undici on node, add bun test (silverwind) * update test config (silverwind) * update devDeps (silverwind) * update devDeps (silverwind) * add vendor gitattribute (silverwind) * add fixtures gitattributes (silverwind) * use more generic gitattribute matching (silverwind) |
||
---|---|---|
.github/workflows | ||
fixtures | ||
snapshots | ||
.editorconfig | ||
.eslintrc.yaml | ||
.gitattributes | ||
.gitignore | ||
.ignore | ||
.npmrc | ||
Makefile | ||
package-lock.json | ||
package.json | ||
README.md | ||
screenshot.png | ||
updates.config.js | ||
updates.js | ||
updates.test.js | ||
vitest.config.js |
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
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, except for include
and exclude
options which are merged.
export default {
exclude: [
"semver",
"@vitejs/*",
/^react(-dom)?$/,
],
};
Config File Options
include
Array[String|Regexp]: Array of dependencies to includeexclude
Array[String|Regexp]: Array of dependencies to excludetypes
Array[String]: Array of dependency typesregistry
String: URL to npm registry
© silverwind, distributed under BSD licence