Skip to content

Commit a91a470

Browse files
kjinzkat
authored andcommittedNov 26, 2018
docs: Specify that --dry-run isn't available in older versions of npm publish (#83)
Not sure when `--dry-run` was introduced, I assume it was introduced in npm 6 (correct me if I'm wrong). Anyway, hopefully this will prevent future developers from making the mistake of using it in npm 5 (like I did). PR-URL: #83 Credit: @kjin Reviewed-By: @zkat
1 parent dcc03ec commit a91a470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎doc/cli/npm-publish.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ specifying a different default registry or using a `npm-scope(7)` in the name
4747
don't include this and you're running from a TTY then you'll be prompted.
4848

4949
* `[--dry-run]`
50-
Does everything publish would do except actually publishing to the registry.
51-
Reports the details of what would have been published.
50+
As of `npm@6`, does everything publish would do except actually publishing
51+
to the registry. Reports the details of what would have been published.
5252

5353
Fails if the package name and version combination already exists in
5454
the specified registry.

0 commit comments

Comments
 (0)
Please sign in to comment.