Skip to main content
Version: 8.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>​

已添加于:v8.3.0

¥Added in: v8.3.0

指定自定义压缩级别。

¥Specifying custom compression level.

生命周期脚本​

¥Life Cycle Scripts

  • prepack

  • prepare

  • postpack