fix(scripts): check for TypeDoc tags when selecting plugin class (#2963)

This commit is contained in:
Cam Wiegert 2019-03-14 13:35:32 -05:00 committed by GitHub
parent e1a25af0b5
commit 06654afae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ const isClass = (child: any): boolean =>
child.kind === 128;
const isPlugin = (child: any): boolean =>
isClass(child) && Array.isArray(child.decorators) && child.decorators.some(d => d.name === 'Plugin');
isClass(child) && hasTags(child) && Array.isArray(child.decorators) && child.decorators.some(d => d.name === 'Plugin');
const hasPlugin = (child: any): boolean =>
child.children.some(isPlugin);