aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/plugin
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-03 17:13:11 +0100
committerChocobozzz <me@florianbigard.com>2022-01-06 08:26:14 +0100
commitf8360396ffabd2f95e9ece9c5755173bae0114b6 (patch)
tree83467f70bb5d5c2faa61c45e1d87b538c6c8fe5e /scripts/plugin
parentcea093bca5b9d311b5c1d0539d53e965c901015b (diff)
downloadPeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.tar.gz
PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.tar.zst
PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.zip
Stop using tsconfig register
Prefer to replace paths at compile time
Diffstat (limited to 'scripts/plugin')
-rwxr-xr-xscripts/plugin/install.ts7
-rwxr-xr-xscripts/plugin/uninstall.ts5
2 files changed, 3 insertions, 9 deletions
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 @@
1import { registerTSPaths } from '../../server/helpers/register-ts-paths'
2registerTSPaths()
3
4import { initDatabaseModels } from '../../server/initializers/database'
5import { program } from 'commander' 1import { program } from 'commander'
6import { PluginManager } from '../../server/lib/plugins/plugin-manager'
7import { isAbsolute } from 'path' 2import { isAbsolute } from 'path'
3import { initDatabaseModels } from '../../server/initializers/database'
4import { PluginManager } from '../../server/lib/plugins/plugin-manager'
8 5
9program 6program
10 .option('-n, --npm-name [npmName]', 'Plugin to install') 7 .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 @@
1import { registerTSPaths } from '../../server/helpers/register-ts-paths'
2registerTSPaths()
3
4import { initDatabaseModels } from '../../server/initializers/database'
5import { program } from 'commander' 1import { program } from 'commander'
2import { initDatabaseModels } from '../../server/initializers/database'
6import { PluginManager } from '../../server/lib/plugins/plugin-manager' 3import { PluginManager } from '../../server/lib/plugins/plugin-manager'
7 4
8program 5program