diff options
Diffstat (limited to 'cli/tests/node_compat/runner.ts')
-rw-r--r-- | cli/tests/node_compat/runner.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/node_compat/runner.ts b/cli/tests/node_compat/runner.ts new file mode 100644 index 000000000..f12cc69b0 --- /dev/null +++ b/cli/tests/node_compat/runner.ts @@ -0,0 +1,7 @@ +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +import { createRequire } from "node:module"; +const file = Deno.args[0]; +if (!file) { + throw new Error("No file provided"); +} +createRequire(import.meta.url)(file); |