aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/plugin/install.ts7
-rwxr-xr-xscripts/plugin/uninstall.ts2
2 files changed, 7 insertions, 2 deletions
diff --git a/scripts/plugin/install.ts b/scripts/plugin/install.ts
index 0795d7c93..138f34446 100755
--- a/scripts/plugin/install.ts
+++ b/scripts/plugin/install.ts
@@ -32,5 +32,10 @@ async function run () {
32 await initDatabaseModels(true) 32 await initDatabaseModels(true)
33 33
34 const toInstall = options.npmName || options.pluginPath 34 const toInstall = options.npmName || options.pluginPath
35 await PluginManager.Instance.install(toInstall, options.pluginVersion, !!options.pluginPath) 35 await PluginManager.Instance.install({
36 toInstall,
37 version: options.pluginVersion,
38 fromDisk: !!options.pluginPath,
39 register: false
40 })
36} 41}
diff --git a/scripts/plugin/uninstall.ts b/scripts/plugin/uninstall.ts
index 152b651dd..770594685 100755
--- a/scripts/plugin/uninstall.ts
+++ b/scripts/plugin/uninstall.ts
@@ -25,5 +25,5 @@ async function run () {
25 await initDatabaseModels(true) 25 await initDatabaseModels(true)
26 26
27 const toUninstall = options.npmName 27 const toUninstall = options.npmName
28 await PluginManager.Instance.uninstall(toUninstall) 28 await PluginManager.Instance.uninstall({ npmName: toUninstall, unregister: false })
29} 29}