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/docs
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-05-11 22:48:28 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-05-13 22:28:11 +0300
commit076420c149d097056f687e44e21744b743b86e4e (patch)
treec5107ef250f6c9c888774949a02d69515e098920 /docs
parent9c46a0aabeee5468f3530139d4c8527966814ec7 (diff)
feat(publish): add workspace support
Errors will make things stop altogether, dunno if we want to bikeshed that here or not PR-URL: https://github.com/npm/cli/pull/3231 Credit: @wraithgar Close: #3231 Reviewed-by: @ruyadorno
Diffstat (limited to 'docs')
-rw-r--r--docs/content/commands/npm-publish.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/content/commands/npm-publish.md b/docs/content/commands/npm-publish.md
index fc13e6722..10e65f895 100644
--- a/docs/content/commands/npm-publish.md
+++ b/docs/content/commands/npm-publish.md
@@ -47,6 +47,13 @@ by specifying a different default registry or using a
actually publishing to the registry. Reports the details of what would
have been published.
+* `[--workspaces]`: Enables workspace context while publishing. All
+ workspace packages will be published.
+
+* `[--workspace]`: Enables workspaces context and limits results to only
+ those specified by this config item. Only the packages in the
+ workspaces given will be published.
+
The publish will fail if the package name and version combination already
exists in the specified registry.