Preserve the SHA-224 hash of `packageManager`
enhancement
### Clear and concise description of the problem
https://github.com/nodejs/corepack#when-authoring-packages
`packageManager` can be something like `yarn@3.2.3+sha224.953c8233f7a92884eee2de69a1b92d1f2ec1655e66d08071ba9a02fa`
The SHA-224 hash part is removed after the update.
### Suggested solution
Update the SHA-224 hash part correctly.
### Alternative
_No response_
### Additional context
I would be happy to submit a PR for this.
### Validations
- [x] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)
- [x] Read the [Contributing Guide](https://github.com/antfu/contribute).
- [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
1 条评论