async function getOptionsForBin({ rootDir, name, lifecycleEvents = DEFAULT_LIFECYCLE_EVENTS }) {
  const {
    configs: {
      bin: { binCandidates },
    },
  } = await loadAllPackageConfigurations({ rootDir, lifecycleEvents })

  return binCandidates.get(name)
}
@param {GetOptionsForBinParams} params
@returns {Promise<BinInfo[] | undefined>}