Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/ci.js
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-07-02 00:55:46 +0300
committerGar <gar+gh@danger.computer>2021-07-12 19:05:44 +0300
commit89483e888acc56386b9ebc4d70a4676e4a5a5cb1 (patch)
treeaa28aad88eb5b63236af8714e172b19dbb9fb985 /lib/ci.js
parentc3bd10e461976a073e6a898c46f8bde28b17668f (diff)
fix(usage): better audit/boolean flag usage output
This adds the `audit` config item to the usage output of `npm ci`, and also tweaks how usage flags are shown for boolean options that do not default to false. Their usage is shown as the `--no-x` form of the flag to better communicate that the flag is needed to turn that normally true option OFF. The description of `audit` was also updated to reflect that it runs on many different npm commands, not just install. Because this flag is included in the usage of those commands it's best to let the assocation happen there instead of trying to be comprehensive in the description itself. A small fix to make `install-ci-test` not try to redefine its own usage, but to inherit from `ci` was also included. PR-URL: https://github.com/npm/cli/pull/3497 Credit: @wraithgar Close: #3497 Reviewed-by: @nlf
Diffstat (limited to 'lib/ci.js')
-rw-r--r--lib/ci.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ci.js b/lib/ci.js
index 3ff4b65ba..6634ffcdc 100644
--- a/lib/ci.js
+++ b/lib/ci.js
@@ -33,6 +33,7 @@ class CI extends ArboristWorkspaceCmd {
/* istanbul ignore next - see test/lib/load-all-commands.js */
static get params () {
return [
+ 'audit',
'ignore-scripts',
'script-shell',
]