Skip to content

Commit

Permalink
fix: правка import
Browse files Browse the repository at this point in the history
  • Loading branch information
artpani4 committed Jul 28, 2024
1 parent 085883f commit 6201b7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@artpani/tuner",
"version": "0.0.2",
"version": "0.0.3",
"exports": "./mod.ts",
"test": {
"files": {
Expand Down
4 changes: 2 additions & 2 deletions src/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const configDir = <T extends ITunerConfig>(
fun: async (): Promise<T> => {
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}`,
);
Expand All @@ -71,7 +71,7 @@ const cwd = <T extends ITunerConfig>(
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) {
Expand Down

0 comments on commit 6201b7f

Please sign in to comment.