Lutz Roeder 2 лет назад
Родитель
Сommit
17cd67633b
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      package.js

+ 2 - 1
package.js

@@ -18,7 +18,8 @@ const read = (match) => {
 let configuration = null;
 
 const dirname = (...args) => {
-    const dir = path.dirname(url.fileURLToPath(import.meta.url));
+    const file = url.fileURLToPath(import.meta.url);
+    const dir = path.dirname(file);
     return path.join(dir, ...args);
 };