diff --git a/deno.json b/deno.json index bd7b4c3..36dba53 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@artpani/tuner", - "version": "0.0.2", + "version": "0.0.3", "exports": "./mod.ts", "test": { "files": { diff --git a/src/loaders.ts b/src/loaders.ts index b954298..bccf6d7 100644 --- a/src/loaders.ts +++ b/src/loaders.ts @@ -44,7 +44,7 @@ const configDir = ( fun: async (): Promise => { try { const modulePath = resolve(path) + `?version=${Math.random()}`; - const module = await import(modulePath); + const module = await import(`file:///${modulePath}`); log.inf( `Successfully loaded config from config directory: ${modulePath}`, ); @@ -71,7 +71,7 @@ const cwd = ( try { const modulePath = resolve('./', path) + `?version=${Math.random()}`; - const module = await import(modulePath); + const module = await import(`file:///${modulePath}`); log.inf(`Successfully loaded config from CWD: ${path}`); return module.default as T; } catch (error) {