Skip to content

Commit

Permalink
fix: fix import path
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed May 8, 2021
1 parent e695b06 commit d9bb2f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dzx.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DZX } from "./types.d.ts";
import { colors, iter } from "./deps.ts";
import { colors, iter, join } from "./deps.ts";
import { ProcessResult } from "./process_result.ts";

const $: DZX = exec as DZX;
Expand All @@ -12,7 +12,7 @@ window.$ = $;
const script: string | undefined = Deno.args[0];

if (script) {
await import(script);
await import(join(Deno.cwd(), script));
} else {
console.error("missing script");
Deno.exit(0);
Expand Down

0 comments on commit d9bb2f9

Please sign in to comment.