diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-03 17:13:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-06 08:26:14 +0100 |
commit | f8360396ffabd2f95e9ece9c5755173bae0114b6 (patch) | |
tree | 83467f70bb5d5c2faa61c45e1d87b538c6c8fe5e /scripts/create-move-video-storage-job.ts | |
parent | cea093bca5b9d311b5c1d0539d53e965c901015b (diff) | |
download | PeerTube-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/create-move-video-storage-job.ts')
-rw-r--r-- | scripts/create-move-video-storage-job.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/create-move-video-storage-job.ts b/scripts/create-move-video-storage-job.ts index 90c84b1d7..7465c1ce0 100644 --- a/scripts/create-move-video-storage-job.ts +++ b/scripts/create-move-video-storage-job.ts | |||
@@ -1,13 +1,10 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
4 | import { program } from 'commander' | 1 | import { program } from 'commander' |
5 | import { VideoModel } from '@server/models/video/video' | 2 | import { CONFIG } from '@server/initializers/config' |
6 | import { initDatabaseModels } from '@server/initializers/database' | 3 | import { initDatabaseModels } from '@server/initializers/database' |
7 | import { VideoState, VideoStorage } from '@shared/models' | ||
8 | import { moveToExternalStorageState } from '@server/lib/video-state' | ||
9 | import { JobQueue } from '@server/lib/job-queue' | 4 | import { JobQueue } from '@server/lib/job-queue' |
10 | import { CONFIG } from '@server/initializers/config' | 5 | import { moveToExternalStorageState } from '@server/lib/video-state' |
6 | import { VideoModel } from '@server/models/video/video' | ||
7 | import { VideoState, VideoStorage } from '@shared/models' | ||
11 | 8 | ||
12 | program | 9 | program |
13 | .description('Move videos to another storage.') | 10 | .description('Move videos to another storage.') |