Skip to content

Commit

Permalink
docs: improve JSON Schema validation (#4077)
Browse files Browse the repository at this point in the history
  • Loading branch information
segrey committed Feb 8, 2022
1 parent f534265 commit 4f88b35
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/gatsby/static/configuration/yarnrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,12 @@
"nodeLinker": {
"_package": "@yarnpkg/plugin-pnp",
"description": "Defines what linker should be used for installing Node packages (useful to enable the node-modules plugin), one of: `pnp`, `pnpm` and `node-modules`.",
"anyOf": [
{ "type": "string" },
{ "enum": ["pnp", "pnpm", "node-modules"] }
],
"type": "string",
"default": "pnp",
"examples": ["pnp", "pnpm", "node-modules"]
"default": "pnp"
},
"npmAlwaysAuth": {
"_package": "@yarnpkg/plugin-npm",
Expand Down Expand Up @@ -620,8 +623,11 @@
"pnpMode": {
"_package": "@yarnpkg/plugin-pnp",
"description": "If `strict` (the default), Yarn won't allow modules to require packages they don't explicitly list in their own dependencies. If `loose`, Yarn will allow access to the packages that would have been hoisted to the top-level under 1.x installs. Note that, even in loose mode, such calls are unsafe (hoisting rules aren't predictable) and should be discouraged.",
"anyOf": [
{ "type": "string" },
{ "enum": ["strict", "loose"] }
],
"type": "string",
"enum": ["strict", "loose"],
"default": "strict"
},
"pnpShebang": {
Expand Down

0 comments on commit 4f88b35

Please sign in to comment.