summary refs log tree commit diff
path: root/src/gateway
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2024-10-25 18:57:29 +0200
committerRory& <root@rory.gay>2024-10-28 00:32:18 +0100
commit2feb90475e12d23e892aef37bb01e2361dac4bc6 (patch)
tree79c7f9f6d669a59d53e56f4815e5fcd84b870513 /src/gateway
parentUpdate some patches, switch to node-fetch-commonjs, more updates (diff)
downloadserver-ts-2feb90475e12d23e892aef37bb01e2361dac4bc6.tar.xz
Fix module resolution when $CWD != .
Diffstat (limited to 'src/gateway')
-rw-r--r--src/gateway/start.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gateway/start.ts b/src/gateway/start.ts

index 8af96c13..b04048e1 100644 --- a/src/gateway/start.ts +++ b/src/gateway/start.ts
@@ -16,7 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -require("module-alias/register"); +import moduleAlias from "module-alias"; +moduleAlias(__dirname + "../../../package.json"); process.on("uncaughtException", console.error); process.on("unhandledRejection", console.error);