From 690a7b53a72ac71f9f76260fa50c634566c4e984 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 28 Nov 2022 23:25:05 -0400 Subject: divide things.js into modular files (hilariously) --- src/upd8.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/upd8.js') 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, }); }; -- cgit 1.3.0-6-gf8a5