extensions/npm/src/preferred-pm.ts/isPNPMPreferred
async function isPNPMPreferred(pkgPath: string) {
	if (await pathExists(path.join(pkgPath, 'pnpm-lock.yaml'))) {
		return true;
	}
	if (await pathExists(path.join(pkgPath, 'shrinkwrap.yaml'))) {
		return true;
	}
	if (await findUp('pnpm-lock.yaml', { cwd: pkgPath })) {
		return true;
	}

	return false;
}