X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.ts;h=b2541eed680c525a033ec3825de69245e96fe975;hb=aedf50d142c8dce94aba6ad118b242fb826660a4;hp=5cfa09445537215fd3f9c772955d45a02ddd1b9a;hpb=8d5e65349deebd499c0be10fe02d535a77d58ddb;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server.ts b/server.ts index 5cfa09445..b2541eed6 100644 --- a/server.ts +++ b/server.ts @@ -1,12 +1,11 @@ -require('module-alias/register') +import { registerTSPaths } from './server/helpers/register-ts-paths' -// FIXME: https://github.com/nodejs/node/pull/16853 -import { PluginManager } from './server/lib/plugins/plugin-manager' +registerTSPaths() +// FIXME: https://github.com/nodejs/node/pull/16853 require('tls').DEFAULT_ECDH_CURVE = 'auto' import { isTestInstance } from './server/helpers/core-utils' - if (isTestInstance()) { require('source-map-support').install() } @@ -121,6 +120,7 @@ import { PeerTubeSocket } from './server/lib/peertube-socket' import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls' import { PluginsCheckScheduler } from './server/lib/schedulers/plugins-check-scheduler' import { Hooks } from './server/lib/plugins/hooks' +import { PluginManager } from './server/lib/plugins/plugin-manager' // ----------- Command line -----------