updates 14.3.5 → 14.5.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 +9 -4
- package/bin/updates.js +27 -24
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -24,24 +24,29 @@ deno run -A npm:updates
|
|
|
24
24
|
|
|
25
25
|
## Options
|
|
26
26
|
|
|
27
|
-
See `--help`. Options that take multiple arguments can take them either via comma-separated value or by specifying the option multiple times.
|
|
27
|
+
See `--help`. Options that take multiple arguments can take them either via comma-separated value or by specifying the option multiple times.
|
|
28
|
+
|
|
29
|
+
If an option has a optional `pkg` argument but none is given, the option will be applied to all packages instead.
|
|
30
|
+
|
|
31
|
+
All `pkg` options support glob matching via [picomatch](https://github.com/micromatch/picomatch) or regex (on CLI, wrap the regex in slashes, e.g. `'/^foo/'`).
|
|
28
32
|
|
|
29
33
|
## Config File
|
|
30
34
|
|
|
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.
|
|
35
|
+
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.
|
|
32
36
|
|
|
33
37
|
```js
|
|
34
38
|
export default {
|
|
35
39
|
exclude: [
|
|
36
40
|
"semver",
|
|
41
|
+
/^react/,
|
|
37
42
|
],
|
|
38
43
|
};
|
|
39
44
|
```
|
|
40
45
|
|
|
41
46
|
### Config File Options
|
|
42
47
|
|
|
43
|
-
- `include` *Array[String]*: Array of dependencies to include
|
|
44
|
-
- `exclude` *Array[String]*: Array of dependencies to exclude
|
|
48
|
+
- `include` *Array[String|Regexp]*: Array of dependencies to include
|
|
49
|
+
- `exclude` *Array[String|Regexp]*: Array of dependencies to exclude
|
|
45
50
|
- `types` *Array[String]*: Array of dependency types
|
|
46
51
|
- `registry` *String*: URL to npm registry
|
|
47
52
|
|