deno/cli/npm
Nathan Whitaker a379009bfd
fix(cli): Prefer npm bin entries provided by packages closer to the root (#24024)
Fixes #24012.

In the case of multiple packages providing a binary with a same name, we
were basically leaving the results undefined (since we set up things in
parallel, and whichever got set up first won). In addition, we were
warning about these cases, even though it's a situation that's expected
to occur.

Instead, in the case of a collision in the binary names, we prefer the
binary provided by the package with the least depth in the dependency
tree.

While I was at it, I also took moved more code to `bin_entries.rs` since
it was starting to get a bit cluttered.
2024-05-29 17:45:22 -07:00
..
managed fix(cli): Prefer npm bin entries provided by packages closer to the root (#24024) 2024-05-29 17:45:22 -07:00
byonm.rs perf: v8 code cache (#23081) 2024-04-17 07:19:55 -07:00
cache_dir.rs FUTURE: initial support for .npmrc file (#23560) 2024-05-23 23:26:23 +02:00
common.rs FUTURE: initial support for .npmrc file (#23560) 2024-05-23 23:26:23 +02:00
mod.rs refactor: move redirect handling into deno_graph (#23444) 2024-04-19 01:43:28 +00:00