Files
bun.sh/test/regression
Claude Bot ea65d7903f fix: prefer bun.lock over bun.lockb when migrating lockfiles
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>
2025-10-12 02:59:08 +00:00
..