adminforth 2.4.0-next.30 → 2.4.0-next.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/cli.js +2 -1
- package/package.json +1 -1
package/commands/cli.js
CHANGED
|
@@ -12,6 +12,7 @@ import createResource from "./createResource/main.js";
|
|
|
12
12
|
import chalk from "chalk";
|
|
13
13
|
import path from "path";
|
|
14
14
|
import fs from "fs";
|
|
15
|
+
import { fileURLToPath } from 'url';
|
|
15
16
|
|
|
16
17
|
function showHelp() {
|
|
17
18
|
console.log(
|
|
@@ -26,7 +27,7 @@ function showHelp() {
|
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export function currentFileDir(importMetaUrl) {
|
|
29
|
-
const filePath = importMetaUrl
|
|
30
|
+
const filePath = fileURLToPath(importMetaUrl);
|
|
30
31
|
const fileDir = path.dirname(filePath);
|
|
31
32
|
return fileDir;
|
|
32
33
|
}
|