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:
@@ -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
@@ -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>;
|
||||
|
||||
|
||||
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user