detect-package-manager icon indicating copy to clipboard operation
detect-package-manager copied to clipboard

feat: return false explicitly

Open m-shaka opened this issue 2 years ago • 1 comments

Hi. Now await hasGlobalInstallation(...) returns true or raise an error. I think it's better to return false

m-shaka avatar Feb 03 '23 05:02 m-shaka

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?

typedarray avatar Aug 01 '23 06:08 typedarray