1 import { resolve } from 'path'
2 import tsConfigPaths = require('tsconfig-paths')
4 const tsConfig = require('../../tsconfig.json')
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