diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1a419e32fb3..63e4fb67cdf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -96,7 +96,12 @@ jobs: - uses: actions/upload-artifact@v4 with: name: kilo-cli - path: packages/opencode/dist + path: | + packages/opencode/dist + !packages/opencode/dist/**/*.map + # Binaries don't compress meaningfully; skip the ~60s zstd pass and + # reduce the chance of partial-extract bugs on the download side. + compression-level: 0 outputs: version: ${{ needs.version.outputs.version }} diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts index d54830e3914..2b2cd3149ff 100755 --- a/packages/opencode/script/build.ts +++ b/packages/opencode/script/build.ts @@ -219,7 +219,9 @@ for (const item of targets) { conditions: ["browser"], tsconfig: "./tsconfig.json", plugins: [plugin], - sourcemap: "external", // kilocode_change + // kilocode_change start - skip sourcemaps for release builds (each .js.map adds ~50 MB per target → ~600 MB total) + sourcemap: Script.release ? "none" : "external", + // kilocode_change end external: ["node-gyp", ...LanceDBRuntime.external], // kilocode_change format: "esm", minify: true,