()
| 41 | } |
| 42 | |
| 43 | function 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 | |
| 52 | async function patchProject(dir: string): Promise<void> { |
| 53 | const jsonPath = path.join(dir, "deno.json"); |
no outgoing calls
no test coverage detected