Render external dep exports

This commit is contained in:
Fabio Berger
2018-08-16 14:57:45 -07:00
parent bf9ee82d9f
commit 8e3df2b5ae
5 changed files with 50 additions and 6 deletions

View File

@@ -221,7 +221,7 @@ export async function generateAndUploadDocsAsync(packageName: string, isStaging:
);
}
const externalExportsToLink: { [externalExport: string]: string } = {};
const externalExportToLink: { [externalExport: string]: string } = {};
const externalExportsWithoutLinks: string[] = [];
_.each(externalExports, externalExport => {
const linkIfExists = EXTERNAL_EXPORT_TO_LINK[externalExport];
@@ -229,7 +229,7 @@ export async function generateAndUploadDocsAsync(packageName: string, isStaging:
externalExportsWithoutLinks.push(externalExport);
return;
}
externalExportsToLink[externalExport] = linkIfExists;
externalExportToLink[externalExport] = linkIfExists;
});
if (!_.isEmpty(externalExportsWithoutLinks)) {
throw new Error(
@@ -246,7 +246,7 @@ export async function generateAndUploadDocsAsync(packageName: string, isStaging:
exportPathToTypedocNames,
exportPathOrder,
externalTypeToLink: EXTERNAL_TYPE_TO_LINK,
externalExportsToLink,
externalExportToLink,
},
typedocJson: finalTypeDocOutput,
};