aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/create-import-video-file-job.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/create-import-video-file-job.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/create-import-video-file-job.ts')
-rw-r--r--scripts/create-import-video-file-job.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/create-import-video-file-job.ts b/scripts/create-import-video-file-job.ts
index 071d36df4..97e9c7933 100644
--- a/scripts/create-import-video-file-job.ts
+++ b/scripts/create-import-video-file-job.ts
@@ -1,12 +1,9 @@
1import { registerTSPaths } from '../server/helpers/register-ts-paths'
2registerTSPaths()
3
4import { program } from 'commander' 1import { program } from 'commander'
5import { resolve } from 'path' 2import { resolve } from 'path'
6import { VideoModel } from '../server/models/video/video' 3import { isUUIDValid, toCompleteUUID } from '@server/helpers/custom-validators/misc'
7import { initDatabaseModels } from '../server/initializers/database' 4import { initDatabaseModels } from '../server/initializers/database'
8import { JobQueue } from '../server/lib/job-queue' 5import { JobQueue } from '../server/lib/job-queue'
9import { isUUIDValid, toCompleteUUID } from '@server/helpers/custom-validators/misc' 6import { VideoModel } from '../server/models/video/video'
10 7
11program 8program
12 .option('-v, --video [videoUUID]', 'Video UUID') 9 .option('-v, --video [videoUUID]', 'Video UUID')