mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 14:57:12 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/bun-pm-pack
Normal file
37
tldr/bun-pm-pack
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 pack`
|
||||
|
||||
- Run all steps without writing the tarball to disk:
|
||||
|
||||
`bun pm pack --dry-run`
|
||||
|
||||
- Save 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-scripts`
|
||||
|
||||
- Set the gzip compression level (0-9, default: 9):
|
||||
|
||||
`bun pm pack --gzip-level 5`
|
||||
|
||||
- Output only the tarball filename and suppress verbose logs:
|
||||
|
||||
`bun pm pack --quiet`
|
||||
Reference in New Issue
Block a user