Run command from sub-directory and inject environment #6311
Unanswered
karlbrown-va
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a
.env.yarn
file at the top level, but sometimes I want to run commands from within a package subdirectory. However these commands fail b/c yarn doesn't have an environment variable that is needed by.yarnrc.yaml
(this var gets injected when yarn is run at the root level). Is there any way to force yarn to grab the.env.yarn
from the root directory and inject that to the environment, no matter where yarn is run from?Beta Was this translation helpful? Give feedback.
All reactions