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
diff options
context:
space:
mode:
authorFrancis Gulotta <wizard@roborooter.com>2018-08-21 01:28:15 +0300
committerKat Marchán <kzm@zkat.tech>2018-08-21 02:17:49 +0300
commitde956405d8b72354f98579d00c6dd30ac3b9bddf (patch)
tree64abcc72c5ed8b545873548c8b186d9d460855f3 /lib
parent08ecde2928f8c89a2fdaa800ae845103750b9327 (diff)
docs: add --dry-run to install and pack (#41)
PR-URL: https://github.com/npm/cli/pull/41 Credit: @reconbot Reviewed-By: @zkat
Diffstat (limited to 'lib')
-rw-r--r--lib/pack.js2
-rw-r--r--lib/publish.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pack.js b/lib/pack.js
index 93c21ad55..974c3e081 100644
--- a/lib/pack.js
+++ b/lib/pack.js
@@ -32,7 +32,7 @@ const tar = require('tar')
const packlist = require('npm-packlist')
const ssri = require('ssri')
-pack.usage = 'npm pack [[<@scope>/]<pkg>...]'
+pack.usage = 'npm pack [[<@scope>/]<pkg>...] [--dry-run]'
// if it can be installed, it can be packed.
pack.completion = install.completion
diff --git a/lib/publish.js b/lib/publish.js
index bff8e161b..1ae87d790 100644
--- a/lib/publish.js
+++ b/lib/publish.js
@@ -20,7 +20,7 @@ const readUserInfo = require('./utils/read-user-info.js')
const semver = require('semver')
const statAsync = BB.promisify(require('graceful-fs').stat)
-publish.usage = 'npm publish [<tarball>|<folder>] [--tag <tag>] [--access <public|restricted>]' +
+publish.usage = 'npm publish [<tarball>|<folder>] [--tag <tag>] [--access <public|restricted>] [--dry-run]' +
"\n\nPublishes '.' if no argument supplied" +
'\n\nSets tag `latest` if no --tag specified'