aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/doc/cli/npm-publish.md
diff options
context:
space:
mode:
authorKat Marchán <kzm@zkat.tech>2018-08-29 12:03:09 -0700
committerAnna Henningsen <anna@addaleax.net>2018-09-02 12:51:59 +0200
commit78f5685acc8fa574c32ed60d07de6273c60639b9 (patch)
treec3381e90e1c734763d98f079aad5d5f45438ca6d /deps/npm/doc/cli/npm-publish.md
parent1287e524eeba4632decce231da161426efb8fc34 (diff)
downloadandroid-node-v8-78f5685acc8fa574c32ed60d07de6273c60639b9.tar.gz
android-node-v8-78f5685acc8fa574c32ed60d07de6273c60639b9.tar.bz2
android-node-v8-78f5685acc8fa574c32ed60d07de6273c60639b9.zip
deps: upgrade npm to 6.4.1
PR-URL: https://github.com/nodejs/node/pull/22591 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'deps/npm/doc/cli/npm-publish.md')
-rw-r--r--deps/npm/doc/cli/npm-publish.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/deps/npm/doc/cli/npm-publish.md b/deps/npm/doc/cli/npm-publish.md
index 7e173ec00a..a317ff45e1 100644
--- a/deps/npm/doc/cli/npm-publish.md
+++ b/deps/npm/doc/cli/npm-publish.md
@@ -4,7 +4,7 @@ npm-publish(1) -- Publish a package
## SYNOPSIS
- npm publish [<tarball>|<folder>] [--tag <tag>] [--access <public|restricted>] [--otp otpcode]
+ npm publish [<tarball>|<folder>] [--tag <tag>] [--access <public|restricted>] [--otp otpcode] [--dry-run]
Publishes '.' if no argument supplied
Sets tag 'latest' if no --tag specified
@@ -46,6 +46,10 @@ specifying a different default registry or using a `npm-scope(7)` in the name
then you can provide a code from your authenticator with this. If you
don't include this and you're running from a TTY then you'll be prompted.
+* `[--dry-run]`
+ Does everything publish would do except actually publishing to the registry.
+ Reports the details of what would have been published.
+
Fails if the package name and version combination already exists in
the specified registry.
@@ -57,9 +61,8 @@ As of `npm@5`, both a sha1sum and an integrity field with a sha512sum of the
tarball will be submitted to the registry during publication. Subsequent
installs will use the strongest supported algorithm to verify downloads.
-For a "dry run" that does everything except actually publishing to the
-registry, see `npm-pack(1)`, which figures out the files to be included and
-packs them into a tarball to be uploaded to the registry.
+Similar to `--dry-run` see `npm-pack(1)`, which figures out the files to be
+included and packs them into a tarball to be uploaded to the registry.
## SEE ALSO