diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 73ff0bcd..51d8b8ac 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: | diff --git a/client/app/worker.ts b/client/app/worker.ts index 60800a35..9dd2f17d 100644 --- a/client/app/worker.ts +++ b/client/app/worker.ts @@ -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 = { diff --git a/client/package-lock.json b/client/package-lock.json index 6cd25155..e02a259d 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -39,6 +39,9 @@ "webpack": "^5.90.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" + }, + "engines": { + "node": ">=18.14.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/client/package.json b/client/package.json index 4a6eb573..c8d7c121 100644 --- a/client/package.json +++ b/client/package.json @@ -42,5 +42,8 @@ "long": "^5.2.3", "threads-es": "^1.0.0", "util": "^0.12.5" + }, + "engines": { + "node": ">=18.14.0" } }