aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-10-21 17:13:07 +0200
committerChocobozzz <me@florianbigard.com>2019-10-21 17:13:22 +0200
commit2aaa1a3fdc49be77aec5309dab5507865c38d392 (patch)
treebc83c5b1ff49faf03461c78a110e0a5613343c31 /server.ts
parent576ddf645ff2223126d28ef172bb6388602c35f4 (diff)
downloadPeerTube-2aaa1a3fdc49be77aec5309dab5507865c38d392.tar.gz
PeerTube-2aaa1a3fdc49be77aec5309dab5507865c38d392.tar.zst
PeerTube-2aaa1a3fdc49be77aec5309dab5507865c38d392.zip
Use typescript paths in cli scripts too
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'