From 81e43b794d3c653e6c45cc311fd65c29a048e086 Mon Sep 17 00:00:00 2001 From: aster-void <137767097+aster-void@users.noreply.github.com> Date: Sun, 26 Apr 2026 15:59:15 +0900 Subject: [PATCH] test: have Cloudflare build wasm in CI Drop wasm/pkg from git, install rustup + build wasm-pack output during deploy. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitignore | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2362848..ffc862c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .direnv node_modules +/wasm/pkg +/wasm/target diff --git a/package.json b/package.json index c39db50..56ccd0b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "format": "prettier --write .", "lint": "prettier --check .", - "deploy": "cd web && pnpm install && NODE_OPTIONS=--experimental-wasm-modules pnpm run build" + "deploy": "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target wasm32-unknown-unknown && . \"$HOME/.cargo/env\" && pnpm install && pnpm exec wasm-pack build --release wasm && rm -f wasm/pkg/.gitignore && cd web && pnpm install && NODE_OPTIONS=--experimental-wasm-modules pnpm run build" }, "license": "MIT", "devDependencies": {