MCPcopy
hub / github.com/freshframework/fresh / withTmpDir

Function withTmpDir

packages/init/src/init_test.ts:43–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43function withTmpDir(): Promise<{ dir: string } & AsyncDisposable> {
44 // Windows need temporary files in the repository root
45 if (Deno.build.os === "windows") {
46 const dir = path.join(import.meta.dirname!, "..", "..", "..", "..");
47 return withTmpDirBase({ dir, prefix: "tmp_" });
48 }
49 return withTmpDirBase();
50}
51
52async function patchProject(dir: string): Promise<void> {
53 const jsonPath = path.join(dir, "deno.json");

Callers 4

init_test.tsFile · 0.90
update_test.tsFile · 0.90
prepareDevServerFunction · 0.90
buildViteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected