Skip to main content
Version: 9.x

pnpm pack

从包创建 tarball。

¥Create a tarball from a package.

选项

¥Options

--pack-destination <dir>

pnpm pack 将保存 tarball 的目录。默认为当前工作目录。

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

--pack-gzip-level <level>

指定自定义压缩级别。

¥Specifying custom compression level.

生命周期脚本

¥Life Cycle Scripts

  • prepack

  • prepare

  • postpack