summary refs log tree commit diff
path: root/src/bundle
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 18:24:21 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 23:35:18 +1000
commitf44f5d7ac2d24ff836c2e1d4b2fa58da04b13052 (patch)
treea6655c41bb3db79c30fd876b06ee60fe9cf70c9b /src/bundle
parentAllow edited_timestamp to passthrough in handleMessage (diff)
downloadserver-f44f5d7ac2d24ff836c2e1d4b2fa58da04b13052.tar.xz
Refactor to mono-repo + upgrade packages
Diffstat (limited to '')
-rw-r--r--src/bundle/Server.ts (renamed from bundle/src/Server.ts)0
-rw-r--r--src/bundle/index.ts4
-rw-r--r--src/bundle/start.ts (renamed from bundle/src/start.ts)15
-rw-r--r--src/bundle/stats.ts (renamed from bundle/src/stats.ts)0
4 files changed, 11 insertions, 8 deletions
diff --git a/bundle/src/Server.ts b/src/bundle/Server.ts

index da810d9b..da810d9b 100644 --- a/bundle/src/Server.ts +++ b/src/bundle/Server.ts
diff --git a/src/bundle/index.ts b/src/bundle/index.ts new file mode 100644
index 00000000..960d4dc0 --- /dev/null +++ b/src/bundle/index.ts
@@ -0,0 +1,4 @@ +export * from "@fosscord/api"; +export * from "@fosscord/util"; +export * from "@fosscord/gateway"; +export * from "@fosscord/cdn"; \ No newline at end of file diff --git a/bundle/src/start.ts b/src/bundle/start.ts
index de3b5848..2a1e6520 100644 --- a/bundle/src/start.ts +++ b/src/bundle/start.ts
@@ -1,4 +1,5 @@ // process.env.MONGOMS_DEBUG = "true"; +require('module-alias/register'); import "reflect-metadata"; import cluster, { Worker } from "cluster"; import os from "os"; @@ -13,7 +14,7 @@ var cores = 1; try { cores = Number(process.env.THREADS) || os.cpus().length; } catch { - console.log("[API] Failed to get thread count! Using 1...") + console.log("[API] Failed to get thread count! Using 1..."); } if (cluster.isMaster) { @@ -36,18 +37,16 @@ if (cluster.isMaster) { ╚═╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ fosscord-server | ${yellow( - `Pre-release (${ - commit !== null - ? commit.slice(0, 7) - : "Unknown (Git cannot be found)" + `Pre-release (${commit !== null + ? commit.slice(0, 7) + : "Unknown (Git cannot be found)" })` )} -Commit Hash: ${ - commit !== null +Commit Hash: ${commit !== null ? `${cyan(commit)} (${yellow(commit.slice(0, 7))})` : "Unknown (Git cannot be found)" - } + } Cores: ${cyan(os.cpus().length)} (Using ${cores} thread(s).) `) ); diff --git a/bundle/src/stats.ts b/src/bundle/stats.ts
index 0234e0b4..0234e0b4 100644 --- a/bundle/src/stats.ts +++ b/src/bundle/stats.ts