Перейти к основному содержимому
Версия: Будущая

pnpm pack

Создаёт tar-архив из пакета.

Опции

--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>

Сохранить архив, созданный pnpm пакет в этот каталог. По умолчанию используется текущий рабочий каталог.

--pack-gzip-level <level>

Specifying custom compression level.

--json

Показывать вывод в JSON формате.

Сценарии жизненного цикла

  • prepack
  • prepare
  • postpack