diff options
Diffstat (limited to 'shared/extra-utils/server/plugins.ts')
-rw-r--r-- | shared/extra-utils/server/plugins.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shared/extra-utils/server/plugins.ts b/shared/extra-utils/server/plugins.ts index b6b5e3958..8f370f655 100644 --- a/shared/extra-utils/server/plugins.ts +++ b/shared/extra-utils/server/plugins.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | import { makeGetRequest, makePostBodyRequest, makePutBodyRequest } from '../requests/requests' | ||
2 | import { PluginType } from '../../models/plugins/plugin.type' | ||
3 | import { PeertubePluginIndexList } from '../../models/plugins/peertube-plugin-index-list.model' | ||
4 | import { readJSON, writeJSON } from 'fs-extra' | 1 | import { readJSON, writeJSON } from 'fs-extra' |
5 | import { ServerInfo } from './servers' | ||
6 | import { root } from '../miscs/miscs' | ||
7 | import { join } from 'path' | 2 | import { join } from 'path' |
3 | import { PeertubePluginIndexList } from '../../models/plugins/peertube-plugin-index-list.model' | ||
4 | import { PluginType } from '../../models/plugins/plugin.type' | ||
5 | import { buildServerDirectory, root } from '../miscs/miscs' | ||
6 | import { makeGetRequest, makePostBodyRequest, makePutBodyRequest } from '../requests/requests' | ||
7 | import { ServerInfo } from './servers' | ||
8 | 8 | ||
9 | function listPlugins (parameters: { | 9 | function listPlugins (parameters: { |
10 | url: string | 10 | url: string |
@@ -216,7 +216,7 @@ function getPluginsCSS (url: string) { | |||
216 | } | 216 | } |
217 | 217 | ||
218 | function getPackageJSONPath (server: ServerInfo, npmName: string) { | 218 | function getPackageJSONPath (server: ServerInfo, npmName: string) { |
219 | return join(root(), 'test' + server.internalServerNumber, 'plugins', 'node_modules', npmName, 'package.json') | 219 | return buildServerDirectory(server, join('plugins', 'node_modules', npmName, 'package.json')) |
220 | } | 220 | } |
221 | 221 | ||
222 | function updatePluginPackageJSON (server: ServerInfo, npmName: string, json: any) { | 222 | function updatePluginPackageJSON (server: ServerInfo, npmName: string, json: any) { |