ref https://github.com/pnpm/pnpm.io/pull/658
close #7403 --------- Co-authored-by: Zoltan Kochan <z@kochan.io>