Files
pnpm/cli/cli-utils
BlueGreenMagick 8c5fe4febe fix: packageManager field can contain various values (#7734)
* 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>
2024-03-07 02:00:03 +01:00
..
2024-01-27 16:48:08 +01:00
2024-01-27 16:55:07 +01:00

@pnpm/cli-utils

Utils for pnpm commands

npm version

Installation

pnpm add @pnpm/cli-utils

License

MIT