Skip to content

Commit 609bff2

Browse files
hi-ogawaOpenCode
andcommitted
refactor: move wasm build script to package
Co-authored-by: OpenCode <noreply@opencode.ai>
1 parent c10baa7 commit 609bff2

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

crates/wasm/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
"pkg"
66
],
77
"type": "module",
8-
"exports": "./pkg/demucs_wasm.js"
8+
"exports": "./pkg/demucs_wasm.js",
9+
"scripts": {
10+
"build": "wasm-pack build . --target web --no-pack --release && rm -f pkg/.gitignore"
11+
}
912
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build-model": "uv run python tools/model-export/build_models.py",
1010
"verify-parity": "uv run python tools/model-export/verify_parity.py",
1111
"model-release": "uv run --no-sync tools/model_release.py",
12-
"build-wasm": "wasm-pack build crates/wasm --target web --no-pack --release && rm -f crates/wasm/pkg/.gitignore",
12+
"build-wasm": "pnpm -C crates/wasm build",
1313
"wasm-separate": "pnpm -C packages/app wasm-separate",
1414
"build": "pnpm build-wasm && pnpm -C packages/app build",
1515
"build-cf": "(command -v cargo >/dev/null || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal) && PATH=\"$HOME/.cargo/bin:$PATH\" pnpm build",

0 commit comments

Comments
 (0)