You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/gatsby/content/features/protocols.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -65,11 +65,11 @@ The `patch:` protocol is meant to be used with [`yarn patch`](/cli/patch) and [`
65
65
1. Find a package you want to patch (let's say `lodash@^1.0.0`)
66
66
2. Run `yarn patch lodash`
67
67
3. Edit the folder the command generated
68
-
4. Once you're done, run `yarn patch-commit <path> > my-patch.diff`
68
+
4. Once you're done, run `yarn patch-commit -s <path>`
69
69
5. In your manifest, change the dependency from `^1.0.0` to:
70
70
71
71
```
72
-
patch:lodash@^1.0.0#./my-patch.diff
72
+
patch:lodash@^1.0.0#path/to/generated/file.patch
73
73
```
74
74
75
75
Note that if you wish to update a transitive dependency (ie not directly yours), it's perfectly possible to use the [`resolutions` field](/configuration/manifest#resolutions).
0 commit comments