Files
matrix-rust-sdk/crates/matrix-sdk/examples/wasm_command_bot/package.json
Damir Jelić f2e2976496 fix(sdk): Make the wasm_command_bot example compile and work
This patch does a couple of things:

1. Fix the compilation of the example, Message -> MessageLike
2. Update Webpack and friends for the example
3. Remove futures-timer's Delay method and use equivalent methods from
   Tokio and wasm-timers.

The last point was needed because futures-timer would end up triggering
this error:
    ReferenceError: can't access lexical declaration '__wbg_clearTimeout_d8b36ad8fa330187' before initialization
2022-04-05 14:02:07 +02:00

15 lines
405 B
JSON

{
"scripts": {
"build": "webpack",
"serve": "webpack-dev-server",
"test": "cargo check --target wasm32-unknown-unknown && wasm-pack test --node"
},
"devDependencies": {
"html-webpack-plugin": "^4.3.0",
"webpack": "^5.71.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4",
"@wasm-tool/wasm-pack-plugin": "^1.6.0"
}
}