Page MenuHomePhabricator

[yarn] Add `yarn patch` command to `package.json`
ClosedPublic

Authored by atul on Oct 20 2022, 11:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 18, 8:04 AM
Unknown Object (File)
Thu, May 16, 11:42 AM
Unknown Object (File)
Thu, May 16, 6:14 AM
Unknown Object (File)
Thu, May 16, 5:21 AM
Unknown Object (File)
Tue, May 14, 1:32 AM
Unknown Object (File)
Mon, May 13, 8:25 PM
Unknown Object (File)
Tue, May 7, 9:46 AM
Unknown Object (File)
Sun, May 5, 5:24 AM

Details

Reviewers
derek
ashoat
varun
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rCOMM566fc62ec3f1: [yarn] Add `yarn patch` command to `package.json`
Summary

Often you need to pull in tagged commits from origin (via git pull --all --tags) before arc patch to ensure that parent commits exist locally.

This isn't really "documented" anywhere and has come up from time to time on Phabricator/Linear/etc.

This yarn patch command should make things a bit more convenient in the future.

Test Plan

Was able to yarn patch D5427 and get @ashoat's full ReactNav stack locally:

cf92a1.png (1×1 px, 676 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

save some buildkites for a sunny day

This revision is now accepted and ready to land.Oct 20 2022, 11:49 AM
atul added a reviewer: varun.
atul added a reviewer: Restricted Owners Package.
This revision now requires review to proceed.Oct 20 2022, 11:51 AM
This revision is now accepted and ready to land.Oct 20 2022, 11:56 AM
This revision was landed with ongoing or failed builds.Oct 20 2022, 12:07 PM
This revision was automatically updated to reflect the committed changes.
package.json
20

This is really unfortunate name because it might be confused with https://yarnpkg.com/cli/patch

package.json
20

Ah that’s fair, should we rename this to something like yarn arcpatch to be more unique?

package.json
20

Yeah that seems like a good idea. To be clear, I think the feature @tomek pointed out only exists in Yarn 2 and above ("yarn berry"), whereas we're still using Yarn 1 ("yarn classic")

atul marked 2 inline comments as done.
atul added inline comments.
package.json
20