-
Notifications
You must be signed in to change notification settings - Fork 260
feat(target_chains/sui): Use Turbo for Commands #2469
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
@@ -49,7 +50,8 @@ async function run() { | |||
|
|||
// Fetch the latest price feed update data from the Price Service | |||
const connection = new SuiPriceServiceConnection(argv["hermes"]); | |||
const feeds = argv["feed-id"] as string[]; | |||
const feeds = argv["feed-id"]; | |||
if (!Array.isArray(feeds)) { throw new Error("Not a valid input!"); } |
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.
I think this will fail prettier, try running pnpm turbo fix
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.
Ran the command in root and it surprisingly did not complain about or change anything. Also in the two packages I changed, and no changes.
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.
ah right this package has the legacy pre-commit based prettier config, instead run pre-commit run --all
Summary
Updated SUI JS SDK and CLI to use Turbo to help with dependency management. Updated the README to reflect this. Also fixed the relay example to use feed ids as string instead of number.
Rationale
There were a litany of issues getting the SUI JS SDK and CLI to work at all. I got help from Connor to figure out what is wrong and how to fix it. Now, the examples should work out of box and without too much trouble.
How has this been tested?
Manually tested by cleaning up repo locally using
git clean -fdx
and then installing with pnpm in root. Then, running examples and cli commands using turbo successfully.