mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
When migrating from npm/yarn/pnpm lockfiles, Bun was incorrectly setting the lockfile format to binary (.lockb) in both success and error cases. This caused Bun to create bun.lockb instead of the preferred bun.lock format. This change ensures that all migration paths (npm, yarn, pnpm) return .format = .text instead of .format = .binary, causing Bun to create bun.lock files as expected. Changes: - src/install/migration.zig: Changed error paths for npm, yarn, and pnpm migrations to return .format = .text - src/install/migration.zig: Changed npm successful migration path to return .format = .text - src/install/yarn.zig: Changed yarn successful migration path to return .format = .text - test/regression/issue/migration-lockfile-format.test.ts: Added regression tests to verify lockfile format after migration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>