chore(opencode): exclude .map files from CLI binary build (#25500)
This commit is contained in:
parent
b4cc7d13b6
commit
be88cd5cb9
1 changed files with 1 additions and 0 deletions
|
|
@ -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("\\", "/")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue