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/parse-log.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/parse-log.ts')
-rwxr-xr-x | scripts/parse-log.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts index 6cd3a1860..d3c93cee5 100755 --- a/scripts/parse-log.ts +++ b/scripts/parse-log.ts | |||
@@ -1,15 +1,12 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
4 | import { program } from 'commander' | 1 | import { program } from 'commander' |
5 | import { createReadStream, readdir } from 'fs-extra' | 2 | import { createReadStream, readdir } from 'fs-extra' |
6 | import { join } from 'path' | 3 | import { join } from 'path' |
7 | import { createInterface } from 'readline' | 4 | import { createInterface } from 'readline' |
5 | import { format as sqlFormat } from 'sql-formatter' | ||
6 | import { inspect } from 'util' | ||
8 | import * as winston from 'winston' | 7 | import * as winston from 'winston' |
9 | import { labelFormatter, mtimeSortFilesDesc } from '../server/helpers/logger' | 8 | import { labelFormatter, mtimeSortFilesDesc } from '../server/helpers/logger' |
10 | import { CONFIG } from '../server/initializers/config' | 9 | import { CONFIG } from '../server/initializers/config' |
11 | import { inspect } from 'util' | ||
12 | import { format as sqlFormat } from 'sql-formatter' | ||
13 | 10 | ||
14 | program | 11 | program |
15 | .option('-l, --level [level]', 'Level log (debug/info/warn/error)') | 12 | .option('-l, --level [level]', 'Level log (debug/info/warn/error)') |