Skip to content

Commit d1812f1

Browse files
austinchowraithgar
authored andcommitted
fix(docs): update npm-publish access flag info
PR-URL: #3630 Credit: @austincho Close: #3630 Reviewed-by: @wraithgar
1 parent 001f2c1 commit d1812f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/content/commands/npm-publish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ If you want your scoped package to be publicly viewable (and installable)
132132
set `--access=public`. The only valid values for `access` are `public` and
133133
`restricted`. Unscoped packages _always_ have an access level of `public`.
134134
135+
Note: Using the `--access` flag on the `npm publish` command will only set
136+
the package access level on the initial publish of the package. Any subsequent `npm publish`
137+
commands using the `--access` flag will not have an effect to the access level.
138+
To make changes to the access level after the initial publish use `npm access`.
139+
135140
#### `dry-run`
136141
137142
* Default: false

0 commit comments

Comments
 (0)