mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Introduce server commands
This commit is contained in:
parent
0d8ecb7592
commit
6c5065a011
63 changed files with 688 additions and 708 deletions
|
@ -15,7 +15,6 @@ import {
|
|||
RegisteredServerSettings,
|
||||
ResultList
|
||||
} from '@shared/models'
|
||||
import { buildServerDirectory } from '../miscs'
|
||||
import { AbstractCommand, OverrideCommandOptions } from '../shared'
|
||||
|
||||
export class PluginsCommand extends AbstractCommand {
|
||||
|
@ -252,6 +251,6 @@ export class PluginsCommand extends AbstractCommand {
|
|||
}
|
||||
|
||||
private getPackageJSONPath (npmName: string) {
|
||||
return buildServerDirectory(this.server, join('plugins', 'node_modules', npmName, 'package.json'))
|
||||
return this.server.serversCommand.buildDirectory(join('plugins', 'node_modules', npmName, 'package.json'))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue