virtual-machine 0.0.0 → 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.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
@@ -13,3 +13,4 @@ export async function WasmInternal() {
13
13
  }
14
14
 
15
15
 
16
+ export type * from "./pkg/riscv_vm";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtual-machine",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "",
5
5
  "bin": "build/cli.js",
6
6
  "publishConfig": {