From 3143049a519a474aa6ee4f0ab9f032ed33b085ea Mon Sep 17 00:00:00 2001 From: Ross Hill Date: Sun, 4 Feb 2024 11:13:11 -0500 Subject: [PATCH] Fix build, specify node version --- .github/workflows/deploy.yml | 2 +- client/app/worker.ts | 2 +- client/package-lock.json | 3 +++ client/package.json | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) 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" } }