Passer au contenu principal
Version : 9.x

pnpm pack

Créez une archive tar à partir d'un package.

Options

--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. Par défaut, c'est le dossier de travail courant.

--pack-gzip-level <level>

Spécification du niveau de compression personnalisé.

--json

Added in: v9.14.1

Afficher le résultat au format JSON.

État du cycle de vie

  • prepack
  • prepare
  • postpack