mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
build: multi-config build and dep update
This commit is contained in:
@@ -1 +1,2 @@
|
||||
/** @type {import('lint-staged').Config} */
|
||||
module.exports = require('../../.lintstagedrc.json');
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
/** @type {import('prettier').Config} */
|
||||
module.exports = require('../../.prettierrc.json');
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.`);
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user