LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

bun-pm-pack

Create a tarball of the package

TLDR

Pack the current package into a .tgz archive
$ bun pm pack
copy
Pack without writing to disk (dry run)
$ bun pm pack --dry-run
copy
Pack to a specific directory
$ bun pm pack --destination [path/to/dir]
copy
Pack with a custom filename
$ bun pm pack --filename [package.tgz]
copy
Pack with minimal output (only print tarball name)
$ bun pm pack --quiet
copy

SYNOPSIS

bun pm pack [--dry-run] [--destination dir] [--filename name] [--ignore-scripts] [--gzip-level 0-9] [--quiet]

DESCRIPTION

bun pm pack creates a compressed .tgz archive containing all files that would be published to npm, following the same inclusion and exclusion rules as npm pack. This is useful for inspecting what will be published before running bun publish, testing local packages, or sharing packages without a registry.The command respects the files field in package.json, .npmignore, and .gitignore when determining which files to include.

PARAMETERS

--dry-run

Perform all tasks except writing the tarball to disk.
--destination dir
Specify an output directory for the tarball. Cannot be combined with --filename.
--filename name
Set the exact filename for the tarball. Cannot be combined with --destination.
--ignore-scripts
Skip running prepack, postpack, and prepare scripts.
--gzip-level 0-9
Set gzip compression level. Default is 9 (maximum compression).
--quiet
Only output the tarball filename, suppressing verbose output.

SEE ALSO

bun(1), bun-pm(1), bun-publish(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid