We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4190338 commit d262ccaCopy full SHA for d262cca
1 file changed
src/utils/path.utils.ts
@@ -3,14 +3,5 @@ import * as path from "@std/path";
3
export const getExecPath = (): string => Deno.execPath();
4
export const getPath = (): string => path.dirname(getExecPath());
5
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
15
export const getModulePath = (filePath: string): string =>
16
path.join(path.dirname(path.fromFileUrl(Deno.mainModule)), filePath);
0 commit comments