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 package manager are you using / does the bug impact?
npm
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
2.0.9 (because canary is currently at 2.0.7)
Describe the Bug
The TMP and TEMP environment variables are not available in child NPM scripts being run by turbo run or turbo watch
Expected Behavior
The TMP and TEMP environment variables should be available in app and package code.
To Reproduce
Try to access the TMP or TEMP environment variables in any app or package script run through turbo in turbo@^2. In the reproduction simply run turbo run example and compare the outputs to your local TMP and TEMP env variables. This also breaks the node os.tmpdir() function.
Additional context
No response
The text was updated successfully, but these errors were encountered:
### Description
This is required so node scripts and other tools can detect the correct
location to create temporary files and folders. In particular it's
required for the Node.js
[os.tmpdir()](https://nodejs.org/api/os.html#ostmpdir) function.
### Testing Instructions
Create an app or package task that access either the `TMP` or `TEMP`
environment variables and observe that they are passed through
correctly.
This should hopefully resolve this issue #8802
Verify canary release
Link to code that reproduces this issue
https://github.com/cahilfoley/turborepo-temp-bug
What package manager are you using / does the bug impact?
npm
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
2.0.9 (because canary is currently at 2.0.7)
Describe the Bug
The TMP and TEMP environment variables are not available in child NPM scripts being run by
turbo run
orturbo watch
Expected Behavior
The TMP and TEMP environment variables should be available in app and package code.
To Reproduce
Try to access the TMP or TEMP environment variables in any app or package script run through turbo in
turbo@^2
. In the reproduction simply runturbo run example
and compare the outputs to your localTMP
andTEMP
env variables. This also breaks the nodeos.tmpdir()
function.Additional context
No response
The text was updated successfully, but these errors were encountered: