Skip to content

Commit 95c02c2

Browse files
committed
chore: update torii-wasm to use submodule
1 parent 0c1c817 commit 95c02c2

File tree

6 files changed

+11
-39
lines changed

6 files changed

+11
-39
lines changed

.gitmodules

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
[submodule "dojo-starter"]
2-
path = worlds/dojo-starter
3-
url = https://github.com/dojoengine/dojo-starter
4-
ignore = dirty
5-
[submodule "onchain-dash"]
6-
path = worlds/onchain-dash
7-
url = https://github.com/MartianGreed/onchain-dash
8-
ignore = dirty
91
[submodule "worlds/onchain-dash"]
102
path = worlds/onchain-dash
113
url = https://github.com/MartianGreed/onchain-dash
@@ -14,3 +6,6 @@
146
path = worlds/dojo-starter
157
url = https://github.com/dojoengine/dojo-starter
168
ignore = dirty
9+
[submodule "packages/torii-wasm/dojo.c"]
10+
path = packages/torii-wasm/dojo.c
11+
url = [email protected]:dojoengine/dojo.c.git

packages/predeployed-connector/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"test": "vitest run --passWithNoTests --config ./vitest.config.ts",
1313
"coverage": "vitest run --coverage",
1414
"lint": "eslint . --ext .ts,.tsx",
15-
"format:check": "prettier --check .",
16-
"format": "prettier --write .",
15+
"format:check": "prettier --check {src,*.json,*.ts}",
16+
"format": "prettier --write {src,*.json,*.ts}",
1717
"docs": "typedoc"
1818
},
1919
"exports": {

packages/torii-wasm/build.sh

-25
This file was deleted.

packages/torii-wasm/dojo.c

Submodule dojo.c added at 318250c

packages/torii-wasm/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"main": "./pkg/web/dojo_c.js",
88
"type": "module",
99
"scripts": {
10-
"build:wasm": "./build.sh",
10+
"build:web": "cd dojo.c && pnpx wasm-pack build --out-dir ../pkg/web --release",
11+
"build:node": "cd dojo.c && pnpx wasm-pack build --out-dir ../pkg/node --release --target nodejs",
12+
"build:wasm": "pnpm build:web && pnpm build:node",
1113
"build": "pnpm build:wasm",
12-
"format:check": "prettier --check .",
13-
"format": "prettier --write .",
1414
"test": "echo \"Error: no test specified\" && exit 1"
1515
},
1616
"module": "./pkg/web/dojo_c.js",

turbo.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
},
1010
"build:wasm": {
1111
"dependsOn": ["^build:wasm"],
12-
"outputs": ["dist/**", "target/**", "pkg/**"]
12+
"outputs": ["dist/**", "target/**", "pkg/**"],
13+
"inputs": ["dojo.c/**", "crates/**"]
1314
},
1415
"build:deps": {
1516
"dependsOn": ["^build:deps", "^build:wasm"],

0 commit comments

Comments
 (0)