From b9789277354bdfc891ef991c5f569cb6752f3ae5 Mon Sep 17 00:00:00 2001 From: acolytec3 <17355484+acolytec3@users.noreply.github.com> Date: Tue, 16 Apr 2024 11:36:08 -0400 Subject: [PATCH] Add wasmDirFix for web --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 52e8e6f..9460112 100644 --- a/package.json +++ b/package.json @@ -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/*",