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/lib/utils
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@github.com>2022-05-10 22:21:03 +0300
committerGitHub <noreply@github.com>2022-05-10 22:21:03 +0300
commitbfb8bccbe83753e527b43c8a3889696087dbe8f1 (patch)
treef1871422a6eed1fdba619298be2588dffa2929fa /lib/utils
parentc024e90a12b4ef17394ba79cfc2ea94f3f933b26 (diff)
feat: add flag --omit-lockfile-registry-resolved (#4874)
* feat(arborist): added flag to omit lockfile resolved * feat: add flag --omit-lockfile-registry-resolved Co-authored-by: Caleb ツ Everett <calebev@amazon.com>
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/config/definitions.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js
index a5eac8c82..c4be3a658 100644
--- a/lib/utils/config/definitions.js
+++ b/lib/utils/config/definitions.js
@@ -1385,6 +1385,18 @@ define('omit', {
},
})
+define('omit-lockfile-registry-resolved', {
+ default: false,
+ type: Boolean,
+ description: `
+ This option causes npm to create lock files without a \`resolved\` key for
+ registry dependencies. Subsequent installs will need to resolve tarball
+ endpoints with the configured registry, likely resulting in a longer install
+ time.
+ `,
+ flatten,
+})
+
define('only', {
default: null,
type: [null, 'prod', 'production'],