mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-01 10:42:28 -05:00
* fix: fix packageManager field not working with prerelease version * fix: remove hash from packageManager reference * test: install should not fail for packageManager field with hash * fix: packageManager field may contain URL instead of semver corepack uses `URL.canParse()` to check if a given value is a URL or semver, which was only added in recent Node versions and is not supported by all node versions `"node" >= "18.12"` that pnpm supports. So instead, we check if the value contains ':' as it may not appear on semver, while it must appear on URL. * test: install should not fail for packageManager field with url * test: checking prerelease versions in package-is-installable * fix: typo --------- Co-authored-by: Zoltan Kochan <z@kochan.io>