diff --git a/d2js/js/ci/build.sh b/d2js/js/ci/build.sh index d5c2f6658d..7768c5fc96 100755 --- a/d2js/js/ci/build.sh +++ b/d2js/js/ci/build.sh @@ -4,7 +4,8 @@ set -eu cd -- "$(dirname "$0")/.." cd ../.. -sh_c "GOOS=js GOARCH=wasm go build -ldflags='-s -w' -trimpath -o ./d2js/js/wasm/d2.wasm" +sh_c "GOOS=js GOARCH=wasm go build -ldflags='-s -w' -trimpath -o main.wasm ./d2js" +sh_c "mv main.wasm ./d2js/js/wasm/d2.wasm" cd d2js/js sh_c bun run build