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:
authoraustincho <austin.cho14@gmail.com>2021-08-08 20:40:52 +0300
committerisaacs <i@izs.me>2021-08-19 18:35:47 +0300
commitff6626ab6ca9b4e189a3bc56a762104927dbeedb (patch)
tree9be63ca7149a49688bb622d58df9c1b92c9d5da5 /lib/utils
parentb6f40b5f85094387f2fa8d42b6a624644b8ddcf1 (diff)
fix(docs): update npm-publish access flag info
PR-URL: https://github.com/npm/cli/pull/3630 Credit: @austincho Close: #3630 Reviewed-by: @wraithgar EDIT(@isaacs): rebased and edited to put config documentation in the correct location.
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/config/definitions.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js
index 36b8a84a6..c71781627 100644
--- a/lib/utils/config/definitions.js
+++ b/lib/utils/config/definitions.js
@@ -160,6 +160,12 @@ define('access', {
(and installable) set \`--access=public\`. The only valid values for
\`access\` are \`public\` and \`restricted\`. Unscoped packages _always_
have an access level of \`public\`.
+
+ Note: Using the \`--access\` flag on the \`npm publish\` command will only
+ set the package access level on the initial publish of the package. Any
+ subsequent \`npm publish\` commands using the \`--access\` flag will not
+ have an effect to the access level. To make changes to the access level
+ after the initial publish use \`npm access\`.
`,
flatten,
})