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
+2 -2
View File
@@ -1,8 +1,8 @@
import type { createChildLogger } from "../logger";
import type { createChildLogger } from "../logger.js";
import type {
BroadcasterClient,
ModerationBroadcaster,
} from "../moderation/types";
} from "../moderation/types.js";
type Logger = ReturnType<typeof createChildLogger>;
+4 -4
View File
@@ -1,9 +1,9 @@
import type { Server as HttpServer } from "node:http";
import { WebSocketServer } from "ws";
import type { createChildLogger } from "../logger";
import type { MediaController } from "../media/mediaController";
import type { ModerationBroadcaster } from "../moderation/types";
import { createVoiceAudioBridge } from "./voiceAudioBridge";
import type { createChildLogger } from "../logger.js";
import type { MediaController } from "../media/mediaController.js";
import type { ModerationBroadcaster } from "../moderation/types.js";
import { createVoiceAudioBridge } from "./voiceAudioBridge.js";
type Logger = ReturnType<typeof createChildLogger>;
+3 -3
View File
@@ -1,8 +1,8 @@
import { AudioPlayerStatus } from "@discordjs/voice";
import * as prism from "prism-media";
import { rmsDb, upsample24kMonoTo48kStereo } from "../audio/pcm";
import type { createChildLogger } from "../logger";
import { discordPlayer } from "../player";
import { rmsDb, upsample24kMonoTo48kStereo } from "../audio/pcm.js";
import type { createChildLogger } from "../logger.js";
import { discordPlayer } from "../player.js";
type Logger = ReturnType<typeof createChildLogger>;