Skip to content

Commit

Permalink
feat(turbo): add TMP and TEMP variables to pass through
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
cahilfoley committed Jul 22, 2024
1 parent f00b73d commit fe28ea5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/turborepo-lib/src/task_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ impl<'a> TaskHasher<'a> {
"COLORTERM",
"TERM",
"TERM_PROGRAM",
"TMP",
"TEMP",
// VSCode IDE - https://github.com/microsoft/vscode-js-debug/blob/5b0f41dbe845d693a541c1fae30cec04c878216f/src/targets/node/nodeLauncherBase.ts#L320
"VSCODE_*",
"ELECTRON_RUN_AS_NODE",
Expand Down

0 comments on commit fe28ea5

Please sign in to comment.