Explorar el Código

Update package.js

Lutz Roeder hace 2 años
padre
commit
17cd67633b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);
 };