0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 07:16:56 -05:00
denoland-deno/tests/specs/compile/determinism/setup.ts

11 lines
307 B
TypeScript
Raw Normal View History

// for setup, we create two directories with the same file in each
// and then when compiling we ensure this directory name has no
// effect on the output
makeCopyDir("a");
makeCopyDir("b");
function makeCopyDir(dirName) {
Deno.mkdirSync(dirName);
Deno.copyFileSync("main.ts", `${dirName}/main.ts`);
}