From 9068107f5a771c0a1369c7a0326eb73b9192b66d Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sat, 1 Jun 2019 08:37:37 -0700 Subject: [PATCH] Remove path mapping to self modules This would cause imports in the common module to reference out/ instead of src/, this leads to weird behavior when errors are introduced. --- src/common/tsconfig.json | 5 +---- src/core/tsconfig.json | 3 +-- src/ui/tsconfig.json | 3 +-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/common/tsconfig.json b/src/common/tsconfig.json index 82113a9e..dca04f9a 100644 --- a/src/common/tsconfig.json +++ b/src/common/tsconfig.json @@ -5,10 +5,7 @@ "types": [ "../../node_modules/@types/mocha" ], - "baseUrl": "..", - "paths": { - "common/*": [ "./common/*" ] - } + "baseUrl": ".." }, "include": [ "./**/*" ] } diff --git a/src/core/tsconfig.json b/src/core/tsconfig.json index f0ee3fbb..5eeac7bc 100644 --- a/src/core/tsconfig.json +++ b/src/core/tsconfig.json @@ -7,8 +7,7 @@ ], "baseUrl": "..", "paths": { - "common/*": [ "./common/*" ], - "core/*": [ "./core/*" ] + "common/*": [ "./common/*" ] } }, "include": [ "./**/*" ], diff --git a/src/ui/tsconfig.json b/src/ui/tsconfig.json index 4e7a2a94..06818413 100644 --- a/src/ui/tsconfig.json +++ b/src/ui/tsconfig.json @@ -11,8 +11,7 @@ ], "baseUrl": "..", "paths": { - "common/*": [ "./common/*" ], - "ui/*": [ "./ui/*" ] + "common/*": [ "./common/*" ] } }, "include": [ "./**/*" ],