Skip to content

Commit 30c0870

Browse files
authored
Merge pull request #274 from tysonrm/release-0-1-0
fix wasm build
2 parents 99607df + 484a920 commit 30c0870

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

start.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
cd ../aegis-app
22
nohup node repo.js &
33
nohup node repo.js 8001 cache &
4-
cp ../aegis/wasm/build/release.wasm ../aegis-app/dist/main.wasm
5-
cd ../aegis
4+
cd ../aegis/wasm
5+
yarn build
6+
cd ../aegis/wasm
7+
yarn build
8+
yarn deploy
9+
cd ..
610
yarn link
711
cd ../aegis-host
812
yarn link @module-federation/aegis

wasm/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"asbuild:debug": "asc assembly/index.ts --exportRuntime --bindings --target debug",
1818
"asbuild:release": "asc assembly/index.ts --exportRuntime --bindings --target release",
1919
"asbuild": "npm run asbuild:debug && npm run asbuild:release",
20+
"build": "npm run asbuild",
2021
"deploy": "cp build/release.wasm ../../aegis-app/dist/main.wasm",
2122
"test": "node tests",
2223
"start": "npx serve ."

0 commit comments

Comments
 (0)