From d3268e9ed0fb4957259be3d42ea722e36c705a85 Mon Sep 17 00:00:00 2001 From: Andrey Nikitin Date: Thu, 4 Dec 2025 16:18:58 +0000 Subject: [PATCH] issue #codio-17290. reduce publish --- src/lib/tools.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/tools.ts b/src/lib/tools.ts index dde7464..a10af07 100644 --- a/src/lib/tools.ts +++ b/src/lib/tools.ts @@ -242,9 +242,7 @@ async function updateMetadata(structure, dstDir) { if (item.children) { const filePath = path.join(dstDir, GUIDES_CONTENT_DIR, item['section_path'], INDEX_METADATA_FILE) const data = { - id: item.id, - title: item.title, - type: item.type, + ..._.omit(item, 'children'), order: _.map(item.children, child => child.name) } await fs.promises.writeFile(filePath, JSON.stringify(data, undefined, ' '))