move filtering up in order
MODIFY
bin-src/lib/getPrebuiltStorybookMetadata.ts
bin-src/lib/getPrebuiltStorybookMetadata.ts
@@ -52,11 +52,11 @@ export const getStorybookMetadataFromProjectJson = async (
version: sbProjectJson.storybookPackages[viewLayerPackage].version ?? null,
builder,
addons: Object.entries(sbProjectJson.addons)
+ .filter(([packageName]) => supportedAddons[packageName])
.map(([packageName, addon]) => ({
name: supportedAddons[packageName],
packageName,
packageVersion: addon.version,
- }))
- .filter((addon) => addon.name),
+ })),
};
};

move filtering up in order