pnpm pack
パッケージのtarballを作成します。
引数
--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
がtarballを保存するディレクトリを指定します。 初期値は現在の作業ディレ クトリです。
--pack-gzip-level <level>
Specifying custom compression level.
--json
ログを JSON 形式で出力します。
ライフサイクルスクリプト
prepack
prepare
postpack