Skip to content

Commit c1159a9

Browse files
author
yaroslav8765
committed
fix: Corrected file path replacement in currentFileDir function
1 parent bc837eb commit c1159a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/commands/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function showHelp() {
2626
}
2727

2828
export function currentFileDir(importMetaUrl) {
29-
const filePath = importMetaUrl.replace("file://", "");
29+
const filePath = importMetaUrl.replace(`file:${path.sep}${path.sep}`, "");
3030
const fileDir = path.dirname(filePath);
3131
return fileDir;
3232
}

0 commit comments

Comments
 (0)