Deprecate kaios-portal

Reviewed By: passy

Differential Revision: D36807506

fbshipit-source-id: 660f334a46dbf7847c90ce6e67f2dc974c1daf90
This commit is contained in:
Andrey Goncharov
2022-06-07 04:00:02 -07:00
committed by Facebook GitHub Bot
parent 9cc8e4076f
commit 2b16916a85
3 changed files with 13 additions and 2 deletions

View File

@@ -77,7 +77,11 @@ async function entryPointForPluginFolder(
}
}),
)
.then((plugins) => plugins.filter(notNull))
.then((plugins) =>
plugins
.filter(notNull)
.filter(({deprecated}) => typeof deprecated !== 'string'),
)
.then((plugins) =>
plugins.reduce<{[key: string]: InstalledPluginDetails}>((acc, cv) => {
acc[cv!.name] = cv!;