snippetbashTip
bun pm pack — Create a `.tgz` archive containing the files that would be published to npm (same behavior as `npm p
Viewed 0 times
containingthecreatecommandtgzcliarchivebun pm pack
Problem
How to use the
bun pm pack command: Create a .tgz archive containing the files that would be published to npm (same behavior as npm pack). More information: <https://bun.com/docs/pm/cli/pm#pack>.Solution
bun pm pack — Create a .tgz archive containing the files that would be published to npm (same behavior as npm pack). More information: <https://bun.com/docs/pm/cli/pm#pack>.Create a tarball from the current workspace:
bun pm packRun all steps without writing the tarball to disk:
bun pm pack --dry-runSave the tarball to a specific directory:
bun pm pack --destination {{path/to/directory}}Set an exact filename for the tarball:
bun pm pack --filename {{filename}}Skip prepack, postpack, and prepare scripts:
bun pm pack --ignore-scriptsSet the gzip compression level (0-9, default: 9):
bun pm pack --gzip-level 5Output only the tarball filename and suppress verbose logs:
bun pm pack --quietCode Snippets
Create a tarball from the current workspace
bun pm packRun all steps without writing the tarball to disk
bun pm pack --dry-runSave the tarball to a specific directory
bun pm pack --destination {{path/to/directory}}Set an exact filename for the tarball
bun pm pack --filename {{filename}}Skip prepack, postpack, and prepare scripts
bun pm pack --ignore-scriptsContext
tldr-pages: common/bun pm pack
Revisions (0)
No revisions yet.