Skip to content

Commit

Permalink
docs(patch): document plugin options (#4481)
Browse files Browse the repository at this point in the history
  • Loading branch information
RDIL authored and merceyz committed Oct 5, 2022
1 parent 7475755 commit 902d00f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .yarn/versions/db7650d7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
releases:
"@yarnpkg/plugin-patch": patch

declined:
- "@yarnpkg/plugin-compat"
- "@yarnpkg/cli"
13 changes: 13 additions & 0 deletions packages/gatsby/static/configuration/yarnrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@
"type": "boolean",
"examples": [false]
},
"enableInlineHunks": {
"_package": "@yarnpkg/plugin-patch",
"description": "If true, Yarn will print any patch sections (hunks) that could not be applied successfully to the terminal. Defaults to false.",
"type": "boolean",
"examples": [true]
},
"enableMessageNames": {
"_package": "@yarnpkg/core",
"description": "If true, Yarn will prefix most messages with codes suitable for search engines.",
Expand Down Expand Up @@ -585,6 +591,13 @@
"additionalProperties": false,
"_exampleKeys": ["webpack@*"]
},
"patchFolder": {
"_package": "@yarnpkg/plugin-patch",
"description": "Folder where patch files will be written to.",
"type": "string",
"format": "uri-reference",
"default": "./.yarn/patches"
},
"pnpDataPath": {
"_package": "@yarnpkg/plugin-pnp",
"description": "The location where Yarn will read and write the `.pnp.meta.json` file.",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-patch/sources/tools/apply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function linesAreEqual(a: string, b: string) {
*
* if you edit a file that had a new line and leave it in:
*
* neither insetion nor deletion have the annoation
* neither insertion nor deletion have the annotation
*
*/

Expand Down

0 comments on commit 902d00f

Please sign in to comment.