npm pack <[<@scope>/]<pkg>>
Create a tarball from a package
Arguments
Name | Description |
---|
[<@scope>/]<pkg> | |
Options
Name | Description |
---|
--json | Show output in json format |
--dry-run | Indicates that you don't want npm to make any changes and that it should only report what it would have done |
-w, --workspace <workspace...> | Enable running a command in the context of the configured workspaces of the current project |
-ws, --workspaces | Enable running a command in the context of all the configured workspaces |
--pack-destination <pack-destination> | Directory in which npm pack will save tarballs |