File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11# These command aliases are not final, may change
22[alias]
33# Alias to build actual plugin binary for the specified target.
4- prepublish = "build --target wasm32-unknown-unknown "
4+ prepublish = "build --target wasm32-wasi "
55
6- [target.wasm32-unknown-unknown ]
6+ [target.wasm32-wasi ]
77rustflags = "-C target-feature=+relaxed-simd"
Original file line number Diff line number Diff line change @@ -37,18 +37,18 @@ jobs:
3737 - name : Install wasm target
3838 shell : bash
3939 run : |
40- rustup target add wasm32-unknown-unknown
40+ rustup target add wasm32-wasi
4141
4242 - name : Build plugin
4343 shell : bash
44- run : cargo build --release --target wasm32-unknown-unknown
44+ run : cargo prepublish --release
4545 env :
4646 MACOSX_DEPLOYMENT_TARGET : " 10.13"
4747
4848 - name : List files
4949 shell : bash
5050 run : |
51- ls -al target/wasm32-unknown-unknown /release
51+ ls -al target/wasm32-wasi /release
5252 - name : Configure npm
5353 run : |
5454 echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
Original file line number Diff line number Diff line change 1818 ],
1919 "main" : " next_superjson.wasm" ,
2020 "scripts" : {
21- "prepack" : " tsc && cp target/wasm32-unknown-unknown /release/next_superjson.wasm ."
21+ "prepack" : " tsc && cp target/wasm32-wasi /release/next_superjson.wasm ."
2222 },
2323 "files" : [" tools.*" ],
2424 "peerDependencies" : {
You can’t perform that action at this time.
0 commit comments