Skip to main content
Version: Next

pnpm pack

Create a tarball from a package.

Options

--pack-destination <dir>

Directory in which pnpm pack will save tarballs. The default is the current working directory.

--pack-gzip-level <level>

Specifying custom compression level.

--json

Added in: v9.14.1

Log output in JSON format.

Life Cycle Scripts

  • prepack
  • prepare
  • postpack