chore(opencode): exclude .map files from CLI binary build (#25500)
This commit is contained in:
@@ -61,6 +61,7 @@ const createEmbeddedWebUIBundle = async () => {
|
|||||||
await $`bun run --cwd ${appDir} build`
|
await $`bun run --cwd ${appDir} build`
|
||||||
const files = (await Array.fromAsync(new Bun.Glob("**/*").scan({ cwd: dist })))
|
const files = (await Array.fromAsync(new Bun.Glob("**/*").scan({ cwd: dist })))
|
||||||
.map((file) => file.replaceAll("\\", "/"))
|
.map((file) => file.replaceAll("\\", "/"))
|
||||||
|
.filter((file) => !file.endsWith(".map"))
|
||||||
.sort()
|
.sort()
|
||||||
const imports = files.map((file, i) => {
|
const imports = files.map((file, i) => {
|
||||||
const spec = path.relative(dir, path.join(dist, file)).replaceAll("\\", "/")
|
const spec = path.relative(dir, path.join(dist, file)).replaceAll("\\", "/")
|
||||||
|
|||||||
Reference in New Issue
Block a user