diff options
author | Rebecca Turner <me@re-becca.org> | 2016-09-24 01:35:14 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2016-10-20 13:42:47 +0300 |
commit | 6b6bb08af661221224a81df8adb0b72019ca3e11 (patch) | |
tree | 8120ecf7644bd80a460c8fcfacab64d8821ec7a6 /doc | |
parent | 846f61c1dd4a033f77aa736ab01c27ae6724fe1c (diff) |
npm: Send Npm-Scope header along with requests to registry
Npm-Scope is set to the scope of the current top level project.
Credit: @iarna
PR-URL: https://github.com/npm/npm/pull/14129
Reviewed-By: @othiym23
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cli/npm-adduser.md | 3 | ||||
-rw-r--r-- | doc/cli/npm-logout.md | 2 | ||||
-rw-r--r-- | doc/misc/npm-config.md | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/doc/cli/npm-adduser.md b/doc/cli/npm-adduser.md index 9afece598..5a53bdd8e 100644 --- a/doc/cli/npm-adduser.md +++ b/doc/cli/npm-adduser.md @@ -33,7 +33,8 @@ your existing record. Default: https://registry.npmjs.org/ The base URL of the npm package registry. If `scope` is also specified, -this registry will only be used for packages with that scope. See `npm-scope(7)`. +this registry will only be used for packages with that scope. `scope` defaults +to the scope of the project directory you're currently in, if any. See `npm-scope(7)`. ### scope diff --git a/doc/cli/npm-logout.md b/doc/cli/npm-logout.md index 0841adfbf..fe6e7b990 100644 --- a/doc/cli/npm-logout.md +++ b/doc/cli/npm-logout.md @@ -29,7 +29,7 @@ it takes precedence. ### scope -Default: none +Default: The scope of your current project, if any, otherwise none. If specified, you will be logged out of the specified scope. See `npm-scope(7)`. diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md index 9d29da0e2..035ee4eb4 100644 --- a/doc/misc/npm-config.md +++ b/doc/misc/npm-config.md @@ -791,7 +791,7 @@ patch upgrades. ### scope -* Default: "" +* Default: the scope of the current project, if any, or "" * Type: String Associate an operation with a scope for a scoped registry. Useful when logging |