mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-07 14:53:17 +08:00
fix(scripts): check for TypeDoc tags when selecting plugin class (#2963)
This commit is contained in:
parent
e1a25af0b5
commit
06654afae3
@ -90,7 +90,7 @@ const isClass = (child: any): boolean =>
|
|||||||
child.kind === 128;
|
child.kind === 128;
|
||||||
|
|
||||||
const isPlugin = (child: any): boolean =>
|
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 =>
|
const hasPlugin = (child: any): boolean =>
|
||||||
child.children.some(isPlugin);
|
child.children.some(isPlugin);
|
||||||
|
Loading…
Reference in New Issue
Block a user