Skip to content

Commit 6fde9e5

Browse files
committed
dd
1 parent 791c7c6 commit 6fde9e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patch.wasm.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { readFileSync, rmSync, writeFileSync } from "fs";
22

33
const cargo = readFileSync(`./src/wasm/Cargo.toml`, "utf8")
4-
const packg = cargo.split("\n\n").find(p => p.startsWith("[package]"))
5-
const namel = packg.split("\n").find(l => l.startsWith("name = "))
4+
const packp = cargo.split("\n\n").find(p => p.startsWith("[package]"))
5+
const namel = packp.split("\n").find(l => l.startsWith("name = "))
66
const name = namel.split(" = ")[1].replaceAll('"', "").trim()
77

88
const wasm = readFileSync(`./src/wasm/pkg/${name}_bg.wasm`)

0 commit comments

Comments
 (0)