From 21848c2b1c1fbc4c6674891c8db8084679209458 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 12 Mar 2022 04:06:03 +0100 Subject: [PATCH] reference build folders in moduleAliases --- backend/package.json | 10 +++++----- backend/src/index.ts | 3 --- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/backend/package.json b/backend/package.json index 710d73a8c..79e5fd130 100644 --- a/backend/package.json +++ b/backend/package.json @@ -60,12 +60,12 @@ "typescript": "^4.3.4" }, "_moduleAliases": { - "@": "./src", - "@arg": "./src/graphql/arg", + "@": "./build/src", + "@arg": "./build/src/graphql/arg", "@dbTools": "../database/build/src", "@entity": "../database/build/entity", - "@enum": "./src/graphql/enum", - "@model": "./src/graphql/model", - "@repository": "./src/typeorm/repository" + "@enum": "./build/src/graphql/enum", + "@model": "./build/src/graphql/model", + "@repository": "./build/src/typeorm/repository" } } diff --git a/backend/src/index.ts b/backend/src/index.ts index 7c6219c07..4c08b422d 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -1,8 +1,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -// resolve @-import-aliases -import 'module-alias/register' - import createServer from './server/createServer' // config