summary refs log tree commit diff
path: root/src/bundle
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/bundle
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/bundle')
-rw-r--r--src/bundle/start.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bundle/start.ts b/src/bundle/start.ts

index df50fd4ca..fe177cbc7 100644 --- a/src/bundle/start.ts +++ b/src/bundle/start.ts
@@ -17,7 +17,9 @@ */ // process.env.MONGOMS_DEBUG = "true"; -require("module-alias/register"); +import moduleAlias from "module-alias"; +moduleAlias(__dirname + "../../../package.json"); + import "reflect-metadata"; import cluster, { Worker } from "cluster"; import os from "os";