🐛 fix cdn
This commit is contained in:
parent
d9e37e5e19
commit
4cd6207e5f
@ -37,7 +37,6 @@ function transpileFiles() {
|
|||||||
const files = walk(path.join(__dirname, "..", "..", part, "dist"));
|
const files = walk(path.join(__dirname, "..", "..", part, "dist"));
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
let content = fs.readFileSync(file, { encoding: "utf8" });
|
let content = fs.readFileSync(file, { encoding: "utf8" });
|
||||||
console.log(file);
|
|
||||||
content = content
|
content = content
|
||||||
.replace(
|
.replace(
|
||||||
new RegExp(`@fosscord/${part}`),
|
new RegExp(`@fosscord/${part}`),
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { Router, Response, Request } from "express";
|
import { Router, Response, Request } from "express";
|
||||||
import { Config, Snowflake } from "@fosscord/util";
|
import { Config, Snowflake } from "@fosscord/util";
|
||||||
import { storage } from "@fosscord/cdn";
|
import { storage } from "../util/Storage";
|
||||||
import FileType from "file-type";
|
import FileType from "file-type";
|
||||||
import { HTTPError } from "lambert-server";
|
import { HTTPError } from "lambert-server";
|
||||||
import { multer } from "@fosscord/cdn";
|
import { multer } from "../util/multer";
|
||||||
import imageSize from "image-size";
|
import imageSize from "image-size";
|
||||||
|
|
||||||
const router = Router();
|
const router = Router();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Router, Response, Request } from "express";
|
import { Router, Response, Request } from "express";
|
||||||
import { Config, Snowflake } from "@fosscord/util";
|
import { Config, Snowflake } from "@fosscord/util";
|
||||||
import { storage } from "@fosscord/cdn";
|
import { storage } from "../util/Storage";
|
||||||
import FileType from "file-type";
|
import FileType from "file-type";
|
||||||
import { HTTPError } from "lambert-server";
|
import { HTTPError } from "lambert-server";
|
||||||
import crypto from "crypto";
|
import crypto from "crypto";
|
||||||
|
@ -2,7 +2,7 @@ import { Router, Response, Request } from "express";
|
|||||||
import fetch from "node-fetch";
|
import fetch from "node-fetch";
|
||||||
import { HTTPError } from "lambert-server";
|
import { HTTPError } from "lambert-server";
|
||||||
import { Snowflake } from "@fosscord/util";
|
import { Snowflake } from "@fosscord/util";
|
||||||
import { storage } from "@fosscord/cdn";
|
import { storage } from "../util/Storage";
|
||||||
import FileType from "file-type";
|
import FileType from "file-type";
|
||||||
import { Config } from "@fosscord/util";
|
import { Config } from "@fosscord/util";
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ try {
|
|||||||
erlpack = require("@yukikaze-bot/erlpack");
|
erlpack = require("@yukikaze-bot/erlpack");
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
import OPCodeHandlers from "../opcodes";
|
import OPCodeHandlers from "../opcodes";
|
||||||
import { instanceOf, Tuple } from "lambert-server";
|
import { Tuple } from "lambert-server";
|
||||||
import { check } from "../opcodes/instanceOf";
|
import { check } from "../opcodes/instanceOf";
|
||||||
import WS from "ws";
|
import WS from "ws";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user