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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/config/definitions.js')
-rw-r--r--lib/utils/config/definitions.js26
1 files changed, 3 insertions, 23 deletions
diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js
index 6d92651eb..c9d76249c 100644
--- a/lib/utils/config/definitions.js
+++ b/lib/utils/config/definitions.js
@@ -1314,16 +1314,6 @@ define('node-options', {
`,
})
-define('node-version', {
- default: process.version,
- defaultDescription: 'Node.js `process.version` value',
- type: semver,
- description: `
- The node version to use when checking a package's \`engines\` setting.
- `,
- flatten,
-})
-
define('noproxy', {
default: '',
defaultDescription: `
@@ -1344,16 +1334,6 @@ define('noproxy', {
},
})
-define('npm-version', {
- default: npmVersion,
- defaultDescription: 'Output of `npm --version`',
- type: semver,
- description: `
- The npm version to use when checking a package's \`engines\` setting.
- `,
- flatten,
-})
-
define('offline', {
default: false,
type: Boolean,
@@ -2044,7 +2024,7 @@ define('tag-version-prefix', {
type: String,
description: `
If set, alters the prefix used when tagging a new version when performing
- a version increment using \`npm-version\`. To remove the prefix
+ a version increment using \`npm version\`. To remove the prefix
altogether, set it to the empty string: \`""\`.
Because other tools may rely on the convention that npm version tags look
@@ -2166,8 +2146,8 @@ define('user-agent', {
inWorkspaces = true
}
flatOptions.userAgent =
- value.replace(/\{node-version\}/gi, obj['node-version'])
- .replace(/\{npm-version\}/gi, obj['npm-version'])
+ value.replace(/\{node-version\}/gi, process.version)
+ .replace(/\{npm-version\}/gi, npmVersion)
.replace(/\{platform\}/gi, process.platform)
.replace(/\{arch\}/gi, process.arch)
.replace(/\{workspaces\}/gi, inWorkspaces)