Skip to content

Commit 5407f5b

Browse files
committed
fix(torii-wasm): add type module to package.json
1 parent ffefb05 commit 5407f5b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.changeset/free-masks-cut.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@dojoengine/torii-wasm": patch
3+
---
4+
5+
fix(torii-wasm): add type module to package.json

packages/torii-wasm/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"author": "ohayo",
66
"license": "MIT",
77
"main": "./pkg/node/dojo_c.js",
8+
"type": "module",
89
"scripts": {
910
"build:web": "cd dojo.c && pnpx wasm-pack build --out-dir ../pkg/web --release",
1011
"build:node": "cd dojo.c && pnpx wasm-pack build --out-dir ../pkg/node --release --target nodejs",
@@ -36,6 +37,11 @@
3637
"import": "./node.mjs",
3738
"require": "./pkg/node/dojo_c.js"
3839
},
40+
"./web": {
41+
"types": "./pkg/web/dojo_c.d.ts",
42+
"import": "./pkg/web/dojo_c.js",
43+
"require": "./pkg/web/dojo_c.js"
44+
},
3945
"./types": {
4046
"types": "./pkg/node/dojo_c.d.ts"
4147
}

0 commit comments

Comments
 (0)