From 2feb90475e12d23e892aef37bb01e2361dac4bc6 Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Fri, 25 Oct 2024 18:57:29 +0200 Subject: Fix module resolution when $CWD != . --- src/api/start.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/api') diff --git a/src/api/start.ts b/src/api/start.ts index 088c6f8de..4a3f858eb 100644 --- a/src/api/start.ts +++ b/src/api/start.ts @@ -16,7 +16,8 @@ along with this program. If not, see . */ -require("module-alias/register"); +import moduleAlias from "module-alias"; +moduleAlias(__dirname + "../../../package.json"); process.on("uncaughtException", console.error); process.on("unhandledRejection", console.error); -- cgit 1.5.1