From da18e4f9baa180beeb325a384759a26a19ac2919 Mon Sep 17 00:00:00 2001 From: Manuel Spigolon Date: Mon, 13 Nov 2023 17:27:47 +0100 Subject: [PATCH] docs: update npm-prune description (#6987) --- docs/lib/content/commands/npm-prune.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/lib/content/commands/npm-prune.md b/docs/lib/content/commands/npm-prune.md index d0871c55e8054..d1f48a67be1bc 100644 --- a/docs/lib/content/commands/npm-prune.md +++ b/docs/lib/content/commands/npm-prune.md @@ -16,10 +16,9 @@ then only packages matching one of the supplied names are removed. Extraneous packages are those present in the `node_modules` folder that are not listed as any package's dependency list. -If the `--production` flag is specified or the `NODE_ENV` environment +If the `--omit=dev` flag is specified or the `NODE_ENV` environment variable is set to `production`, this command will remove the packages -specified in your `devDependencies`. Setting `--no-production` will negate -`NODE_ENV` being set to `production`. +specified in your `devDependencies`. If the `--dry-run` flag is used then no changes will actually be made.