diff --git a/bundle/scripts/build.js b/bundle/scripts/build.js index c6a98b80..05cf37ce 100644 --- a/bundle/scripts/build.js +++ b/bundle/scripts/build.js @@ -37,7 +37,6 @@ function transpileFiles() { const files = walk(path.join(__dirname, "..", "..", part, "dist")); for (const file of files) { let content = fs.readFileSync(file, { encoding: "utf8" }); - console.log(file); content = content .replace( new RegExp(`@fosscord/${part}`), diff --git a/cdn/src/routes/attachments.ts b/cdn/src/routes/attachments.ts index 354bdde9..ae50bc48 100644 --- a/cdn/src/routes/attachments.ts +++ b/cdn/src/routes/attachments.ts @@ -1,9 +1,9 @@ import { Router, Response, Request } from "express"; import { Config, Snowflake } from "@fosscord/util"; -import { storage } from "@fosscord/cdn"; +import { storage } from "../util/Storage"; import FileType from "file-type"; import { HTTPError } from "lambert-server"; -import { multer } from "@fosscord/cdn"; +import { multer } from "../util/multer"; import imageSize from "image-size"; const router = Router(); diff --git a/cdn/src/routes/avatars.ts b/cdn/src/routes/avatars.ts index 981cc417..3d5e7d77 100644 --- a/cdn/src/routes/avatars.ts +++ b/cdn/src/routes/avatars.ts @@ -1,6 +1,6 @@ import { Router, Response, Request } from "express"; import { Config, Snowflake } from "@fosscord/util"; -import { storage } from "@fosscord/cdn"; +import { storage } from "../util/Storage"; import FileType from "file-type"; import { HTTPError } from "lambert-server"; import crypto from "crypto"; diff --git a/cdn/src/routes/external.ts b/cdn/src/routes/external.ts index 50014600..dc90e3c8 100644 --- a/cdn/src/routes/external.ts +++ b/cdn/src/routes/external.ts @@ -2,7 +2,7 @@ import { Router, Response, Request } from "express"; import fetch from "node-fetch"; import { HTTPError } from "lambert-server"; import { Snowflake } from "@fosscord/util"; -import { storage } from "@fosscord/cdn"; +import { storage } from "../util/Storage"; import FileType from "file-type"; import { Config } from "@fosscord/util"; diff --git a/gateway/src/events/Message.ts b/gateway/src/events/Message.ts index 3648931d..af318bfd 100644 --- a/gateway/src/events/Message.ts +++ b/gateway/src/events/Message.ts @@ -5,7 +5,7 @@ try { erlpack = require("@yukikaze-bot/erlpack"); } catch (error) {} import OPCodeHandlers from "../opcodes"; -import { instanceOf, Tuple } from "lambert-server"; +import { Tuple } from "lambert-server"; import { check } from "../opcodes/instanceOf"; import WS from "ws";