aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts11
1 files changed, 2 insertions, 9 deletions
diff --git a/server.ts b/server.ts
index b49d10344..b2541eed6 100644
--- a/server.ts
+++ b/server.ts
@@ -1,13 +1,6 @@
1import { resolve } from 'path' 1import { registerTSPaths } from './server/helpers/register-ts-paths'
2 2
3const tsConfig = require('./tsconfig.json') 3registerTSPaths()
4const tsConfigPaths = require('tsconfig-paths')
5
6// Thanks: https://github.com/dividab/tsconfig-paths/issues/75#issuecomment-458936883
7tsConfigPaths.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
13require('tls').DEFAULT_ECDH_CURVE = 'auto' 6require('tls').DEFAULT_ECDH_CURVE = 'auto'