Skip to content

Instantly share code, notes, and snippets.

@Comamoca
Last active March 24, 2024 02:41
Show Gist options
  • Save Comamoca/6ab23b87fbc422303463a1b82f321175 to your computer and use it in GitHub Desktop.
Save Comamoca/6ab23b87fbc422303463a1b82f321175 to your computer and use it in GitHub Desktop.
import { join } from "https://deno.land/std@0.220.1/path/mod.ts";
console.log(`import.meta.url: ${import.meta.url}`);
console.log(`Deno.cwd: ${Deno.cwd()}`)
const modPath = join(Deno.cwd(), "haru.config.ts")
console.log(`modPath: ${modPath}`)
const mod = await import(modPath)
console.log(mod)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment