Skip to content

Commit

Permalink
Fix build, specify node version
Browse files Browse the repository at this point in the history
  • Loading branch information
rosslh committed Feb 4, 2024
1 parent 0c294b0 commit 3143049
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: actions/setup-node@v2
with:
node-version: "18"
node-version: "18.14"
- name: Install dependencies
working-directory: ./client
run: |
Expand Down
2 changes: 1 addition & 1 deletion client/app/worker.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { exposeApi } from "threads-es/worker";
import("../../mandelbrot/pkg/index").then((wasm) => {
import("../../mandelbrot/pkg").then((wasm) => {
wasm.init();

const workerApi = {
Expand Down
3 changes: 3 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@
"long": "^5.2.3",
"threads-es": "^1.0.0",
"util": "^0.12.5"
},
"engines": {
"node": ">=18.14.0"
}
}

0 comments on commit 3143049

Please sign in to comment.