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
Create a mono repo and in the root package.json file, write a script that cd into one of the packages and run one of the scripts (of the sub packages). Then, create a root .env file and add the variables there.
What is the expected behavior?
The env variables should work when the sub packages are run. It was working till I upgraded the bun package. I don't remember what the previous version was to let you know, but it was definitely working.
What do you see instead?
Env variables in the root of the mono repo isn't being added to the environment when sub packages are run, but if i add the .env file in the sub package folder, it is working.
Additional information
No response
The text was updated successfully, but these errors were encountered:
I encountered this problem as well. A workaround until it gets fixed is to manually specify the env file in every command. I know it's unnecessarily laborious, but it works.
What version of Bun is running?
1.1.8+89d25807f
What platform is your computer?
Darwin 23.3.0 x86_64 i386
What steps can reproduce the bug?
Create a mono repo and in the root package.json file, write a script that cd into one of the packages and run one of the scripts (of the sub packages). Then, create a root .env file and add the variables there.
What is the expected behavior?
The env variables should work when the sub packages are run. It was working till I upgraded the bun package. I don't remember what the previous version was to let you know, but it was definitely working.
What do you see instead?
Env variables in the root of the mono repo isn't being added to the environment when sub packages are run, but if i add the .env file in the sub package folder, it is working.
Additional information
No response
The text was updated successfully, but these errors were encountered: