New-Item -ItemType Directory -Force -Path ./wasm wasm-pack build ../../air-interpreter --no-typescript --release -d wasm $base64string = [Convert]::ToBase64String([IO.File]::ReadAllBytes('./wasm/air_interpreter_client_bg.wasm')) $data = "// auto-generated module.exports = `"${base64string}`"" $data | Out-File "./src/wasm.js"