From d262ccafb7275c09548cf84451cc7e42c5d1d269 Mon Sep 17 00:00:00 2001 From: pagoru Date: Fri, 22 Aug 2025 15:37:18 +0200 Subject: [PATCH] fix: remove get local path from import - fix #109 --- src/utils/path.utils.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/utils/path.utils.ts b/src/utils/path.utils.ts index fcb9782..6548eb5 100644 --- a/src/utils/path.utils.ts +++ b/src/utils/path.utils.ts @@ -3,14 +3,5 @@ import * as path from "@std/path"; export const getExecPath = (): string => Deno.execPath(); export const getPath = (): string => path.dirname(getExecPath()); -const __dirname = path.dirname(path.fromFileUrl(import.meta.url)); - -export const getLocalPath = (filePath: string): string => { - if (filePath.startsWith("/") || /^[A-Za-z]:\\/.test(filePath)) { - return filePath; // already absolute - } - return path.join(__dirname, filePath); -}; - export const getModulePath = (filePath: string): string => path.join(path.dirname(path.fromFileUrl(Deno.mainModule)), filePath);