updates 14.1.0 → 14.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -38
- package/bin/updates.js +23 -17
- package/package.json +10 -6
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|

|
|
5
5
|
|
|
6
|
-
`updates` is a CLI tool which checks for npm dependency updates of the current project and optionally updates `package.json`. It is highly configurable and is typically able to complete in less than a second.
|
|
6
|
+
`updates` is a CLI tool which checks for npm and pypi dependency updates of the current project and optionally updates `package.json`. It is highly configurable and is typically able to complete in less than a second.
|
|
7
7
|
|
|
8
8
|
# Usage
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
# check for updates
|
|
12
12
|
npx updates
|
|
13
13
|
|
|
14
|
-
# update package.json and install
|
|
14
|
+
# update package.json and install new dependencies
|
|
15
15
|
npx updates -u && npm i
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -24,42 +24,11 @@ deno run -A npm:updates
|
|
|
24
24
|
|
|
25
25
|
## Options
|
|
26
26
|
|
|
27
|
-
See `--help
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
usage: updates [options]
|
|
31
|
-
|
|
32
|
-
Options:
|
|
33
|
-
-u, --update Update versions and write package.json
|
|
34
|
-
-p, --prerelease [<pkg,...>] Consider prerelease versions
|
|
35
|
-
-R, --release [<pkg,...>] Only use release versions, may downgrade
|
|
36
|
-
-g, --greatest [<pkg,...>] Prefer greatest over latest version
|
|
37
|
-
-i, --include <pkg,...> Include only given packages
|
|
38
|
-
-e, --exclude <pkg,...> Exclude given packages
|
|
39
|
-
-t, --types <type,...> Check only given dependency types
|
|
40
|
-
-P, --patch [<pkg,...>] Consider only up to semver-patch
|
|
41
|
-
-m, --minor [<pkg,...>] Consider only up to semver-minor
|
|
42
|
-
-d, --allow-downgrade [<pkg,...>] Allow version downgrades when using latest version
|
|
43
|
-
-E, --error-on-outdated Exit with code 2 when updates are available and 0 when not
|
|
44
|
-
-U, --error-on-unchanged Exit with code 0 when updates are available and 2 when not
|
|
45
|
-
-r, --registry <url> Override npm registry URL
|
|
46
|
-
-G, --githubapi <url> Override Github API URL
|
|
47
|
-
-f, --file <path> Use given package.json file or module directory
|
|
48
|
-
-S, --sockets <num> Maximum number of parallel HTTP sockets opened. Default: 96
|
|
49
|
-
-j, --json Output a JSON object
|
|
50
|
-
-n, --no-color Disable color output
|
|
51
|
-
-v, --version Print the version
|
|
52
|
-
-V, --verbose Print verbose output to stderr
|
|
53
|
-
-h, --help Print this help
|
|
54
|
-
|
|
55
|
-
Examples:
|
|
56
|
-
$ updates
|
|
57
|
-
$ updates -u && npm i
|
|
58
|
-
```
|
|
27
|
+
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.
|
|
59
28
|
|
|
60
29
|
## Config File
|
|
61
30
|
|
|
62
|
-
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
|
|
31
|
+
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.
|
|
63
32
|
|
|
64
33
|
```js
|
|
65
34
|
export default {
|
|
@@ -71,8 +40,9 @@ export default {
|
|
|
71
40
|
|
|
72
41
|
### Config Options
|
|
73
42
|
|
|
74
|
-
- `include` *
|
|
75
|
-
- `exclude` *
|
|
76
|
-
- `types` *
|
|
43
|
+
- `include` *Array<String>*: Array of dependencies to include
|
|
44
|
+
- `exclude` *Array<String>*: Array of dependencies to exclude
|
|
45
|
+
- `types` *Array<String>*: Array of dependency types
|
|
46
|
+
- `registry` *String*: URL to npm registry
|
|
77
47
|
|
|
78
48
|
© [silverwind](https://github.com/silverwind), distributed under BSD licence
|