forked from bytecodealliance/wasm-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
17 lines (17 loc) · 858 Bytes
/
Copy pathpackage.json
File metadata and controls
17 lines (17 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"type": "module",
"scripts": {
"build": "npm run build-component && npm run transpile && npm run typecheck && npm run bundle && npm run copy-files",
"build-component": "cd component && cargo build --release --target wasm32-wasip2",
"bundle": "for source in worker.ts parse.ts print.ts; do esbuild --bundle --format=esm src/$source --outdir=dist; done",
"copy-files": "cp pages/* component-built/*.wasm dist",
"clean": "rm -rf component/src/bindings.rs component-built dist && echo '## you will need to run `cargo clean` separately to delete cargo artifacts'",
"transpile": "jco transpile --no-nodejs-compat ../target/wasm32-wasip2/release/component.wasm --out-dir component-built",
"typecheck": "tsc"
},
"dependencies": {
"@bytecodealliance/jco": "^1.2.4",
"esbuild": "^0.21.4",
"typescript": "^5.4.5"
}
}