From 2aaa1a3fdc49be77aec5309dab5507865c38d392 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 21 Oct 2019 17:13:07 +0200 Subject: Use typescript paths in cli scripts too --- server.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'server.ts') diff --git a/server.ts b/server.ts index b49d10344..b2541eed6 100644 --- a/server.ts +++ b/server.ts @@ -1,13 +1,6 @@ -import { resolve } from 'path' +import { registerTSPaths } from './server/helpers/register-ts-paths' -const tsConfig = require('./tsconfig.json') -const tsConfigPaths = require('tsconfig-paths') - -// Thanks: https://github.com/dividab/tsconfig-paths/issues/75#issuecomment-458936883 -tsConfigPaths.register({ - baseUrl: resolve(tsConfig.compilerOptions.baseUrl || '', tsConfig.compilerOptions.outDir || ''), - paths: tsConfig.compilerOptions.paths -}) +registerTSPaths() // FIXME: https://github.com/nodejs/node/pull/16853 require('tls').DEFAULT_ECDH_CURVE = 'auto' -- cgit v1.2.3