mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-24 16:55:30 +00:00
Fix module resolution when $CWD != .
This commit is contained in:
committed by
Rory&
parent
168758924c
commit
2feb90475e
+2
-1
@@ -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);
|
||||
|
||||
|
||||
+3
-1
@@ -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";
|
||||
|
||||
+2
-1
@@ -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");
|
||||
import "dotenv/config";
|
||||
|
||||
import { CDNServer } from "./Server";
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user