From 2aaa1a3fdc49be77aec5309dab5507865c38d392 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 21 Oct 2019 17:13:07 +0200 Subject: Use typescript paths in cli scripts too --- scripts/plugin/install.ts | 3 +++ scripts/plugin/uninstall.ts | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'scripts/plugin') diff --git a/scripts/plugin/install.ts b/scripts/plugin/install.ts index 5d7fe4ba0..54738f50f 100755 --- a/scripts/plugin/install.ts +++ b/scripts/plugin/install.ts @@ -1,3 +1,6 @@ +import { registerTSPaths } from '../../server/helpers/register-ts-paths' +registerTSPaths() + import { initDatabaseModels } from '../../server/initializers/database' import * as program from 'commander' import { PluginManager } from '../../server/lib/plugins/plugin-manager' diff --git a/scripts/plugin/uninstall.ts b/scripts/plugin/uninstall.ts index b5e1ddea2..c56f18466 100755 --- a/scripts/plugin/uninstall.ts +++ b/scripts/plugin/uninstall.ts @@ -1,3 +1,6 @@ +import { registerTSPaths } from '../../server/helpers/register-ts-paths' +registerTSPaths() + import { initDatabaseModels } from '../../server/initializers/database' import * as program from 'commander' import { PluginManager } from '../../server/lib/plugins/plugin-manager' @@ -19,6 +22,7 @@ run() }) async function run () { + await initDatabaseModels(true) const toUninstall = program['npmName'] -- cgit v1.2.3