Skip to content

Commit 7776223

Browse files
committed
fix: core json tests
1 parent baa1847 commit 7776223

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/generators/legacy-json/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default {
7878
for (const section of chunkResult) {
7979
const out = join(output, `${section.api}.json`);
8080

81-
await writeFile(out, JSON.stringify(section));
81+
await writeFile(out, JSON.stringify(section, null, 2));
8282
}
8383
}
8484

src/generators/legacy-json/utils/buildSection.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ export const createSectionBuilder = () => {
199199
return (head, entries) => {
200200
const rootModule = {
201201
type: 'module',
202-
api: head.api,
203202
source: head.api_doc_source,
204203
};
205204

0 commit comments

Comments
 (0)