From 6201b7f25b0bbb8faa3241a495996c14cacf4131 Mon Sep 17 00:00:00 2001 From: Artem Date: Mon, 29 Jul 2024 00:16:20 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20i?= =?UTF-8?q?mport?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deno.json | 2 +- src/loaders.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {