fix build command
This commit is contained in:
parent
5630b0fe09
commit
26d67eb84e
2 changed files with 4 additions and 3 deletions
|
|
@ -11,8 +11,9 @@ if [ ! -f ./d2js/js/wasm/d2.wasm ]; then
|
||||||
echoerr "Error: d2.wasm is missing"
|
echoerr "Error: d2.wasm is missing"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
stat --printf="Size: %s bytes\n" ./d2js/js/wasm/d2.wasm || ls -lh ./d2js/js/wasm/d2.wasm
|
echo "d2.wasm exists. Size:"
|
||||||
|
ls -lh ./d2js/js/wasm/d2.wasm | awk '{print $5}'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd d2js/js
|
cd d2js/js
|
||||||
sh_c bun run build
|
sh_c bun build.js
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "bun build.js",
|
"build": "./make.sh build",
|
||||||
"test": "bun test test/unit",
|
"test": "bun test test/unit",
|
||||||
"test:integration": "bun run build && bun test test/integration",
|
"test:integration": "bun run build && bun test test/integration",
|
||||||
"test:all": "bun run test && bun run test:integration",
|
"test:all": "bun run test && bun run test:integration",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue