pnpm pack
Buat tarball dari sebuah paket.
Pengaturan
--out <path>
Customizes the output path for the tarball. Use %s
and %v
to include the package name and version, e.g., %s.tgz
or some-dir/%s-%v.tgz
. By default, the tarball is saved in the current working directory with the name <package-name>-<version>.tgz
.
--pack-destination <dir>
Directory in which pnpm pack
will save tarballs. Defaultnya adalah direktori kerja saat ini.
--pack-gzip-level <level>
Specifying custom compression level.
--json
Added in: v9.14.1
Output log dalam format JSON.
Life Cycle Scripts
prepack
prepare
postpack