mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
fix: missing tsdocConfig in api.json preventing index generation (#10565)
This commit is contained in:
@@ -294,7 +294,11 @@ export class ApiPackage extends ApiItemContainerMixin(ApiNameMixin(ApiDocumented
|
|||||||
|
|
||||||
const tsdocConfiguration: TSDocConfiguration = new TSDocConfiguration();
|
const tsdocConfiguration: TSDocConfiguration = new TSDocConfiguration();
|
||||||
|
|
||||||
if (versionToDeserialize >= ApiJsonSchemaVersion.V_1004 && 'tsdocConfig' in jsonObject.metadata) {
|
if (
|
||||||
|
versionToDeserialize >= ApiJsonSchemaVersion.V_1004 &&
|
||||||
|
'tsdocConfig' in jsonObject.metadata &&
|
||||||
|
'$schema' in jsonObject.metadata.tsdocConfig
|
||||||
|
) {
|
||||||
const tsdocConfigFile: TSDocConfigFile = TSDocConfigFile.loadFromObject(jsonObject.metadata.tsdocConfig);
|
const tsdocConfigFile: TSDocConfigFile = TSDocConfigFile.loadFromObject(jsonObject.metadata.tsdocConfig);
|
||||||
if (tsdocConfigFile.hasErrors) {
|
if (tsdocConfigFile.hasErrors) {
|
||||||
throw new Error(`Error loading ${apiJsonFilename}:\n` + tsdocConfigFile.getErrorSummary());
|
throw new Error(`Error loading ${apiJsonFilename}:\n` + tsdocConfigFile.getErrorSummary());
|
||||||
|
|||||||
Reference in New Issue
Block a user