From 8b926960d852863920d4f0e038aed92be3ba54c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Tue, 24 Oct 2023 15:41:34 +0200 Subject: [PATCH] Adds `injectEnvironmentFiles` to the documentation (#5838) **What's the problem this PR addresses?** Fixes #5816 --- packages/docusaurus/static/configuration/yarnrc.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/docusaurus/static/configuration/yarnrc.json b/packages/docusaurus/static/configuration/yarnrc.json index 63aa2dd179e0..2e61080cb9b8 100644 --- a/packages/docusaurus/static/configuration/yarnrc.json +++ b/packages/docusaurus/static/configuration/yarnrc.json @@ -343,6 +343,18 @@ }, "_exampleKeys": ["homepage"] }, + "injectEnvironmentFiles": { + "_package": "@yarnpkg/core", + "title": "Array of .env files which will get injected into any subprocess spawned by Yarn.", + "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.", + "type": "array", + "items": { + "type": "string", + "format": "uri-reference" + }, + "default": [], + "_exampleItems": [".my-env", ".my-local-env?"] + }, "installStatePath": { "_package": "@yarnpkg/core", "title": "Path where the install state will be persisted.",