From b3ff1048dc969ba855ab753a48ca331552c3970a Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 3 May 2022 13:04:48 -0700 Subject: [PATCH] docs: remove incorrect v6 auto prune info As of npm@7, extraneous modules are always auto pruned --- docs/content/using-npm/config.md | 4 ---- lib/utils/config/definitions.js | 4 ---- tap-snapshots/test/lib/utils/config/definitions.js.test.cjs | 4 ---- tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs | 4 ---- 4 files changed, 16 deletions(-) diff --git a/docs/content/using-npm/config.md b/docs/content/using-npm/config.md index ba79dd505a88e..4dc2829825d60 100644 --- a/docs/content/using-npm/config.md +++ b/docs/content/using-npm/config.md @@ -1219,10 +1219,6 @@ The package to install for [`npm exec`](/commands/npm-exec) If set to false, then ignore `package-lock.json` files when installing. This will also prevent _writing_ `package-lock.json` if `save` is true. -When package package-locks are disabled, automatic pruning of extraneous -modules will also be disabled. To remove extraneous modules with -package-locks disabled use `npm prune`. - This configuration does not affect `npm ci`. diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js index 4a1f971d85436..6f1b1a7244a50 100644 --- a/lib/utils/config/definitions.js +++ b/lib/utils/config/definitions.js @@ -1448,10 +1448,6 @@ define('package-lock', { This will also prevent _writing_ \`package-lock.json\` if \`save\` is true. - When package package-locks are disabled, automatic pruning of extraneous - modules will also be disabled. To remove extraneous modules with - package-locks disabled use \`npm prune\`. - This configuration does not affect \`npm ci\`. `, flatten: (key, obj, flatOptions) => { diff --git a/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs b/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs index ff00f9a0f9b3d..42db6ce030b53 100644 --- a/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs +++ b/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs @@ -1302,10 +1302,6 @@ exports[`test/lib/utils/config/definitions.js TAP > config description for packa If set to false, then ignore \`package-lock.json\` files when installing. This will also prevent _writing_ \`package-lock.json\` if \`save\` is true. -When package package-locks are disabled, automatic pruning of extraneous -modules will also be disabled. To remove extraneous modules with -package-locks disabled use \`npm prune\`. - This configuration does not affect \`npm ci\`. ` diff --git a/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs b/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs index 6740b94c772c8..d0ce3a26f764f 100644 --- a/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs +++ b/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs @@ -1093,10 +1093,6 @@ The package to install for [\`npm exec\`](/commands/npm-exec) If set to false, then ignore \`package-lock.json\` files when installing. This will also prevent _writing_ \`package-lock.json\` if \`save\` is true. -When package package-locks are disabled, automatic pruning of extraneous -modules will also be disabled. To remove extraneous modules with -package-locks disabled use \`npm prune\`. - This configuration does not affect \`npm ci\`.