Skip to content

Commit 1bb62bb

Browse files
JamieMageeowlstronaut
authored andcommitted
fix(config): clarify --all help so it's accurate for approve-scripts and deny-scripts
(cherry picked from commit 6efac6e)
1 parent d59c964 commit 1bb62bb

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

tap-snapshots/test/lib/docs.js.test.cjs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,10 @@ The value \`private\` is an alias for \`restricted\`.
216216
* Default: false
217217
* Type: Boolean
218218
219-
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show all
220-
outdated or installed packages, rather than only those directly depended
221-
upon by the current project.
219+
Show or act on all packages, not just the ones your project directly depends
220+
on. For \`npm outdated\` and \`npm ls\` this lists every outdated or installed
221+
package. For \`npm approve-scripts\` and \`npm deny-scripts\` it selects every
222+
package with pending install scripts.
222223
223224
224225
@@ -3053,7 +3054,7 @@ Options:
30533054
[-a|--all] [--allow-scripts-pending] [--no-allow-scripts-pin] [--json]
30543055
30553056
-a|--all
3056-
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show
3057+
Show or act on all packages, not just the ones your project directly
30573058
30583059
--allow-scripts-pending
30593060
List packages with install scripts that are not yet covered by the
@@ -3566,7 +3567,7 @@ Options:
35663567
[-a|--all] [--allow-scripts-pending] [--no-allow-scripts-pin] [--json]
35673568
35683569
-a|--all
3569-
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show
3570+
Show or act on all packages, not just the ones your project directly
35703571
35713572
--allow-scripts-pending
35723573
List packages with install scripts that are not yet covered by the
@@ -4841,7 +4842,7 @@ Options:
48414842
[--workspaces] [--include-workspace-root] [--install-links]
48424843
48434844
-a|--all
4844-
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show
4845+
Show or act on all packages, not just the ones your project directly
48454846
48464847
--json
48474848
Whether or not to output JSON data, rather than the normal output.
@@ -4988,7 +4989,7 @@ Options:
49884989
[--workspaces] [--include-workspace-root] [--install-links]
49894990
49904991
-a|--all
4991-
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show
4992+
Show or act on all packages, not just the ones your project directly
49924993
49934994
--json
49944995
Whether or not to output JSON data, rather than the normal output.
@@ -5137,7 +5138,7 @@ Options:
51375138
[--before <date>] [--min-release-age <days>]
51385139
51395140
-a|--all
5140-
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show
5141+
Show or act on all packages, not just the ones your project directly
51415142
51425143
--json
51435144
Whether or not to output JSON data, rather than the normal output.

workspaces/config/lib/definitions/definitions.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ const definitions = {
178178
type: Boolean,
179179
short: 'a',
180180
description: `
181-
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show
182-
all outdated or installed packages, rather than only those directly
183-
depended upon by the current project.
181+
Show or act on all packages, not just the ones your project directly
182+
depends on. For \`npm outdated\` and \`npm ls\` this lists every outdated
183+
or installed package. For \`npm approve-scripts\` and \`npm deny-scripts\`
184+
it selects every package with pending install scripts.
184185
`,
185186
flatten,
186187
}),
@@ -2338,13 +2339,13 @@ const definitions = {
23382339
If you ask npm to install a package and don't tell it a specific version,
23392340
then it will install the specified tag.
23402341
2341-
It is the tag added to the package@version specified in the
2342+
It is the tag added to the package@version specified in the
23422343
\`npm dist-tag add\` command, if no explicit tag is given.
23432344
23442345
When used by the \`npm diff\` command, this is the tag used to fetch the
23452346
tarball that will be compared with the local files by default.
2346-
2347-
If used in the \`npm publish\` command, this is the tag that will be
2347+
2348+
If used in the \`npm publish\` command, this is the tag that will be
23482349
added to the package submitted to the registry.
23492350
`,
23502351
flatten (key, obj, flatOptions) {

0 commit comments

Comments
 (0)