virtual-machine 0.0.0-rc4 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/index.js +1 -1
- package/build/index.mjs +1 -1
- package/build.sh +0 -8
- package/index.ts +1 -0
- package/package.json +1 -1
package/build.sh
CHANGED
|
@@ -12,14 +12,6 @@ IMPORTFILE=./pkg/riscv_vm.js
|
|
|
12
12
|
echo "Building the rust library"
|
|
13
13
|
RUSTFLAGS=--cfg=web_sys_unstable_apis npx wasm-pack build --target web
|
|
14
14
|
|
|
15
|
-
if is_mac; then
|
|
16
|
-
sed -i '' 's/"module": "riscv_vm.js",/"main": "riscv_vm.js",/' $PACKAGEJSON
|
|
17
|
-
sed -i '' "/if (typeof input === 'undefined') {/,/}/d" $IMPORTFILE
|
|
18
|
-
else
|
|
19
|
-
sed -i 's/"module": "riscv_vm.js",/"main": "riscv_vm.js",/' $PACKAGEJSON
|
|
20
|
-
sed -i "/if (typeof input === 'undefined') {/,/}/d" $IMPORTFILE
|
|
21
|
-
fi
|
|
22
|
-
|
|
23
15
|
npx tsup --config tsup/tsup.cli.ts
|
|
24
16
|
npx tsup --config tsup/tsup.core.cjs.ts
|
|
25
17
|
npx tsup --config tsup/tsup.core.esm.ts
|
package/index.ts
CHANGED