From f8360396ffabd2f95e9ece9c5755173bae0114b6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 3 Jan 2022 17:13:11 +0100 Subject: Stop using tsconfig register Prefer to replace paths at compile time --- scripts/migrations/peertube-2.1.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'scripts/migrations/peertube-2.1.ts') diff --git a/scripts/migrations/peertube-2.1.ts b/scripts/migrations/peertube-2.1.ts index 4bbc203c1..2e316d996 100644 --- a/scripts/migrations/peertube-2.1.ts +++ b/scripts/migrations/peertube-2.1.ts @@ -1,15 +1,12 @@ -import { registerTSPaths } from '../../server/helpers/register-ts-paths' -registerTSPaths() - -import { initDatabaseModels, sequelizeTypescript } from '../../server/initializers/database' -import * as Sequelize from 'sequelize' -import { join } from 'path' -import { HLS_STREAMING_PLAYLIST_DIRECTORY, STATIC_PATHS, WEBSERVER } from '@server/initializers/constants' import { pathExists, stat, writeFile } from 'fs-extra' -import { createTorrentPromise } from '@server/helpers/webtorrent' -import { CONFIG } from '@server/initializers/config' import parseTorrent from 'parse-torrent' +import { join } from 'path' +import * as Sequelize from 'sequelize' import { logger } from '@server/helpers/logger' +import { createTorrentPromise } from '@server/helpers/webtorrent' +import { CONFIG } from '@server/initializers/config' +import { HLS_STREAMING_PLAYLIST_DIRECTORY, STATIC_PATHS, WEBSERVER } from '@server/initializers/constants' +import { initDatabaseModels, sequelizeTypescript } from '../../server/initializers/database' run() .then(() => process.exit(0)) -- cgit v1.2.3