Files
termux-packages/packages/deno/0001-fix-hardcoded-paths.patch
termux-pacman-bot 6be4ea5411 enable,bump(main/deno): 2.2.13 (#22379)
Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com>
Co-authored-by: Jia Yuan Lo <jylo06g@gmail.com>
2025-06-23 15:40:20 +00:00

14 lines
547 B
Diff

diff --git a/ext/node/polyfills/os.ts b/ext/node/polyfills/os.ts
index edc89ed2c..ae24b53a1 100644
--- a/ext/node/polyfills/os.ts
+++ b/ext/node/polyfills/os.ts
@@ -287,7 +287,7 @@ export function tmpdir(): string | null {
return temp;
} else { // !isWindows
let temp = Deno.env.get("TMPDIR") || Deno.env.get("TMP") ||
- Deno.env.get("TEMP") || "/tmp";
+ Deno.env.get("TEMP") || "@TERMUX_PREFIX@/tmp";
if (temp.length > 1 && StringPrototypeEndsWith(temp, "/")) {
temp = StringPrototypeSlice(temp, 0, -1);
}