From beaf9824f41c6b9ab07d97146e61b62028169058 Mon Sep 17 00:00:00 2001 From: Kelvin Jin Date: Fri, 19 Oct 2018 14:12:14 -0700 Subject: [PATCH] Specify that --dry-run isn't available in older versions of npm publish 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). --- doc/cli/npm-publish.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/cli/npm-publish.md b/doc/cli/npm-publish.md index a317ff45e1487..c582ad8470c2a 100644 --- a/doc/cli/npm-publish.md +++ b/doc/cli/npm-publish.md @@ -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.