Read description from plugin's package json
Summary: Added "description" field to PluginDetails interface and read it from package.json Reviewed By: passy Differential Revision: D21927391 fbshipit-source-id: 0513637d3afa3d8be8e2bc8ee87cc1d77c5e2250
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9324bef8cc
commit
907cb9e3cc
@@ -49,6 +49,7 @@ async function getPluginDetailsV1(
|
||||
gatekeeper: packageJson.gatekeeper,
|
||||
icon: packageJson.icon,
|
||||
title: packageJson.title || packageJson.name,
|
||||
description: packageJson.description,
|
||||
category: packageJson.category,
|
||||
bugs: packageJson.bugs,
|
||||
};
|
||||
@@ -71,6 +72,7 @@ async function getPluginDetailsV2(
|
||||
icon: packageJson.icon,
|
||||
title:
|
||||
packageJson.title || packageJson.id || getTitleFromName(packageJson.name),
|
||||
description: packageJson.description,
|
||||
category: packageJson.category,
|
||||
bugs: packageJson.bugs,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user