refactor: update import statements to use .js extensions

- Changed all import statements across the project to include the .js extension for consistency and to comply with ES module standards.
- Updated imports in various files including bootstrap.ts, shutdown.ts, config.ts, and many others.
- Ensured that all related modules and types are correctly imported with the new extension.
This commit is contained in:
Asep Haryana Saputra
2026-05-21 12:03:31 +00:00
parent 4cd92303ef
commit 0ef6fc8d31
56 changed files with 208 additions and 193 deletions
+5 -5
View File
@@ -1,16 +1,16 @@
import { Worker } from "node:worker_threads";
import { config } from "../config";
import { createChildLogger } from "../logger";
import { config } from "../config.js";
import { createChildLogger } from "../logger.js";
import {
getMessageById,
getPendingConversationKeys,
getPendingMessagesByConversation,
} from "./messageStore";
} from "./messageStore.js";
import type {
AnalysisQueueStatus,
MessageRecord,
ModerationBroadcaster,
} from "./types";
} from "./types.js";
const logger = createChildLogger("ai-analyzer");
@@ -163,7 +163,7 @@ async function runAnalysisInWorker(
): Promise<AnalysisWorkerResponse> {
return new Promise((resolve, reject) => {
const worker = new Worker(
new URL("./aiAnalysisWorker.ts", import.meta.url),
new URL("./aiAnalysisWorker.js", import.meta.url),
{ execArgv: process.execArgv },
);