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
10 lines
307 B
TypeScript
10 lines
307 B
TypeScript
// 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`);
|
|
}
|