From f8360396ffabd2f95e9ece9c5755173bae0114b6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 3 Jan 2022 17:13:11 +0100 Subject: Stop using tsconfig register Prefer to replace paths at compile time --- shared/core-utils/common/path.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shared/core-utils/common') diff --git a/shared/core-utils/common/path.ts b/shared/core-utils/common/path.ts index ec507538b..006505316 100644 --- a/shared/core-utils/common/path.ts +++ b/shared/core-utils/common/path.ts @@ -7,6 +7,8 @@ function root () { rootPath = __dirname + if (basename(rootPath) === 'tools') rootPath = resolve(rootPath, '..') + if (basename(rootPath) === 'scripts') rootPath = resolve(rootPath, '..') if (basename(rootPath) === 'common') rootPath = resolve(rootPath, '..') if (basename(rootPath) === 'core-utils') rootPath = resolve(rootPath, '..') if (basename(rootPath) === 'shared') rootPath = resolve(rootPath, '..') -- cgit v1.2.3