Refactor to mono-repo + upgrade packages
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
|