mirror of
https://github.com/denoland/deno.git
synced 2025-02-21 12:53:05 -05:00

Additionaly, this no longer unnecessarily stores the source twice for file specifiers and fixes some sourcemap issues. Closes https://github.com/denoland/deno/issues/27284
11 lines
306 B
TypeScript
11 lines
306 B
TypeScript
import { tmpdir } from "node:os";
|
|
|
|
// cleanup the code cache file from a previous run
|
|
try {
|
|
if (Deno.build.os === "windows") {
|
|
Deno.removeSync(tmpdir() + "\\deno-compile-using_code_cache.exe.cache");
|
|
} else {
|
|
Deno.removeSync(tmpdir() + "\\deno-compile-using_code_cache.cache");
|
|
}
|
|
} catch {
|
|
}
|