-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix #255
fix: fix #255
Conversation
WalkthroughThe recent updates to the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- packages/torii-wasm/.gitignore (1 hunks)
- packages/torii-wasm/package.json (1 hunks)
Files skipped from review due to trivial changes (2)
- packages/torii-wasm/.gitignore
- packages/torii-wasm/package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Outside diff range, codebase verification and nitpick comments (1)
packages/torii-wasm/build.sh (1)
11-11
: Directorydist/pkg/web
does not exist.The specified output directory for the web build is missing. This could be due to an issue with the build script or the directory structure. Please verify that the build script correctly creates the necessary directories and that there are no errors in the build process.
Analysis chain
LGTM! Verify the directory structure.
The change to the output directory for the web build seems appropriate for organizing distribution files. Ensure that the
dist/pkg/web
path is correct and consistent with the project's directory structure.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the existence of the new web build directory. # Test: Check if the directory exists. Expect: Directory should exist. if [ -d "dist/pkg/web" ]; then echo "Directory dist/pkg/web exists." else echo "Directory dist/pkg/web does not exist." fiLength of output: 112
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
Files selected for processing (2)
- packages/torii-wasm/build.sh (1 hunks)
- packages/torii-wasm/package.json (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/torii-wasm/package.json
Additional comments not posted (1)
packages/torii-wasm/build.sh (1)
14-14
: LGTM! Verify the directory structure.The change to the output directory for the Node.js build is consistent with organizing distribution files. Ensure that the
dist/pkg/node
path is correct and consistent with the project's directory structure.
# Find and delete .gitignore files in the specified directories | ||
find ../dist/pkg/node -name ".gitignore" -type f -delete | ||
find ../dist/pkg/web -name ".gitignore" -type f -delete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Consider combining the find commands for efficiency.
The removal of .gitignore
files from distribution directories is appropriate. For efficiency, consider combining the find commands.
# Combine the find commands to delete .gitignore files in both directories
find ../dist/pkg/{node,web} -name ".gitignore" -type f -delete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (2)
examples/react/react-pwa-app/src/dojo/generated/setup.ts (1)
13-18
: Remove unused importWeierstrassSignatureType
.The
WeierstrassSignatureType
is imported but not used in the codebase. Consider removing it to clean up the imports.
examples/react/react-pwa-app/src/dojo/generated/setup.ts
examples/vue/vue-app/src/dojo/generated/setup.ts
examples/react/react-phaser-example/src/dojo/generated/setup.ts
examples/react/react-threejs/src/dojo/generated/setup.ts
examples/react/react-app/src/dojo/generated/setup.ts
Analysis chain
Verify the necessity of
WeierstrassSignatureType
.The import of
WeierstrassSignatureType
remains, but it might no longer be needed ifArraySignatureType
is used exclusively. Consider removing it if it's unused.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check if `WeierstrassSignatureType` is used in the codebase. # Test: Search for the usage of `WeierstrassSignatureType`. Expect: No occurrences. rg --type typescript 'WeierstrassSignatureType'Length of output: 82
Script:
#!/bin/bash # Description: Check if `WeierstrassSignatureType` is used in the codebase. # Test: Search for the usage of `WeierstrassSignatureType`. Expect: No occurrences. rg --type ts 'WeierstrassSignatureType'Length of output: 469
examples/react/react-threejs/src/dojo/generated/setup.ts (1)
Remove Unused Import
WeierstrassSignatureType
The
WeierstrassSignatureType
is imported in several files but is not used anywhere in the codebase. Consider removing this unused import to clean up the code.
examples/react/react-threejs/src/dojo/generated/setup.ts
examples/react/react-phaser-example/src/dojo/generated/setup.ts
examples/react/react-pwa-app/src/dojo/generated/setup.ts
examples/react/react-app/src/dojo/generated/setup.ts
examples/vue/vue-app/src/dojo/generated/setup.ts
Analysis chain
Line range hint
15-20
:
Verify the necessity ofWeierstrassSignatureType
.The import of
WeierstrassSignatureType
remains, but it might no longer be needed ifArraySignatureType
is used exclusively. Consider removing it if it's unused.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check if `WeierstrassSignatureType` is used in the codebase. # Test: Search for the usage of `WeierstrassSignatureType`. Expect: No occurrences. rg --type typescript 'WeierstrassSignatureType'Length of output: 82
Script:
#!/bin/bash # Description: Check if `WeierstrassSignatureType` is used in the codebase. # Test: Search for the usage of `WeierstrassSignatureType` across all files. rg 'WeierstrassSignatureType'Length of output: 459
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
examples/vue/vue-app/dist/index.html
is excluded by!**/dist/**
Files selected for processing (5)
- examples/react/react-app/src/dojo/generated/setup.ts (2 hunks)
- examples/react/react-phaser-example/src/dojo/generated/setup.ts (2 hunks)
- examples/react/react-pwa-app/src/dojo/generated/setup.ts (2 hunks)
- examples/react/react-threejs/src/dojo/generated/setup.ts (2 hunks)
- examples/vue/vue-app/src/dojo/generated/setup.ts (2 hunks)
Additional comments not posted (8)
examples/react/react-phaser-example/src/dojo/generated/setup.ts (2)
56-57
: LGTM!The change to use
ArraySignatureType
in thepublish
method is a good improvement for handling signatures.
13-17
: Verify the usage ofArraySignatureType
.Ensure that the new
ArraySignatureType
is compatible with other parts of the codebase wherepublish
is used.examples/vue/vue-app/src/dojo/generated/setup.ts (2)
58-59
: LGTM!The change to use
ArraySignatureType
in thepublish
method is a good improvement for handling signatures.
13-17
: Verify the usage ofArraySignatureType
.Ensure that the new
ArraySignatureType
is compatible with other parts of the codebase wherepublish
is used.examples/react/react-app/src/dojo/generated/setup.ts (2)
69-70
: LGTM!The change to use
ArraySignatureType
in thepublish
method is a good improvement for handling signatures.
9-13
: Verify the usage ofArraySignatureType
.Ensure that the new
ArraySignatureType
is compatible with other parts of the codebase wherepublish
is used.examples/react/react-pwa-app/src/dojo/generated/setup.ts (1)
83-84
: LGTM! Verify compatibility with other components.The change to
ArraySignatureType
simplifies signature handling. Ensure that this new type is compatible with other components interacting withpublishMessage
.examples/react/react-threejs/src/dojo/generated/setup.ts (1)
85-86
: LGTM! Verify compatibility with other components.The change to
ArraySignatureType
simplifies signature handling. Ensure that this new type is compatible with other components interacting withpublishMessage
.
Summary by CodeRabbit
Chores
.gitignore
file to include thepkg
directory, enhancing repository cleanliness by ignoring build artifacts.dist
directory.package.json
file by removing leading./
and simplifying thefiles
array to include all files within thedist/pkg
directory.New Features
publish
method across various components by transitioning to a more flexibleArraySignatureType
. This improvement simplifies the signature processing and may boost performance.