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/doc
diff options
context:
space:
mode:
authorAndrew <talktome@aboutandrew.co.uk>2015-06-01 14:13:51 +0300
committerKat Marchán <kzm@sykosomatic.org>2015-06-04 03:41:33 +0300
commit5a744e4b143ef7b2f50c80a1d96fdae4204d452b (patch)
treecccad5e7d3bb18695fa97cbc34650804346f9de5 /doc
parentf8bd453b1a1c46ba7666cb166595e8a011eae443 (diff)
Improve npm prune documentation
Detail effect of setting NODE_ENV=production to command and how to negate PR-URL: https://github.com/npm/npm/pull/8421
Diffstat (limited to 'doc')
-rw-r--r--doc/cli/npm-prune.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/cli/npm-prune.md b/doc/cli/npm-prune.md
index 88c54754b..846a04240 100644
--- a/doc/cli/npm-prune.md
+++ b/doc/cli/npm-prune.md
@@ -15,8 +15,10 @@ removed.
Extraneous packages are packages that are not listed on the parent
package's dependencies list.
-If the `--production` flag is specified, this command will remove the
-packages specified in your `devDependencies`.
+If the `--production` flag is specified or the `NODE_ENV` environment
+variable is set to `production`, this command will remove the packages
+specified in your `devDependencies`. Setting `--production=false` will
+negate `NODE_ENV` being set to `production`.
## SEE ALSO