[rush] rushx does not support npm environment vars (e.g. npm_package_version) #3520
Labels
effort: medium
Needs a somewhat experienced developer
help wanted
If you're looking to contribute, this issue is a good place to start!
Projects
Summary
I have a create-react-app project with an environment file (
.env
) that contains the following line:When running
npm run start
orpnpm run start
, the variable gets populated with the correct version number from the package.json. When runningrushx start
, this does not work. The environment variable stays empty.Repro steps
Setup a new Rush installation with a single project inside, only containing a
package.json
with the following contents:Then run the following command in that project:
Expected result:
Actual result:
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/rush
globally installed version?rushVersion
from rush.json?useWorkspaces
from rush.json?node -v
)?The text was updated successfully, but these errors were encountered: