You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**What's the problem this PR addresses?**
It was raised in
yarnpkg/berry#5544 (comment) that
automatically injecting the `.env` file in the environment could break
compatibility with some software that already do this in their own way.
It makes sense, and I prefer to avoid doing that if there's a reasonable
compromise.
Also closesyarnpkg/berry#5545.
**How did you fix it?**
Yarn will now default into loading the `.env.yarn` file, rather than
`.env`.
**Checklist**
<!--- Don't worry if you miss something, chores are automatically
tested. -->
<!--- This checklist exists to help you remember doing the chores when
you submit a PR. -->
<!--- Put an `x` in all the boxes that apply. -->
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
<!-- See
https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released
for more details. -->
<!-- Check with `yarn version check` and fix with `yarn version check
-i` -->
- [x] I have set the packages that need to be released for my changes to
be effective.
<!-- The "Testing chores" workflow validates that your PR follows our
guidelines. -->
<!-- If it doesn't pass, click on it to see details as to what your PR
might be missing. -->
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,7 @@ The following changes only affect people writing Yarn plugins:
90
90
91
91
### Features
92
92
93
+
-`yarn run` now injects the environment variables defined in `.env.yarn` when spawning a process. The list of files thus injected can be controlled using the `injectEnvironmentFiles` variable.
93
94
-`yarn workspaces foreach` now automatically enables the `-v,--verbose` flag in interactive terminal environments.
0 commit comments