From ad6b87f025eda28c59b545a5936ccdbafb3a1418 Mon Sep 17 00:00:00 2001 From: 0div Date: Tue, 26 Nov 2024 16:59:44 -0800 Subject: [PATCH] include desktop packages in prebuild --- apps/web/prebuild.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/web/prebuild.js b/apps/web/prebuild.js index 65b50c5fb..12a315914 100644 --- a/apps/web/prebuild.js +++ b/apps/web/prebuild.js @@ -66,7 +66,9 @@ function getSubModules(pkg, href, dirPath) { const subModules = [] for (let i = 0; i < lines.length; i++) { const line = lines[i] - if (pkg === 'js-sdk' || pkg === 'code-interpreter-js-sdk') { + if ( + ['js-sdk', 'code-interpreter-js-sdk', 'desktop-js-sdk'].includes(pkg) + ) { if (line.startsWith('### ')) { let title = line.slice(3).trim() // Remove backslashes from title @@ -79,9 +81,12 @@ function getSubModules(pkg, href, dirPath) { } } } else if ( - pkg === 'python-sdk' || - pkg === 'cli' || - pkg === 'code-interpreter-python-sdk' + [ + 'python-sdk', + 'cli', + 'code-interpreter-python-sdk', + 'desktop-python-sdk', + ].includes(pkg) ) { if (line.startsWith('## ')) { const title = line.slice(2).trim()