Remove import to class-validator, fix listening on port message in bundle
This commit is contained in:
parent
5bcfa5ec0b
commit
5f46f559b7
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -6,7 +6,8 @@
|
|||||||
"postinstall": "npx patch-package",
|
"postinstall": "npx patch-package",
|
||||||
"start": "node dist/bundle/start.js",
|
"start": "node dist/bundle/start.js",
|
||||||
"build": "tsc -p .",
|
"build": "tsc -p .",
|
||||||
"generate:rights": "node scripts/rights.js"
|
"generate:rights": "node scripts/rights.js",
|
||||||
|
"generate:schema": "node scripts/schema.js"
|
||||||
},
|
},
|
||||||
"main": "dist/bundle/index.js",
|
"main": "dist/bundle/index.js",
|
||||||
"types": "src/bundle/index.ts",
|
"types": "src/bundle/index.ts",
|
||||||
@ -76,6 +77,7 @@
|
|||||||
"@aws-sdk/client-s3": "^3.178.0",
|
"@aws-sdk/client-s3": "^3.178.0",
|
||||||
"@sentry/node": "^7.13.0",
|
"@sentry/node": "^7.13.0",
|
||||||
"@sentry/tracing": "^7.13.0",
|
"@sentry/tracing": "^7.13.0",
|
||||||
|
"@yukikaze-bot/erlpack": "^1.0.1",
|
||||||
"amqplib": "^0.10.3"
|
"amqplib": "^0.10.3"
|
||||||
},
|
},
|
||||||
"_moduleAliases": {
|
"_moduleAliases": {
|
||||||
|
|||||||
@ -110,6 +110,7 @@ async function main() {
|
|||||||
app.use(Sentry.Handlers.tracingHandler());
|
app.use(Sentry.Handlers.tracingHandler());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server.listen(port);
|
||||||
await Promise.all([api.start(), cdn.start(), gateway.start()]);
|
await Promise.all([api.start(), cdn.start(), gateway.start()]);
|
||||||
|
|
||||||
if (Config.get().sentry.enabled) {
|
if (Config.get().sentry.enabled) {
|
||||||
|
|||||||
@ -25,7 +25,6 @@ import { Sticker } from "./Sticker";
|
|||||||
import { Attachment } from "./Attachment";
|
import { Attachment } from "./Attachment";
|
||||||
import { BannedWords } from "../util";
|
import { BannedWords } from "../util";
|
||||||
import { HTTPError } from "lambert-server";
|
import { HTTPError } from "lambert-server";
|
||||||
import { ValidatorConstraint } from "class-validator";
|
|
||||||
|
|
||||||
export enum MessageType {
|
export enum MessageType {
|
||||||
DEFAULT = 0,
|
DEFAULT = 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user