fix: make all recursive local relative imports explicit with .ts extensions to resolve ESM worker thread module failures
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { z } from "zod";
|
||||
import { ConfigError } from "./errors";
|
||||
import { ConfigError } from "./errors.ts";
|
||||
|
||||
const configSchema = z
|
||||
.object({
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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
|
||||
// ==================
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user