diff --git a/tools/adev-api-extraction/index.mts b/tools/adev-api-extraction/index.mts index 5e72dc8db003..e8ad78c5c65b 100644 --- a/tools/adev-api-extraction/index.mts +++ b/tools/adev-api-extraction/index.mts @@ -92,26 +92,30 @@ function main() { const normalized = moduleName.replace('@', '').replace(/[\/]/g, '_'); - const output = JSON.stringify({ - repo, - moduleLabel: moduleLabel || moduleName, - moduleName: moduleName, - normalizedModuleName: normalized, - entries: combinedEntries, - symbols: [ - // Symbols referenced, originating from other packages - ...apiDoc.symbols.entries(), - - // Exported symbols from the current package - ...apiDoc.entries.map(entry => [entry.name, moduleName]), - - // Also doing it for every member of classes/interfaces - ...apiDoc.entries.flatMap(entry => [ - [entry.name, moduleName], - ...getEntriesFromMembers(entry).map(member => [member, moduleName]), - ]), - ], - } as EntryCollection); + const output = JSON.stringify( + { + repo, + moduleLabel: moduleLabel || moduleName, + moduleName: moduleName, + normalizedModuleName: normalized, + entries: combinedEntries, + symbols: [ + // Symbols referenced, originating from other packages + ...apiDoc.symbols.entries(), + + // Exported symbols from the current package + ...apiDoc.entries.map(entry => [entry.name, moduleName]), + + // Also doing it for every member of classes/interfaces + ...apiDoc.entries.flatMap(entry => [ + [entry.name, moduleName], + ...getEntriesFromMembers(entry).map(member => [member, moduleName]), + ]), + ], + } as EntryCollection, + null, + 2, + ); writeFileSync(outputFilenameExecRootRelativePath, output, {encoding: 'utf8'}); }