diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml index b9af4d2..fbf567e 100644 --- a/.github/workflows/build-wasm.yml +++ b/.github/workflows/build-wasm.yml @@ -12,13 +12,12 @@ jobs: sudo apt install clang llvm gcc-multilib -y export CC=clang export CXX=clang++ - - run: rustup target add wasm32-wasip1 + - run: rustup target add wasm32-wasip1-threads - uses: oven-sh/setup-bun@v2 - run: bun install - run: | mkdir dist - bun run build --target wasm32-wasip1 - ls -al . + bun run build --target wasm32-wasip1-threads - uses: actions/upload-artifact@v4 with: path: dist diff --git a/package.json b/package.json index ac85391..a927ddb 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,10 @@ "package.json" ], "napi": { - "binaryName": "highlight", - "targets": [ - "wasm32-wasip1" - ] + "binaryName": "highlight" }, "scripts": { - "build": "napi build --platform --esm --release --strip -o ./dist", + "build": "napi build --platform --release --strip -o ./dist", "bump": "bunx changelogen --bump && bun bump-version.ts" }, "type": "module"