Skip to content

Commit

Permalink
docs: Specify that --dry-run isn't available in older versions of npm…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
kjin authored and zkat committed Nov 26, 2018
1 parent dcc03ec commit a91a470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/cli/npm-publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ specifying a different default registry or using a `npm-scope(7)` in the name
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.
As of `npm@6`, 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.
Expand Down

0 comments on commit a91a470

Please sign in to comment.