Skip to content

Commit 9aed169

Browse files
committed
chore: build settings
1 parent e2b64d0 commit 9aed169

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
swc_plugin_unassert.wasm
2+
.swc/
3+
14
/target
25
^target/
36
target

package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@
1313
"assert",
1414
"unassert"
1515
],
16-
"main": "target/wasm32-wasi/release/swc_plugin_unassert.wasm",
16+
"main": "./swc_plugin_unassert.wasm",
17+
"files": [
18+
"swc_plugin_unassert.wasm",
19+
"src",
20+
"Cargo.toml",
21+
"package.json"
22+
],
1723
"scripts": {
18-
"prepublishOnly": "cargo build-wasi --release"
24+
"build": "npm run build:release && npm run build:cp",
25+
"build:cp": "cp ./target/wasm32-wasi/release/swc_plugin_unassert.wasm ./swc_plugin_unassert.wasm",
26+
"build:release": "cargo build-wasi --release",
27+
"test": "cargo test"
1928
},
20-
"files": [],
2129
"preferUnplugged": true
2230
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy