From 39ddff867e3297db2e15e5465b6fae68ca6a4441 Mon Sep 17 00:00:00 2001 From: noClaps <04plugs-bios@icloud.com> Date: Fri, 3 Jan 2025 12:15:46 +0000 Subject: [PATCH] Move WASM file into dist and add wasip1 target --- .github/workflows/build-wasm.yml | 2 +- package.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml index f40349d..e4d3c5c 100644 --- a/.github/workflows/build-wasm.yml +++ b/.github/workflows/build-wasm.yml @@ -21,7 +21,7 @@ jobs: - run: | mkdir dist/ bun run build --target wasm32-wasip1 - ls -al . + mv highlight.wasm32-wasi.wasm dist/ - uses: actions/upload-artifact@v4 with: path: dist/ diff --git a/package.json b/package.json index c36f975..a88ffdd 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,10 @@ "bump": "bunx changelogen --bump && bun bump-version.ts" }, "napi": { - "binaryName": "highlight" + "binaryName": "highlight", + "targets": [ + "wasm32-wasip1" + ] }, "type": "module", "exports": "./index.ts",