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

@@ -1 +1,2 @@
/** @type {import('lint-staged').Config} */
module.exports = require('../../.lintstagedrc.json');

View File

@@ -1 +1,2 @@
/** @type {import('prettier').Config} */
module.exports = require('../../.prettierrc.json');

View File

@@ -71,7 +71,7 @@
"eslint": "^8.53.0",
"eslint-config-neon": "^0.1.57",
"eslint-formatter-pretty": "^5.0.0",
"prettier": "^3.0.3",
"prettier": "^3.1.0",
"tsup": "^7.2.0",
"turbo": "^1.10.17-canary.0",
"typescript": "^5.2.2"

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 {