Skip to content

Commit da18e4f

Browse files
authoredNov 13, 2023
docs: update npm-prune description (#6987)
1 parent fff8698 commit da18e4f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎docs/lib/content/commands/npm-prune.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ then only packages matching one of the supplied names are removed.
1616
Extraneous packages are those present in the `node_modules` folder that are
1717
not listed as any package's dependency list.
1818

19-
If the `--production` flag is specified or the `NODE_ENV` environment
19+
If the `--omit=dev` flag is specified or the `NODE_ENV` environment
2020
variable is set to `production`, this command will remove the packages
21-
specified in your `devDependencies`. Setting `--no-production` will negate
22-
`NODE_ENV` being set to `production`.
21+
specified in your `devDependencies`.
2322

2423
If the `--dry-run` flag is used then no changes will actually be made.
2524

0 commit comments

Comments
 (0)
Please sign in to comment.