chore: use rangutopia for building wallets #1223
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Replace build/command.js with rangutopia scripts.
Fixes RF-2438
How did you test this change?
We should test in two phase, the first one using local linking (before rangutopia is available on NPM) and second when it's published.
Phase 1: local (NO NEED THIS ONE ANYMORE)
First run:
We only want to test two packages at this phase, the output of script and rangutopia should be same:
cd wallets/core/ yarn clean yarn build2 mv dist dist2 yarn build diff -qr dist dist2do same for wallets/provider-ledger.
Note: not sure why hashes are different but content seems to be same. you can check them using this tool.
You can also run from root:
Phase 2: npm
we've published the initial version, https://www.npmjs.com/package/rangutopia?activeTab=readme
just
yarnand start to see the build outputChecklist: