Bun v1.1.39 introduced
bun.lock
, a JSONC formatted lockfile. bun.lock
is human-readable and
git-diffable without configuration, at no cost to performance. Learn
more.Use the
--yarn
flag to generate a Yarn-compatible yarn.lock
file (in addition to bun.lock
).
terminal
To set this as the default behavior, add the following to your
bunfig.toml
file.
bunfig.toml
To print a Yarn lockfile to your console without writing it to disk, “run” your
bun.lockb
with bun
.
terminal
See Docs > Package manager for complete documentation of Bun’s package manager.