diff --git a/packages/core/bin/generateComponents.cjs b/packages/core/bin/generateComponents.cjs index a48c1d4d30..e78e369606 100644 --- a/packages/core/bin/generateComponents.cjs +++ b/packages/core/bin/generateComponents.cjs @@ -31,7 +31,7 @@ fs.readFile(jsonFilePath, "utf8", (err, jsonString) => { fileContent += ` const name = "${tableName}";\n`; fileContent += ` return defineComponent(\n world,\n {\n`; - component.members.forEach((member) => { + component.members.filter(m => !m.key).forEach((member) => { let memberType = "RecsType.Number"; // Default type set to Number if ( diff --git a/packages/core/package.json b/packages/core/package.json index 6185ff39ba..b4901c81f3 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@dojoengine/core", - "version": "0.0.17", + "version": "0.0.18", "description": "Dojo engine core providers and types", "scripts": { "build": "tsc", @@ -23,4 +23,4 @@ "bin": { "create-components": "./dist/bin/generateComponents.cjs" } -} \ No newline at end of file +}