Open CinArb2 opened 1 year ago
^pnpm
is an invalid prefix.
yes, using "packageManager": "pnpm@^8.6.1", works, but there is an issue with a pattern matching error in VSC "String does not match the pattern of "(npm|pnpm|yarn)@\d+.\d+.\d+(-.+)?"", I'll look into it. Thanks for your reply
but there is an issue with a pattern matching error in VSC "String does not match the pattern of "(npm|pnpm|yarn)@\d+.\d+.\d+(-.+)?"", I'll look into it.
It seems that our action supporting version range is a non-standard extension. The spec seems the require the exact version (packageManager
itself is still experimental after all). And the regex in VS Code schema fails to exclude invalid initial characters.
permalink for the package.json example:
This behavior makes Dependabot failing on my project
i put this in my package.json
"packageManager": "pnpm@^8.6.1",
My github action is working quite well, by detecting the good version automatically.
But dependantBot fails :(
This is the error in the output logs of Dependabot
updater | 2023/11/13 07:51:02 ERROR <job_748887009> Usage Error: Invalid package manager specification in package.json; expected a semver version
So I rollbacked and put my pnpm version hardcoded in my github actions :(
@Potof-TheOz Caret isn't supported by corepack
either. So I guess our unintentional extension was a mistake.
I see the version can be omitted when we have the packageManager field defined in our package.json.
This is my package.json see pkg.json
This is the error I get: see error
Error: Error: Invalid packageManager field in package.json
It seems that retrieving range versions from the 'packageManager' field is not possible; only exact versions can be retrieved.