aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/plugin')
-rwxr-xr-xscripts/plugin/install.ts3
-rwxr-xr-xscripts/plugin/uninstall.ts4
2 files changed, 7 insertions, 0 deletions
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 @@
1import { registerTSPaths } from '../../server/helpers/register-ts-paths'
2registerTSPaths()
3
1import { initDatabaseModels } from '../../server/initializers/database' 4import { initDatabaseModels } from '../../server/initializers/database'
2import * as program from 'commander' 5import * as program from 'commander'
3import { PluginManager } from '../../server/lib/plugins/plugin-manager' 6import { 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 @@
1import { registerTSPaths } from '../../server/helpers/register-ts-paths'
2registerTSPaths()
3
1import { initDatabaseModels } from '../../server/initializers/database' 4import { initDatabaseModels } from '../../server/initializers/database'
2import * as program from 'commander' 5import * as program from 'commander'
3import { PluginManager } from '../../server/lib/plugins/plugin-manager' 6import { PluginManager } from '../../server/lib/plugins/plugin-manager'
@@ -19,6 +22,7 @@ run()
19 }) 22 })
20 23
21async function run () { 24async function run () {
25
22 await initDatabaseModels(true) 26 await initDatabaseModels(true)
23 27
24 const toUninstall = program['npmName'] 28 const toUninstall = program['npmName']