Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(patch): document plugin options #4481

Merged
merged 1 commit into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -605,6 +611,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