Skip to content

Commit

Permalink
fix: workaround for wasm-pack producing wrong type declarations for d…
Browse files Browse the repository at this point in the history
…ev profile
  • Loading branch information
heypoom committed Dec 17, 2023
1 parent af03539 commit ef53aee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion canvas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "concurrently \"rsw watch\" \"vite\"",
"dev": "concurrently 'rsw watch' 'vite'",
"build": "source ./ci-setup.sh && rsw build && tsc && vite build",
"watch:rs": "cd machine-wasm && cargo watch --workdir .. --watch ../machine/src --watch machine-wasm/src -s 'wasm-pack build machine-wasm --out-dir pkg-release --target web --release'",
"rsw": "rsw",
"lint": "eslint --ext ts,tsx --report-unused-disable-directives --max-warnings 0 .",
"lint:fix": "eslint --fix --ext ts,tsx --report-unused-disable-directives --max-warnings 0 .",
Expand Down
7 changes: 6 additions & 1 deletion canvas/rsw.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "machin"
name = "machine"
version = "0.1.0"

# default is 50 milliseconds
Expand All @@ -12,3 +12,8 @@ using = "wasm-pack"
[[crates]]
name = "machine-wasm"
link = true
target = "web"
out-dir = "pkg"

[crates.watch]
profile = "release"

0 comments on commit ef53aee

Please sign in to comment.