mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 16:31:50 +00:00
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`
|
||||
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("\\", "/")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue