diff options
author | austincho <austin.cho14@gmail.com> | 2021-08-08 20:40:52 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2021-08-19 18:35:47 +0300 |
commit | ff6626ab6ca9b4e189a3bc56a762104927dbeedb (patch) | |
tree | 9be63ca7149a49688bb622d58df9c1b92c9d5da5 /lib | |
parent | b6f40b5f85094387f2fa8d42b6a624644b8ddcf1 (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')
-rw-r--r-- | lib/utils/config/definitions.js | 6 |
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, }) |