fix: make all recursive local relative imports explicit with .ts extensions to resolve ESM worker thread module failures

This commit is contained in:
MythEclipse
2026-05-17 23:03:35 +07:00
parent 299ec76433
commit 7a2b8420d1
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { z } from "zod";
import { ConfigError } from "./errors";
import { ConfigError } from "./errors.ts";
const configSchema = z
.object({
+3 -3
View File
@@ -2,9 +2,9 @@ import Database from "better-sqlite3";
import { drizzle as drizzleSqlite } from "drizzle-orm/better-sqlite3";
import { drizzle as drizzlePostgres } from "drizzle-orm/node-postgres";
import { Pool } from "pg";
import { config } from "../config";
import { createChildLogger } from "../logger";
import * as schema from "./schema";
import { config } from "../config.ts";
import { createChildLogger } from "../logger.ts";
import * as schema from "./schema.ts";
const logger = createChildLogger("drizzle");
+1 -1
View File
@@ -14,7 +14,7 @@ import {
sqliteTable,
text as sqliteText,
} from "drizzle-orm/sqlite-core";
import { config } from "../config";
import { config } from "../config.ts";
// PostgreSQL Schema
// ==================
+3 -3
View File
@@ -1,6 +1,6 @@
import { config } from "../config";
import { createChildLogger } from "../logger";
import { retryWithBackoff } from "../retry";
import { config } from "../config.ts";
import { createChildLogger } from "../logger.ts";
import { retryWithBackoff } from "../retry.ts";
import type { AnalysisResult, MessageRecord } from "./types";
const log = createChildLogger("llmModerationClient");
+3 -3
View File
@@ -1,7 +1,7 @@
import { and, asc, desc, eq, isNull, or, type SQL, sql } from "drizzle-orm";
import { getDatabase } from "../database/drizzle";
import { attachmentsTable, messagesTable } from "../database/schema";
import { createChildLogger } from "../logger";
import { getDatabase } from "../database/drizzle.ts";
import { attachmentsTable, messagesTable } from "../database/schema.ts";
import { createChildLogger } from "../logger.ts";
import type {
AttachmentRecord,
MessageQuery,