mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
dd208a6df0
Regression from https://github.com/denoland/deno/pull/25370
18 lines
373 B
TypeScript
18 lines
373 B
TypeScript
const binaryName = Deno.build.os === "windows" ? "deno.exe" : "deno";
|
|
Deno.copyFileSync(Deno.execPath(), binaryName);
|
|
|
|
console.log("Running...");
|
|
new Deno.Command(
|
|
Deno.execPath(),
|
|
{
|
|
args: [
|
|
"run",
|
|
"--allow-write",
|
|
"--allow-read",
|
|
`--allow-run=deno`,
|
|
"sub.ts",
|
|
],
|
|
stderr: "inherit",
|
|
stdout: "inherit",
|
|
},
|
|
).outputSync();
|