跳到主要内容

pnpm pack

为软件包创建一个 tar 压缩包。

参数

--pack-destination <dir>

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

--pack-gzip-level <level>

Added in: v8.3.0

Specifying custom compression level.

Life Cycle Scripts

  • prepack
  • prepare
  • postpack