npm pack <[<@scope>/]<pkg>>

Create a tarball from a package

Arguments

NameDescription
[<@scope>/]<pkg>

Options

NameDescription
--jsonShow output in json format
--dry-runIndicates 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, --workspacesEnable running a command in the context of all the configured workspaces
--pack-destination <pack-destination>Directory in which npm pack will save tarballs