Passa al contenuto principale
Versione: 10.x

pnpm pack

Crea un tarball da un pacchetto.

Opzioni

--recursive, -r

Added in: v10.11.0

Pack all packages from the workspace.

--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. Il valore predefinito è la cartella di lavoro corrente.

--pack-gzip-level <level>

Specifica il livello di compressione personalizzato.

--json

Registra l'output in formato JSON.

--filter <package_selector>

Added in: v10.11.0

Read more about filtering.

Life Cycle Scripts

  • prepack
  • prepare
  • postpack
OSZAR »