detect-package-manager
detect-package-manager copied to clipboard
feat: return false explicitly
Hi.
Now await hasGlobalInstallation(...) returns true or raise an error.
I think it's better to return false
Strongly agree with this change. At the moment, if detect cannot find a lockfile (happens often in monorepos), it will throw an error if either yarn or pnpm are not installed.
@egoist, anything I can do to help get this merged?