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)
Fri, Dec 20, 3:30 PM
Unknown Object (File)
Tue, Nov 26, 5:30 AM
Unknown Object (File)
Mon, Nov 25, 3:45 AM
Unknown Object (File)
Sun, Nov 24, 10:58 PM
Unknown Object (File)
Sun, Nov 24, 10:58 PM
Unknown Object (File)
Sun, Nov 24, 10:58 PM
Unknown Object (File)
Nov 15 2024, 5:55 PM
Unknown Object (File)
Nov 15 2024, 2:22 PM

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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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 ↗(On Diff #17748)

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

package.json
20 ↗(On Diff #17748)

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

package.json
20 ↗(On Diff #17748)

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 ↗(On Diff #17748)