diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -1,13 +1,6 @@ | |||
1 | import { resolve } from 'path' | 1 | import { registerTSPaths } from './server/helpers/register-ts-paths' |
2 | 2 | ||
3 | const tsConfig = require('./tsconfig.json') | 3 | registerTSPaths() |
4 | const tsConfigPaths = require('tsconfig-paths') | ||
5 | |||
6 | // Thanks: https://github.com/dividab/tsconfig-paths/issues/75#issuecomment-458936883 | ||
7 | tsConfigPaths.register({ | ||
8 | baseUrl: resolve(tsConfig.compilerOptions.baseUrl || '', tsConfig.compilerOptions.outDir || ''), | ||
9 | paths: tsConfig.compilerOptions.paths | ||
10 | }) | ||
11 | 4 | ||
12 | // FIXME: https://github.com/nodejs/node/pull/16853 | 5 | // FIXME: https://github.com/nodejs/node/pull/16853 |
13 | require('tls').DEFAULT_ECDH_CURVE = 'auto' | 6 | require('tls').DEFAULT_ECDH_CURVE = 'auto' |