skills/bun-guides-install-yarnlock/SKILL.md
Generate a yarn-compatible lockfile
npx skillsauth add jarle/bun-skills Bun Generate a yarn-compatible lockfileInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use the --yarn flag to generate a Yarn-compatible yarn.lock file (in addition to bun.lock{b}).
bun install --yarn
To set this as the default behavior, add the following to your bunfig.toml file.
[install.lockfile]
print = "yarn"
To print a Yarn lockfile to your console without writing it to disk, "run" your bun.lockb with bun.
bun bun.lockb
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
# bun ./bun.lockb --hash: 9BFBF11D86084AAB-9418b03ff880c569-390CE6459EACEC9A...
abab@^2.0.6:
version "2.0.6"
resolved "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz"
integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvH...
See Docs > Package manager for complete documentation of Bun's package manager.
development
Using TypeScript with Bun, including type definitions and compiler options
development
Learn how to write tests using Bun's Jest-compatible API with support for async tests, timeouts, and various test modifiers
testing
Learn how to use snapshot testing in Bun to save and compare output between test runs
testing
Learn about Bun test's runtime integration, environment variables, timeouts, and error handling