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-04-06 18:28:36 +0300
committerGar <gar+gh@danger.computer>2021-04-08 20:27:43 +0300
commit6e31df4e7957337962fd3d93e495931e3592bb9e (patch)
tree7e8d514f2fb149d4ec0bec5cbe21ee381f0ee0c7 /docs
parent1f3e88ebaf4901d8f9f07b43404d824fef7e5ff5 (diff)
feat(pack): add workspace support
PR-URL: https://github.com/npm/cli/pull/3033 Credit: @wraithgar Close: #3033 Reviewed-by: @darcyclarke
Diffstat (limited to 'docs')
-rw-r--r--docs/content/commands/npm-pack.md23
1 files changed, 19 insertions, 4 deletions
diff --git a/docs/content/commands/npm-pack.md b/docs/content/commands/npm-pack.md
index cc6b669ef..de3eeb731 100644
--- a/docs/content/commands/npm-pack.md
+++ b/docs/content/commands/npm-pack.md
@@ -10,6 +10,25 @@ description: Create a tarball from a package
npm pack [[<@scope>/]<pkg>...] [--dry-run]
```
+### Configuration
+
+#### dry-run
+
+Do everything that pack usually does without actually packing anything.
+That is, report on what would have gone into the tarball, but nothing
+else.
+
+#### workspaces
+
+Enables workspaces context while creating tarballs. Tarballs for each
+workspaces will be generated.
+
+#### workspace
+
+Enables workspaces context and limits results to only those specified by
+this config item. Tarballs will only be generated for the packages
+named in the workspaces given here.
+
### Description
For anything that's installable (that is, a package folder, tarball,
@@ -23,10 +42,6 @@ overwritten the second time.
If no arguments are supplied, then npm packs the current package folder.
-The `--dry-run` argument will do everything that pack usually does without
-actually packing anything. That is, it reports on what would have gone
-into the tarball, but nothing else.
-
### See Also
* [npm-packlist package](http://npm.im/npm-packlist)