« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 6d63b1b1..89984c08 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -61,11 +61,11 @@ import * as html from './util/html.js';
 import {getColors} from './util/colors.js';
 import {findFiles} from './util/io.js';
 
-import CacheableObject from './data/cacheable-object.js';
+import CacheableObject from './data/things/cacheable-object.js';
 
 import {serializeThings} from './data/serialize.js';
 
-import {Language} from './data/things.js';
+import T from './data/things/index.js';
 
 import {
   filterDuplicateDirectories,
@@ -1625,7 +1625,7 @@ async function processLanguageFile(file) {
     delete json['meta.baseDirectory'];
   }
 
-  const language = new Language();
+  const language = new T.Language();
   language.code = code;
   language.intlCode = intlCode;
   language.name = name;
@@ -1834,7 +1834,7 @@ async function main() {
   const niceShowAggregate = (error, ...opts) => {
     showAggregate(error, {
       showTraces: showAggregateTraces,
-      pathToFile: (f) => path.relative(__dirname, f),
+      pathToFileURL: (f) => path.relative(__dirname, fileURLToPath(f)),
       ...opts,
     });
   };