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/docs
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-03-31 01:37:01 +0300
committerGar <wraithgar@github.com>2022-04-04 21:35:15 +0300
commit2a26e5e21af788f025a5731d88f15f6dc88b4c0c (patch)
tree5a1cc727eba6e9ceee9d50dc9ed9dc2c67ceb81f /docs
parent31a02187a1e0231395ca833f161d6b97ec13f781 (diff)
fix: remove dedupe --save
* Removed dedupe --save documentation and attempted implementation. * Remove some unneeded otplease mocks from test `npm dedupe --save` didn't work in a easy to understand way. It would only update a top level dependency that was duplicated in the tree. Found this out rewriting the dedupe tests to be real. This is not very intuitive and it's best if folks use update or install for saving to package.json.
Diffstat (limited to 'docs')
-rw-r--r--docs/content/commands/npm-dedupe.md24
1 files changed, 3 insertions, 21 deletions
diff --git a/docs/content/commands/npm-dedupe.md b/docs/content/commands/npm-dedupe.md
index b5a64831c..91f0105e3 100644
--- a/docs/content/commands/npm-dedupe.md
+++ b/docs/content/commands/npm-dedupe.md
@@ -80,11 +80,9 @@ result in new modules being installed.
Using `npm find-dupes` will run the command in `--dry-run` mode.
-Note that by default `npm dedupe` will not update the semver values of direct
-dependencies in your project `package.json`, if you want to also update
-values in `package.json` you can run: `npm dedupe --save` (or add the
-`save=true` option to a [configuration file](/configuring-npm/npmrc)
-to make that the default behavior).
+Note: `npm dedupe` will never update the semver values of direct
+dependencies in your project `package.json`, if you want to update
+values in `package.json` you can run: `npm update --save` instead.
### Configuration
@@ -158,22 +156,6 @@ This configuration does not affect `npm ci`.
<!-- automatically generated, do not edit manually -->
<!-- see lib/utils/config/definitions.js -->
-#### `save`
-
-* Default: `true` unless when using `npm update` or `npm dedupe` where it
- defaults to `false`
-* Type: Boolean
-
-Save installed packages to a `package.json` file as dependencies.
-
-When used with the `npm rm` command, removes the dependency from
-`package.json`.
-
-Will also prevent writing to `package-lock.json` if set to `false`.
-
-<!-- automatically generated, do not edit manually -->
-<!-- see lib/utils/config/definitions.js -->
-
#### `omit`
* Default: 'dev' if the `NODE_ENV` environment variable is set to