commit
7e3ae79797
2 changed files with 5 additions and 4 deletions
|
|
@ -11,8 +11,9 @@ if [ ! -f ./d2js/js/wasm/d2.wasm ]; then
|
|||
echoerr "Error: d2.wasm is missing"
|
||||
exit 1
|
||||
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
|
||||
|
||||
cd d2js/js
|
||||
sh_c bun run build
|
||||
sh_c bun build.js
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@
|
|||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "bun build.js",
|
||||
"build": "./make.sh build",
|
||||
"test": "bun test test/unit",
|
||||
"test:integration": "bun run build && bun test test/integration",
|
||||
"test:integration": "bun test test/integration",
|
||||
"test:all": "bun run test && bun run test:integration",
|
||||
"dev": "bun --watch dev-server.js",
|
||||
"prepublishOnly": "./make.sh"
|
||||
|
|
|
|||
Loading…
Reference in a new issue