Update build scripts to support bundling server add-ons

Summary: Summary

Reviewed By: nikoant

Differential Revision: D34170565

fbshipit-source-id: be9904809bf33e85536a4c6ead0e753ef05209ff
This commit is contained in:
Andrey Goncharov
2022-02-28 03:50:34 -08:00
committed by Facebook GitHub Bot
parent 47dd675dc8
commit 5cdb7c952e
9 changed files with 165 additions and 51 deletions

View File

@@ -13,6 +13,7 @@ export interface PluginDetails {
version: string;
source: string;
main: string;
serverAddOnSource?: string;
serverAddOn?: string;
id: string;
gatekeeper?: string;
@@ -84,6 +85,7 @@ export interface InstalledPluginDetails extends ConcretePluginDetails {
isActivatable: true;
dir: string;
entry: string;
serverAddOnEntry?: string;
}
// Describes plugin physically available for activation in Flipper.
@@ -162,6 +164,7 @@ function getPluginDetailsV2(packageJson: any): PluginDetails {
main: packageJson.main,
serverAddOn: packageJson.serverAddOn,
source: packageJson.flipperBundlerEntry,
serverAddOnSource: packageJson.flipperBundlerEntryServerAddOn,
id: packageJson.id || packageJson.name,
gatekeeper: packageJson.gatekeeper,
icon: packageJson.icon,