bun pm pack
Create a
.tgzarchive containing the files that would be published to npm (same behavior asnpm pack). More information: https://bun.com/docs/pm/cli/pm#pack.
- Create a tarball from the current workspace:
bun pm pack
- Simulate packing, running all steps without writing the tarball to disk:
bun pm pack --dry-run
- Save the tarball to a specific directory:
bun pm pack --destination
- Set an exact filename for the tarball:
bun pm pack --filename
- Skip prepack, postpack, and prepare scripts:
bun pm pack --ignore-scripts
- Set the
gzipcompression level (0-9, default: 9):
bun pm pack --gzip-level 5
- Output only the tarball filename and suppress verbose logs:
bun pm pack --quiet
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
