aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/prune-storage.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/prune-storage.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/prune-storage.ts')
-rwxr-xr-xscripts/prune-storage.ts27
1 files changed, 12 insertions, 15 deletions
diff --git a/scripts/prune-storage.ts b/scripts/prune-storage.ts
index 12d78fdc6..bb1e8e024 100755
--- a/scripts/prune-storage.ts
+++ b/scripts/prune-storage.ts
@@ -1,22 +1,19 @@
1import { registerTSPaths } from '../server/helpers/register-ts-paths'
2registerTSPaths()
3
4import { start, get } from 'prompt'
5import { join, basename } from 'path'
6import { CONFIG } from '../server/initializers/config'
7import { VideoModel } from '../server/models/video/video'
8import { initDatabaseModels } from '../server/initializers/database'
9import { readdir, remove, stat } from 'fs-extra'
10import { VideoRedundancyModel } from '../server/models/redundancy/video-redundancy'
11import { map } from 'bluebird' 1import { map } from 'bluebird'
12import { getUUIDFromFilename } from '../server/helpers/utils' 2import { readdir, remove, stat } from 'fs-extra'
13import { ThumbnailModel } from '../server/models/video/thumbnail'
14import { ActorImageModel } from '../server/models/actor/actor-image'
15import { uniq, values } from 'lodash' 3import { uniq, values } from 'lodash'
16import { ThumbnailType } from '@shared/models' 4import { basename, join } from 'path'
17import { VideoFileModel } from '@server/models/video/video-file' 5import { get, start } from 'prompt'
18import { HLS_REDUNDANCY_DIRECTORY, HLS_STREAMING_PLAYLIST_DIRECTORY } from '@server/initializers/constants' 6import { HLS_REDUNDANCY_DIRECTORY, HLS_STREAMING_PLAYLIST_DIRECTORY } from '@server/initializers/constants'
7import { VideoFileModel } from '@server/models/video/video-file'
19import { VideoStreamingPlaylistModel } from '@server/models/video/video-streaming-playlist' 8import { VideoStreamingPlaylistModel } from '@server/models/video/video-streaming-playlist'
9import { ThumbnailType } from '@shared/models'
10import { getUUIDFromFilename } from '../server/helpers/utils'
11import { CONFIG } from '../server/initializers/config'
12import { initDatabaseModels } from '../server/initializers/database'
13import { ActorImageModel } from '../server/models/actor/actor-image'
14import { VideoRedundancyModel } from '../server/models/redundancy/video-redundancy'
15import { ThumbnailModel } from '../server/models/video/thumbnail'
16import { VideoModel } from '../server/models/video/video'
20 17
21run() 18run()
22 .then(() => process.exit(0)) 19 .then(() => process.exit(0))