diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-09 01:45:02 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-09 01:45:02 +0200 |
commit | 41a193dff0911da78fe080f610478ecabeb6184a (patch) | |
tree | 758769629b934b1ba30b97965f30ef70d60e3139 /bundle/src/start.ts | |
parent | :bug: fix build (diff) | |
download | server-41a193dff0911da78fe080f610478ecabeb6184a.tar.xz |
:art: fix imports with new build script
Diffstat (limited to 'bundle/src/start.ts')
-rw-r--r-- | bundle/src/start.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bundle/src/start.ts b/bundle/src/start.ts index 872f324e..f65c1db9 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts @@ -1,7 +1,7 @@ // process.env.MONGOMS_DEBUG = "true"; const tsConfigPaths = require("tsconfig-paths"); const path = require("path"); -const baseUrl = path.join(__dirname, ".."); // Either absolute or relative path. If relative it's resolved to current working directory. +const baseUrl = path.join(__dirname, ".."); const cleanup = tsConfigPaths.register({ baseUrl, paths: { @@ -13,6 +13,7 @@ const cleanup = tsConfigPaths.register({ "@fosscord/cdn/*": ["../cdn/dist/*"], }, }); +console.log(require("@fosscord/gateway")); import "reflect-metadata"; import cluster from "cluster"; @@ -26,7 +27,7 @@ import { execSync } from "child_process"; // TODO: add tcp socket event transmission const cores = 1 || Number(process.env.threads) || os.cpus().length; -export function getCommitOrFail() { +function getCommitOrFail() { try { return execSync("git rev-parse HEAD").toString().trim(); } catch (e) { |