aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/update-host.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-03 17:13:11 +0100
committerChocobozzz <me@florianbigard.com>2022-01-06 08:26:14 +0100
commitf8360396ffabd2f95e9ece9c5755173bae0114b6 (patch)
tree83467f70bb5d5c2faa61c45e1d87b538c6c8fe5e /scripts/update-host.ts
parentcea093bca5b9d311b5c1d0539d53e965c901015b (diff)
downloadPeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.tar.gz
PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.tar.zst
PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.zip
Stop using tsconfig register
Prefer to replace paths at compile time
Diffstat (limited to 'scripts/update-host.ts')
-rwxr-xr-xscripts/update-host.ts19
1 files changed, 8 insertions, 11 deletions
diff --git a/scripts/update-host.ts b/scripts/update-host.ts
index 66c0137d9..bb54290a4 100755
--- a/scripts/update-host.ts
+++ b/scripts/update-host.ts
@@ -1,10 +1,7 @@
1import { registerTSPaths } from '../server/helpers/register-ts-paths' 1import { updateTorrentMetadata } from '@server/helpers/webtorrent'
2registerTSPaths() 2import { getServerActor } from '@server/models/application/application'
3
4import { WEBSERVER } from '../server/initializers/constants' 3import { WEBSERVER } from '../server/initializers/constants'
5import { ActorFollowModel } from '../server/models/actor/actor-follow' 4import { initDatabaseModels } from '../server/initializers/database'
6import { VideoModel } from '../server/models/video/video'
7import { ActorModel } from '../server/models/actor/actor'
8import { 5import {
9 getLocalAccountActivityPubUrl, 6 getLocalAccountActivityPubUrl,
10 getLocalVideoActivityPubUrl, 7 getLocalVideoActivityPubUrl,
@@ -12,13 +9,13 @@ import {
12 getLocalVideoChannelActivityPubUrl, 9 getLocalVideoChannelActivityPubUrl,
13 getLocalVideoCommentActivityPubUrl 10 getLocalVideoCommentActivityPubUrl
14} from '../server/lib/activitypub/url' 11} from '../server/lib/activitypub/url'
15import { VideoShareModel } from '../server/models/video/video-share'
16import { VideoCommentModel } from '../server/models/video/video-comment'
17import { AccountModel } from '../server/models/account/account' 12import { AccountModel } from '../server/models/account/account'
13import { ActorModel } from '../server/models/actor/actor'
14import { ActorFollowModel } from '../server/models/actor/actor-follow'
15import { VideoModel } from '../server/models/video/video'
18import { VideoChannelModel } from '../server/models/video/video-channel' 16import { VideoChannelModel } from '../server/models/video/video-channel'
19import { initDatabaseModels } from '../server/initializers/database' 17import { VideoCommentModel } from '../server/models/video/video-comment'
20import { updateTorrentMetadata } from '@server/helpers/webtorrent' 18import { VideoShareModel } from '../server/models/video/video-share'
21import { getServerActor } from '@server/models/application/application'
22 19
23run() 20run()
24 .then(() => process.exit(0)) 21 .then(() => process.exit(0))