Skip to content

Commit 8b92696

Browse files
authored
Adds injectEnvironmentFiles to the documentation (#5838)
**What's the problem this PR addresses?** Fixes #5816
1 parent 70b7c10 commit 8b92696

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/docusaurus/static/configuration/yarnrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,18 @@
343343
},
344344
"_exampleKeys": ["homepage"]
345345
},
346+
"injectEnvironmentFiles": {
347+
"_package": "@yarnpkg/core",
348+
"title": "Array of .env files which will get injected into any subprocess spawned by Yarn.",
349+
"description": "By default Yarn will automatically inject the variables stored in the `.env.yarn` file, but you can use this setting to change this behavior.\n\nNote that adding a question mark at the end of the path will silence the error Yarn would throw should the file be missing, which may come in handy when declaring local configuration files.",
350+
"type": "array",
351+
"items": {
352+
"type": "string",
353+
"format": "uri-reference"
354+
},
355+
"default": [],
356+
"_exampleItems": [".my-env", ".my-local-env?"]
357+
},
346358
"installStatePath": {
347359
"_package": "@yarnpkg/core",
348360
"title": "Path where the install state will be persisted.",

0 commit comments

Comments
 (0)