From 41fb13c330de629df2d23379209e79c7af0f2e9a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 Aug 2021 14:32:44 +0200 Subject: esModuleInterop to true --- server/tools/peertube-auth.ts | 5 +++-- server/tools/peertube-import-videos.ts | 3 ++- server/tools/peertube-plugins.ts | 2 +- server/tools/peertube-redundancy.ts | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) (limited to 'server/tools') diff --git a/server/tools/peertube-auth.ts b/server/tools/peertube-auth.ts index b9f4ef4f8..afa19ee08 100644 --- a/server/tools/peertube-auth.ts +++ b/server/tools/peertube-auth.ts @@ -4,10 +4,11 @@ import { registerTSPaths } from '../helpers/register-ts-paths' registerTSPaths() import { OptionValues, program } from 'commander' -import * as prompt from 'prompt' import { assignToken, buildServer, getNetrc, getSettings, writeSettings } from './cli' import { isUserUsernameValid } from '../helpers/custom-validators/users' -import * as CliTable3 from 'cli-table3' +import CliTable3 from 'cli-table3' + +import prompt = require('prompt') async function delInstance (url: string) { const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ]) diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts index 488109b7a..758b561e1 100644 --- a/server/tools/peertube-import-videos.ts +++ b/server/tools/peertube-import-videos.ts @@ -6,7 +6,6 @@ import { accessSync, constants } from 'fs' import { remove } from 'fs-extra' import { truncate } from 'lodash' import { join } from 'path' -import * as prompt from 'prompt' import { promisify } from 'util' import { YoutubeDL } from '@server/helpers/youtube-dl' import { sha256 } from '../helpers/core-utils' @@ -22,6 +21,8 @@ import { } from './cli' import { PeerTubeServer } from '@shared/extra-utils' +import prompt = require('prompt') + const processOptions = { maxBuffer: Infinity } diff --git a/server/tools/peertube-plugins.ts b/server/tools/peertube-plugins.ts index d9c285115..ae625114d 100644 --- a/server/tools/peertube-plugins.ts +++ b/server/tools/peertube-plugins.ts @@ -7,7 +7,7 @@ import { program, Command, OptionValues } from 'commander' import { assignToken, buildServer, getServerCredentials } from './cli' import { PluginType } from '../../shared/models' import { isAbsolute } from 'path' -import * as CliTable3 from 'cli-table3' +import CliTable3 from 'cli-table3' program .name('plugins') diff --git a/server/tools/peertube-redundancy.ts b/server/tools/peertube-redundancy.ts index 73b026ac8..7e27ca49e 100644 --- a/server/tools/peertube-redundancy.ts +++ b/server/tools/peertube-redundancy.ts @@ -1,7 +1,7 @@ import { registerTSPaths } from '../helpers/register-ts-paths' registerTSPaths() -import * as CliTable3 from 'cli-table3' +import CliTable3 from 'cli-table3' import { Command, program } from 'commander' import { uniq } from 'lodash' import { URL } from 'url' -- cgit v1.2.3