Skip to content

Commit

Permalink
docs: update npm-prune description (#6987)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm authored Nov 13, 2023
1 parent fff8698 commit da18e4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/lib/content/commands/npm-prune.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit da18e4f

Please sign in to comment.