chore(repo): migrate from patch-package to yarn patch - #2919
Closed
snaka wants to merge 1 commit into
Closed
Conversation
Replace patch-package with Yarn 3 built-in patch mechanism (yarn patch / yarn patch-commit). Patches are now applied automatically at install time via resolutions entries using the patch: protocol, eliminating the need for a separate prerelease script. - Remove patch-package from devDependencies - Remove prerelease script that ran patch-package - Regenerate patches for @semantic-release/github@12.0.6 and multi-semantic-release@3.1.0 using yarn patch-commit - Delete old patches/ directory (patch-package format) - Add new .yarn/patches/ files (yarn patch format)
Author
|
Related: #2916 This PR addresses the same issue (outdated patches) but takes a different approach — migrating from |
Author
|
Closing as the previous PR might be enough. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate from
patch-packageto Yarn 3's built-inyarn patchmechanism.The existing patches targeted outdated versions (
@semantic-release/github@8.1.0,multi-semantic-release@3.0.2) and no longer apply to the currently installed versions.patch-packagealso has compatibility issues with Yarn 3's lockfile format.Changes
patch-packagefrom devDependencies andprereleasescriptyarn patch-commitfor current versions:multi-semantic-release@3.1.0: ChangetagFormatseparator from@to-@semantic-release/github@12.0.6: Removepublishfunction and add per-package commit filtering insuccesshookyarn installtime — no CI workflow changes requiredTest plan
yarn installapplies patches correctlyyarn release --dry-run— all 11 packages loaded, no errorsyarn test.jest/yarn test.harness— passed