mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
19 lines
382 B
TypeScript
19 lines
382 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=${binaryName}`,
|
||
|
"sub.ts",
|
||
|
],
|
||
|
stderr: "inherit",
|
||
|
stdout: "inherit",
|
||
|
},
|
||
|
).outputSync();
|