Get the current package's binary path
undefined
is now always returned when the binary cannot be found. Previously, a random binary was sometimes returned instead. This happens when:
name
option is used but no binary of that name is found.package.json
uses a directories.bin
with multiple binaries, but none matches the package.json
name
or name
option.package.json
bin
field is a string, the name
option (when defined) must match the package.json
name
field.