mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
This commit refines the previous fix to be more targeted. Instead of always prioritizing devDependencies over peerDependencies, we now only do this when both behaviors have the workspace flag set. This ensures that: - Workspace packages with both dev and peer dependencies use the dev resolution - Non-workspace packages follow the standard dependency priority rules - The fix is specifically targeted to the Next.js monorepo isolated install issue Changes: - Added special handling in Behavior.cmp() for workspace packages - Updated tests to reflect workspace-specific behavior - Maintained backward compatibility for non-workspace packages 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>