@modernpoacher/deps 2.0.29 → 2.0.30

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.
Files changed (2) hide show
  1. package/README.md +18 -17
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,35 +1,36 @@
1
1
  # @modernpoacher/deps
2
2
 
3
- *Deps* updates each of your `package.json` dependencies to their latest version.
3
+ *Deps* updates your `package.json` dependencies to their latest version.
4
4
 
5
- *Deps* updates both `dependencies` and `devDependencies` by default. You can choose to update only _production_ or _development_ dependencies. See *Using Deps*, below.
5
+ *Deps* updates both `dependencies` and `devDependencies` by default. You can [choose to update only _production_ or _development_ dependencies](#using-deps).
6
6
 
7
- Where a dependency has an _exact_ version, *Deps* will not update that dependency by default. *Deps* can be configured to update to an _exact_ version or to `latest` as an _exact_ version. See *Using `.depsrc`*, below.
7
+ Where a dependency has an _exact_ version, *Deps* does not update that dependency by default. *Deps* can be configured to [update to an _exact_ version or to `latest` as an _exact_ version](#using-depsrc).
8
8
 
9
9
  ## Installing Deps
10
10
 
11
11
  Globally:
12
12
 
13
- ```sh
13
+ ```bash
14
14
  npm i -g @modernpoacher/deps
15
15
  ```
16
16
 
17
- Locally, to your project:
17
+ To your project:
18
18
 
19
- ```sh
19
+ ```bash
20
20
  npm i -D @modernpoacher/deps
21
21
  ```
22
22
 
23
23
  ## Using Deps
24
24
 
25
25
  When installed globally, change into the root directory of the package you want to update and execute the command:
26
- ```sh
26
+
27
+ ```bash
27
28
  deps
28
29
  ```
29
30
 
30
31
  When installed locally, or not installed, use `npx`:
31
32
 
32
- ```sh
33
+ ```bash
33
34
  npx @modernpoacher/deps
34
35
  ```
35
36
 
@@ -45,7 +46,7 @@ Alternatively, use `npm` with a script target in your project's `package.json`:
45
46
 
46
47
  Then:
47
48
 
48
- ```sh
49
+ ```bash
49
50
  npm run deps
50
51
  ```
51
52
 
@@ -53,19 +54,19 @@ npm run deps
53
54
 
54
55
  To update only _production_ dependencies (on the `dependencies` field):
55
56
 
56
- ```sh
57
+ ```bash
57
58
  deps --save-prod # or -P
58
59
  ```
59
60
 
60
61
  Or:
61
62
 
62
- ```sh
63
+ ```bash
63
64
  npx @modernpoacher/deps --save-prod # or -P
64
65
  ```
65
66
 
66
67
  Or:
67
68
 
68
- ```sh
69
+ ```bash
69
70
  npm run deps -- --save-prod # or -P
70
71
  ```
71
72
 
@@ -73,19 +74,19 @@ npm run deps -- --save-prod # or -P
73
74
 
74
75
  To update only _development_ dependencies (dependencies on the `devDependencies` field):
75
76
 
76
- ```sh
77
+ ```bash
77
78
  deps --save-dev # or -D
78
79
  ```
79
80
 
80
81
  Or:
81
82
 
82
- ```sh
83
+ ```bash
83
84
  npx @modernpoacher/deps --save-dev # or -D
84
85
  ```
85
86
 
86
87
  Or:
87
88
 
88
- ```sh
89
+ ```bash
89
90
  npm run deps -- --save-dev # or -D
90
91
  ```
91
92
 
@@ -118,7 +119,7 @@ Add an `author` field to `.depsrc`:
118
119
 
119
120
  ### Ignore
120
121
 
121
- Instruct *Deps* not to execute with an `ignore` field in `.depsrc`:
122
+ Instruct *Deps* not to update your package with an `ignore` field in `.depsrc`:
122
123
 
123
124
  ```json
124
125
  {
@@ -142,7 +143,7 @@ With the `.depsrc` configuration file as the example above:
142
143
 
143
144
  *Deps* only refers to the `.depsrc` configuration file when it encounters an _exact_ version in `package.json`. If there is no entry for that dependency in the `.depsrc` configuration file then *Deps* will not upgrade, downgrade or otherwise modify it.
144
145
 
145
- You need not duplicate an _exact_ version in `.depsrc`. Let `package.json` be the source of truth.
146
+ You need not duplicate an _exact_ version in `.depsrc`. (Let `package.json` be the source of truth.)
146
147
 
147
148
  Typically, an entry in the `.depsrc` configuration file will contain `latest`.
148
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.0.29",
3
+ "version": "2.0.30",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",