diff options
author | Nathan Fritz <fritzy@github.com> | 2022-08-03 00:44:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 00:44:59 +0300 |
commit | 703dbbf2a8149dff72c848d60600889a76779828 (patch) | |
tree | 8af1d5cda4ec0a7d6dabbef6d4084916b782931f /docs | |
parent | fd030c86b1e01b7df1b9d73fda07496742a4737f (diff) |
feat: add --replace-registry-host=<npmjs|always|never> (#4860)
feat: add --replace-registry-host=<npmjs|always|never>|<hostname>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/using-npm/config.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/content/using-npm/config.md b/docs/content/using-npm/config.md index e3e1bd6c7..4689d340b 100644 --- a/docs/content/using-npm/config.md +++ b/docs/content/using-npm/config.md @@ -1393,6 +1393,24 @@ The base URL of the npm registry. <!-- automatically generated, do not edit manually --> <!-- see lib/utils/config/definitions.js --> +#### `replace-registry-host` + +* Default: "npmjs" +* Type: "npmjs", "never", "always", or String + +Defines behavior for replacing the registry host in a lockfile with the +configured registry. + +The default behavior is to replace package dist URLs from the default +registry (https://registry.npmjs.org) to the configured registry. If set to +"never", then use the registry value. If set to "always", then replace the +registry host with the configured host every time. + +You may also specify a bare hostname (e.g., "registry.npmjs.org"). + +<!-- automatically generated, do not edit manually --> +<!-- see lib/utils/config/definitions.js --> + #### `save` * Default: `true` unless when using `npm update` where it defaults to `false` |