mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
a379009bfd
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.
14 lines
301 B
JSON
14 lines
301 B
JSON
{
|
|
"name": "bin_entries_prefer_closer",
|
|
"dependencies": {
|
|
"@denotest/bin": "0.7.0",
|
|
"@denotest/transitive-bin": "1.0.0"
|
|
},
|
|
|
|
"scripts": {
|
|
"run-esm": "cli-esm hello world",
|
|
"run-cjs": "cli-cjs hello world",
|
|
"run-no-ext": "cli-no-ext hello world",
|
|
"run-ts": "cli-ts"
|
|
}
|
|
}
|