The previous method for detecting package managers works well when yarn, pnpm, or npm binaries are installed in the traditional way but fails when corepack shims are present. This PR changes the detection logic to use package metadata when determining which package manager to use.
The previous method for detecting package managers works well when
yarn
,pnpm
, ornpm
binaries are installed in the traditional way but fails whencorepack
shims are present. This PR changes the detection logic to use package metadata when determining which package manager to use.Fixes #1312