瀏覽代碼

Update package.js

Lutz Roeder 2 年之前
父節點
當前提交
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);
 };