mtp/package.json
Alois 89a20044a5
Some checks failed
CI / rustfmt (push) Successful in 17s
CI / clippy (push) Failing after 1m16s
CI / wasm build (push) Successful in 1m17s
CI / example (push) Successful in 1m29s
CI / test (push) Successful in 1m49s
CI / duplicate code (push) Successful in 12s
CI / web client (push) Failing after 27s
CI / cargo-machete (push) Successful in 1m10s
CI / cargo-deny (push) Failing after 2m20s
(feat): rename example-usage to just example
(feat): add the example's web-client dist folder to a gitignore
(fix): format issues
(fix): a lot of duplicate code
2026-06-27 03:20:25 +02:00

29 lines
950 B
JSON

{
"name": "mtp-wasm",
"version": "0.1.0",
"description": "Browser WASM interface for MTP.",
"type": "module",
"module": "./wasm/pkg/mtp_wasm.js",
"types": "./wasm/pkg/mtp_wasm.d.ts",
"exports": {
".": {
"types": "./wasm/pkg/mtp_wasm.d.ts",
"import": "./wasm/pkg/mtp_wasm.js",
"default": "./wasm/pkg/mtp_wasm.js"
}
},
"files": [
"wasm/pkg/mtp_wasm.js",
"wasm/pkg/mtp_wasm.d.ts",
"wasm/pkg/mtp_wasm_bg.wasm",
"wasm/pkg/mtp_wasm_bg.wasm.d.ts"
],
"scripts": {
"build": "MTP_TYPE_MAPS=$PWD/example/type-maps.yaml RUSTFLAGS='--cfg web_sys_unstable_apis' wasm-pack build wasm --target web --out-dir pkg --release",
"build:all": "nix run .#build-all",
"dup": "jscpd --pattern '**/*.rs' --ignore 'target/**' --ignore 'wasm/pkg/**' --ignore '.git/**' --min-lines 8 --min-tokens 80 --threshold 4 --reporters console --no-tips ."
},
"devDependencies": {
"jscpd": "5.0.11"
}
}