Parcourir la source

Update package.js

Lutz Roeder il y a 2 ans
Parent
commit
17cd67633b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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);
 };