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

@@ -63,11 +63,15 @@ export async function getInstalledPluginDetails(
`${packageJson.name}@${packageJson.version || '0.0.0'}.js`,
)
: path.resolve(dir, packageJson.main);
const serverAddOnEntry = packageJson.serverAddOn
? path.resolve(dir, packageJson.serverAddOn)
: undefined;
return {
...pluginDetails,
isBundled: false,
isActivatable: true,
dir,
entry,
serverAddOnEntry,
};
}