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/plugin/install.ts | 7 ++----- scripts/plugin/uninstall.ts | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'scripts/plugin') diff --git a/scripts/plugin/install.ts b/scripts/plugin/install.ts index de045c2d2..0795d7c93 100755 --- a/scripts/plugin/install.ts +++ b/scripts/plugin/install.ts @@ -1,10 +1,7 @@ -import { registerTSPaths } from '../../server/helpers/register-ts-paths' -registerTSPaths() - -import { initDatabaseModels } from '../../server/initializers/database' import { program } from 'commander' -import { PluginManager } from '../../server/lib/plugins/plugin-manager' import { isAbsolute } from 'path' +import { initDatabaseModels } from '../../server/initializers/database' +import { PluginManager } from '../../server/lib/plugins/plugin-manager' program .option('-n, --npm-name [npmName]', 'Plugin to install') diff --git a/scripts/plugin/uninstall.ts b/scripts/plugin/uninstall.ts index 1e14cc18f..152b651dd 100755 --- a/scripts/plugin/uninstall.ts +++ b/scripts/plugin/uninstall.ts @@ -1,8 +1,5 @@ -import { registerTSPaths } from '../../server/helpers/register-ts-paths' -registerTSPaths() - -import { initDatabaseModels } from '../../server/initializers/database' import { program } from 'commander' +import { initDatabaseModels } from '../../server/initializers/database' import { PluginManager } from '../../server/lib/plugins/plugin-manager' program -- cgit v1.2.3