Skip to content

Commit 723b3cc

Browse files
authored
Change compiler target to wasm32-unknown-unknown (#26)
1 parent 0931f24 commit 723b3cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ jobs:
3737
- name: Install wasm target
3838
shell: bash
3939
run: |
40-
rustup target add wasm32-wasi
40+
rustup target add wasm32-unknown-unknown
4141
4242
- name: Build plugin
4343
shell: bash
44-
run: cargo build --release --target wasm32-wasi
44+
run: cargo build --release --target wasm32-unknown-unknown
4545
env:
4646
MACOSX_DEPLOYMENT_TARGET: "10.13"
4747

4848
- name: List files
4949
shell: bash
5050
run: |
51-
ls -al target/wasm32-wasi/release
51+
ls -al target/wasm32-unknown-unknown/release
5252
- name: Configure npm
5353
run: |
5454
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"main": "next_superjson.wasm",
2020
"scripts": {
21-
"prepack": "tsc && cp target/wasm32-wasi/release/next_superjson.wasm ."
21+
"prepack": "tsc && cp target/wasm32-unknown-unknown/release/next_superjson.wasm ."
2222
},
2323
"files": ["tools.*"],
2424
"peerDependencies": {

0 commit comments

Comments
 (0)