show plugin author names

This commit is contained in:
Eugene Pankov
2017-07-05 15:31:23 +02:00
parent 94217f0b01
commit 536d9537ff
3 changed files with 21 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ export interface IPluginInfo {
packageName: string
isBuiltin: boolean
version: string
author: string
homepage?: string
path?: string
info?: any
@@ -116,12 +117,15 @@ export async function findPlugins (): Promise<IPluginInfo[]> {
if (!info.keywords || info.keywords.indexOf('terminus-plugin') === -1) {
continue
}
let author = info.author
author = author.name || author
foundPlugins.push({
name: pluginName.substring('terminus-'.length),
packageName: pluginName,
isBuiltin: pluginDir === builtinPluginsPath,
version: info.version,
description: info.description,
author,
path: pluginPath,
info,
})