build: multi-config build and dep update

This commit is contained in:
iCrawl
2023-11-14 01:26:22 +01:00
parent 75fc7f2454
commit 8f432400d8
124 changed files with 566 additions and 252 deletions

View File

@@ -30,7 +30,7 @@ export async function build({ input, custom: customDocs, root, output, newOutput
}
} else {
console.log('Parsing JSDocs in source files...');
// eslint-disable-next-line n/no-sync
data = jsdoc2md.getTemplateDataSync({ files: input }) as (ChildTypes & RootTypes)[];
console.log(`${data.length} JSDoc items parsed.`);
}

View File

@@ -99,23 +99,23 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
type: child.type
? new DocumentedVarType({ names: [parseType(child.type)] }, this.config).serialize()
: child.kindString === 'Method'
? new DocumentedVarType(
{
names: [
parseType({
type: 'reflection',
declaration: child,
}),
],
description: child.signatures?.[0]?.comment?.blockTags
?.find((block) => block.tag === '@returns')
// eslint-disable-next-line no-param-reassign
?.content.reduce((prev, curr) => (prev += curr.text), '')
.trim(),
},
this.config,
).serialize()
: undefined,
? new DocumentedVarType(
{
names: [
parseType({
type: 'reflection',
declaration: child,
}),
],
description: child.signatures?.[0]?.comment?.blockTags
?.find((block) => block.tag === '@returns')
// eslint-disable-next-line no-param-reassign
?.content.reduce((prev, curr) => (prev += curr.text), '')
.trim(),
},
this.config,
).serialize()
: undefined,
}));
return {