Skip to content

Commit

Permalink
Move WASM file into dist and add wasip1 target
Browse files Browse the repository at this point in the history
  • Loading branch information
noClaps committed Jan 3, 2025
1 parent 8a7a900 commit 39ddff8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 39ddff8

Please sign in to comment.