跳至主要內容
版本:9.x

pnpm pack

Create a tarball from a package.

Options

--pack-destination <dir>

Directory in which pnpm pack will save tarballs. 預設值為當前工作資料夾。

--pack-gzip-level <level>

Specifying custom compression level.

Life Cycle Scripts

  • prepack
  • prepare
  • postpack