diff options
Diffstat (limited to 'server/helpers/register-ts-paths.ts')
-rw-r--r-- | server/helpers/register-ts-paths.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/server/helpers/register-ts-paths.ts b/server/helpers/register-ts-paths.ts deleted file mode 100644 index eec7fed3e..000000000 --- a/server/helpers/register-ts-paths.ts +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | import { resolve } from 'path' | ||
2 | import tsConfigPaths = require('tsconfig-paths') | ||
3 | |||
4 | const tsConfig = require('../../tsconfig.json') | ||
5 | |||
6 | function registerTSPaths () { | ||
7 | // Thanks: https://github.com/dividab/tsconfig-paths/issues/75#issuecomment-458936883 | ||
8 | tsConfigPaths.register({ | ||
9 | baseUrl: resolve(tsConfig.compilerOptions.baseUrl || '', tsConfig.compilerOptions.outDir || ''), | ||
10 | paths: tsConfig.compilerOptions.paths | ||
11 | }) | ||
12 | } | ||
13 | |||
14 | export { | ||
15 | registerTSPaths | ||
16 | } | ||