Fix script execution.

This commit is contained in:
Petróczi Zoltán
2020-07-07 17:07:48 +02:00
parent ff02c8a5a4
commit 83373b6c7b
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ the following code runs `deno --allow-net example.ts` which is located in `/some
```bash
/some/work/dir$ deno --allow-run --allow-read https://deno.land/x/rhinoder@v1.2.0/mod.ts --allow-net example.ts
/some/work/dir$ deno run --allow-run --allow-read https://deno.land/x/rhinoder@v1.2.0/mod.ts --allow-net example.ts
```
## Thanks to

2
mod.ts
View File

@@ -1,5 +1,5 @@
function startProcess(args: string[] = []): Deno.Process {
return Deno.run({ cmd: ['deno', ...args] });
return Deno.run({ cmd: ['deno', 'run', ...args] });
}
const throttle = 500;