mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
When using `nodeLinker: "isolated"`, npm alias dependencies like `"alias1": "npm:package@version"` were incorrectly creating symlinks with the package name instead of the alias name. The bug was in the `symlink_dependencies` step in Installer.zig where it was looking up the dependency ID through the node instead of using the already available `dep.dep_id` field. This caused it to get the wrong dependency name for aliased dependencies. Fixed by using `dependencies[dep.dep_id].name` directly instead of `dependencies[node_dep_ids[dep_node_id.get()]].name`. Note: Tests for this functionality exist but are commented out due to Verdaccio registry connection issues in the test environment. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>