File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
Expand file tree Collapse file tree 5 files changed +9
-9
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-wasi "
4+ prepublish = " build --target wasm32-wasip1 "
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ jobs:
1212 - uses : actions/checkout@v6
1313 - uses : actions/setup-node@v6
1414 with :
15- node-version : " lts/*"
16- registry-url : " https://registry.npmjs.org"
15+ node-version : ' lts/*'
16+ registry-url : ' https://registry.npmjs.org'
1717 - name : Install Rust toolchain
1818 uses : actions-rust-lang/setup-rust-toolchain@v1
1919 with :
20- target : wasm32-wasi
20+ target : wasm32-wasip1
2121 - name : Publish debug-label
2222 working-directory : ./crates/debug_label
2323 run : npm publish
2727 working-directory : ./crates/react_refresh
2828 run : npm publish
2929 env :
30- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
30+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 3535 - uses : actions/checkout@v6
3636 - uses : actions-rust-lang/setup-rust-toolchain@v1
3737 with :
38- target : wasm32-wasi
38+ target : wasm32-wasip1
3939 - name : Run cargo check
4040 run : cargo check
4141 test :
4444 - uses : actions/checkout@v6
4545 - uses : actions-rust-lang/setup-rust-toolchain@v1
4646 with :
47- target : wasm32-wasi
47+ target : wasm32-wasip1
4848 - name : Run cargo test
4949 run : cargo test
Original file line number Diff line number Diff line change 1818 },
1919 "main" : " swc_jotai_debug_label.wasm" ,
2020 "scripts" : {
21- "prepack" : " cargo prepublish --release && cp ../../target/wasm32-wasi /release/swc_jotai_debug_label.wasm ."
21+ "prepack" : " cargo prepublish --release && cp ../../target/wasm32-wasip1 /release/swc_jotai_debug_label.wasm ."
2222 }
2323}
Original file line number Diff line number Diff line change 1818 },
1919 "main" : " swc_jotai_react_refresh.wasm" ,
2020 "scripts" : {
21- "prepack" : " cargo prepublish --release && cp ../../target/wasm32-wasi /release/swc_jotai_react_refresh.wasm ."
21+ "prepack" : " cargo prepublish --release && cp ../../target/wasm32-wasip1 /release/swc_jotai_react_refresh.wasm ."
2222 }
2323}
You can’t perform that action at this time.
0 commit comments