|
|
|
@ -10,7 +10,7 @@ |
|
|
|
|
"scripts": { |
|
|
|
|
"fmt": "rome format . --write && rome check . --apply-unsafe", |
|
|
|
|
"test": "rome ci . && wasm-pack build --debug --target nodejs && mocha", |
|
|
|
|
"build": "rm -rf pkg && wasm-pack build --release --target web --out-name web && mv pkg pkg-web && wasm-pack build --release --target nodejs --out-name node && mv pkg pkg-node && node build_package.js && rm -r pkg-web && rm -r pkg-node", |
|
|
|
|
"build": "rm -rf pkg && wasm-pack build --release --target web --out-name web --out-dir pkg-web && wasm-pack build --release --target nodejs --out-name node --out-dir pkg-node && node build_package.js && rm -r pkg-web && rm -r pkg-node", |
|
|
|
|
"release": "npm run build && npm publish ./pkg", |
|
|
|
|
"pack": "npm run build && npm pack ./pkg" |
|
|
|
|
}, |
|
|
|
|