Working with Ledger Live
This page documents how to link the local packages of the wallet-api monorepo in order to work with Ledger Live locally (or any other application using the Wallet-API) without having to deploy a new version to the npm registry.
First you want to start the dev server to have every packages built and ready to be used by the application but also to have the watcher in place whenever we make changes in the Wallet-API.
Tip: Search for all places to modify with
package.json file containing a wallet-api lib with the following version:
For example with the client lib:
When you are done updating all
package.json files, you can run
pnpm i to update the dependencies with the local ones.
Then you can start developping as usual with
pmpm dev:lld and any modification in the wallet-api sources will be reflected automatically.
You might also want to run
pnpm watch:common to keep it up to date, as we have a lot of code shared in the common folder.
Don't forget to revert the changes in
In this case you might need to update the vite config for LLD.
The file to update is located at
Then you want to add the packages (like