« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/aggregate.js (renamed from src/util/aggregate.js)4
-rw-r--r--src/cli.js (renamed from src/util/cli.js)8
2 files changed, 3 insertions, 9 deletions
diff --git a/src/util/aggregate.js b/src/aggregate.js
index c7648c4c..92c66b73 100644
--- a/src/util/aggregate.js
+++ b/src/aggregate.js
@@ -1,5 +1,5 @@
-import {colors} from './cli.js';
-import {empty, typeAppearance} from './sugar.js';
+import {colors} from '#cli';
+import {empty, typeAppearance} from '#sugar';
 
 // Utility function for providing useful interfaces to the JS AggregateError
 // class.
diff --git a/src/util/cli.js b/src/cli.js
index a40a911f..bd4ec685 100644
--- a/src/util/cli.js
+++ b/src/cli.js
@@ -1,14 +1,8 @@
 // Utility functions for CLI- and de8ugging-rel8ted stuff.
-//
-// A 8unch of these depend on process.stdout 8eing availa8le, so they won't
-// work within the 8rowser.
-
-const {process} = globalThis;
 
-import {sortByName} from './sort.js';
+import {sortByName} from '#sort';
 
 export const ENABLE_COLOR =
-  process &&
   ((process.env.CLICOLOR_FORCE && process.env.CLICOLOR_FORCE === '1') ??
     (process.env.CLICOLOR &&
       process.env.CLICOLOR === '1' &&