skills/bun-guides-install-git-diff-bun-lockfile/SKILL.md
Configure git to diff Bun's lockb lockfile
npx skillsauth add jarle/bun-skills Bun Configure git to diff Bun's lockb 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.
To teach git how to generate a human-readable diff of Bun's binary lockfile format (.lockb), add the following to your local or global .gitattributes file:
*.lockb binary diff=lockb
Then add the following to you local git config with:
git config diff.lockb.textconv bun
git config diff.lockb.binary true
To globally configure git to diff Bun's lockfile, add the following to your global git config with:
git config --global diff.lockb.textconv bun
git config --global diff.lockb.binary true
Why this works:
textconv tells git to run bun on the file before diffingbinary tells git to treat the file as binary (so it doesn't try to diff it line-by-line)In Bun, you can execute Bun's lockfile (bun ./bun.lockb) to generate a human-readable version of the lockfile and git diff can then use that to generate a human-readable diff.
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