Skip to content

Commit d262cca

Browse files
committed
fix: remove get local path from import - fix #109
1 parent 4190338 commit d262cca

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/utils/path.utils.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,5 @@ import * as path from "@std/path";
33
export const getExecPath = (): string => Deno.execPath();
44
export const getPath = (): string => path.dirname(getExecPath());
55

6-
const __dirname = path.dirname(path.fromFileUrl(import.meta.url));
7-
8-
export const getLocalPath = (filePath: string): string => {
9-
if (filePath.startsWith("/") || /^[A-Za-z]:\\/.test(filePath)) {
10-
return filePath; // already absolute
11-
}
12-
return path.join(__dirname, filePath);
13-
};
14-
156
export const getModulePath = (filePath: string): string =>
167
path.join(path.dirname(path.fromFileUrl(Deno.mainModule)), filePath);

0 commit comments

Comments
 (0)