1
0
Fork 0
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:
Chocobozzz 2021-07-13 09:43:59 +02:00
parent 0d8ecb7592
commit 6c5065a011
No known key found for this signature in database
GPG key ID: 583A612D890159BE
63 changed files with 688 additions and 708 deletions

View file

@ -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'))
}
}