add "deno run" subcommand (#2215)

This commit is contained in:
Bartek Iwańczuk 2019-05-03 23:15:16 +02:00 committed by Ryan Dahl
parent 3608117132
commit f6a9d7d717
54 changed files with 314 additions and 210 deletions

View file

@ -35,7 +35,7 @@ def deno_dir_test(deno_exe, deno_dir):
def run_deno(deno_exe, deno_dir=None):
cmd = [deno_exe, "tests/002_hello.ts"]
cmd = [deno_exe, "run", "tests/002_hello.ts"]
deno_dir_env = {"DENO_DIR": deno_dir} if deno_dir is not None else None
run(cmd, quiet=True, env=deno_dir_env)