Skip to content

Commit

Permalink
include desktop packages in prebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
0div committed Nov 27, 2024
1 parent 18f9b9d commit ad6b87f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions apps/web/prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit ad6b87f

Please sign in to comment.