Skip to content

Commit

Permalink
Revert "fix: path loading"
Browse files Browse the repository at this point in the history
This reverts commit ae03834.
  • Loading branch information
TheNoim committed May 30, 2024
1 parent b7443d1 commit 2492abb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/runtime/loader.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { walk } from "@std/fs";
import { parseArgs as parse } from "@std/cli";
import { basename, join, toFileUrl } from "@std/path";
import { basename, join } from "@std/path";

const flags = parse(Deno.args, {
string: ["root"],
Expand Down Expand Up @@ -31,10 +31,7 @@ for await (const path of walk(flags.root)) {
console.info("Load script", path.path);

const worker = new Worker(
new URL(
join(Deno.cwd(), path.path),
toFileUrl(join(Deno.cwd(), flags.root!))
).href,
new URL(join(Deno.cwd(), path.path), import.meta.url).href,
{
type: "module",
deno: {
Expand Down

0 comments on commit 2492abb

Please sign in to comment.