Skip to content

Commit

Permalink
Add wasmDirFix for web
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Apr 16, 2024
1 parent 8fc499c commit b978927
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build:ts": "scripts/ts-build.sh",
"transpileCJS": "rm dist/cjs/kzg.js && babel src/kzg.js -d dist/cjs",
"fixRequire": "sed -i.bak \"s/\\_require('url')/require('url')/g\" dist/cjs/kzg.js && rm dist/cjs/kzg.js.bak",
"fixWasmDir": "sed -i.bak 's#kzg.wasm#../wasm/kzg.wasm#g' src/kzg.js && rm src/kzg.js.bak && sed -i.bak 's#kzg.wasm#../wasm/kzg.wasm#g' browser/kzg.js && rm src/kzg.js.bak",
"fixWasmDirInNode": "sed -i.bak 's#kzg.wasm#../wasm/kzg.wasm#g' src/kzg.js && rm src/kzg.js.bak",
"fixWasmDirInWeb": "sed -i.bak 's#kzg.wasm#../wasm/kzg.wasm#g' browser/kzg.js && rm browser/kzg.js.bak",
"clean": "rm -rf dist && rm -rf node_modules",
"test": "vitest run test/*",
"test:browser": "npx vitest run -c vitest.config.browser.ts test/*",
Expand Down

0 comments on commit b978927

Please sign in to comment.