Explorar o código

chore(opencode): exclude .map files from CLI binary build (#25500)

Youssef Achy hai 3 meses
pai
achega
be88cd5cb9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/opencode/script/build.ts

+ 1 - 0
packages/opencode/script/build.ts

@@ -61,6 +61,7 @@ const createEmbeddedWebUIBundle = async () => {
   await $`bun run --cwd ${appDir} build`
   const files = (await Array.fromAsync(new Bun.Glob("**/*").scan({ cwd: dist })))
     .map((file) => file.replaceAll("\\", "/"))
+    .filter((file) => !file.endsWith(".map"))
     .sort()
   const imports = files.map((file, i) => {
     const spec = path.relative(dir, path.join(dist, file)).replaceAll("\\", "/")