mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Fixes #23414 The code was asserting that all relative paths from .bin to package binaries must start with "..\\" on Windows. This assumption breaks in edge cases where the relative path has a different structure. This commit: - Replaces the assertion with a conditional check - Handles both paths that start with "..\\" and those that don't - Adds a regression test for issue #23414 The fix gracefully handles edge cases while maintaining the expected behavior for the common case where binaries are in subdirectories of node_modules. Co-Authored-By: Claude <noreply@anthropic.com>