We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc837eb commit c1159a9Copy full SHA for c1159a9
adminforth/commands/cli.js
@@ -26,7 +26,7 @@ function showHelp() {
26
}
27
28
export function currentFileDir(importMetaUrl) {
29
- const filePath = importMetaUrl.replace("file://", "");
+ const filePath = importMetaUrl.replace(`file:${path.sep}${path.sep}`, "");
30
const fileDir = path.dirname(filePath);
31
return fileDir;
32
0 commit comments