diff --git a/desktop/plugins/kaios-allocations/package.json b/desktop/plugins/kaios-allocations/package.json index 374ec22d7..f55daad32 100644 --- a/desktop/plugins/kaios-allocations/package.json +++ b/desktop/plugins/kaios-allocations/package.json @@ -5,6 +5,9 @@ "license": "MIT", "title": "KaiOS: big allocations", "icon": "apps", + "keywords": [ + "flipper-plugin" + ], "bugs": { "email": "oncall+wa_kaios@xmail.facebook.com", "url": "https://fb.workplace.com/groups/wa.kaios/" diff --git a/desktop/plugins/kaios-ram/package.json b/desktop/plugins/kaios-ram/package.json index 22d4f2054..66c321c41 100644 --- a/desktop/plugins/kaios-ram/package.json +++ b/desktop/plugins/kaios-ram/package.json @@ -5,6 +5,9 @@ "license": "MIT", "title": "KaiOS RAM graph", "icon": "apps", + "keywords": [ + "flipper-plugin" + ], "bugs": { "email": "oncall+wa_kaios@xmail.facebook.com", "url": "https://fb.workplace.com/groups/wa.kaios/" diff --git a/desktop/static/compilePlugins.ts b/desktop/static/compilePlugins.ts index a55ad9b25..2c65aca38 100644 --- a/desktop/static/compilePlugins.ts +++ b/desktop/static/compilePlugins.ts @@ -210,7 +210,10 @@ function entryPointForPluginFolder(pluginPath: string) { if (packageJSON) { try { const json = JSON.parse(packageJSON); - if (json.workspaces) { + if (!json.keywords || !json.keywords.includes('flipper-plugin')) { + console.log( + `Skipping package "${json.name}", because its "keywords" field does not contain tag "flipper-plugin"`, + ); return null; } const pkg = json as PluginManifest;