Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.15 KB

BUILD.md

File metadata and controls

43 lines (34 loc) · 1.15 KB

Build Wallet Adapter from Source

0. Prerequisites

  • Node 16+
  • PNPM

If you have Node 16+, you can activate PNPM with Corepack:

corepack enable
corepack prepare pnpm@`npm info pnpm --json | jq -r .version` --activate

Corepack requires a version to enable, so if you don't have jq installed, you can install it, or just manually get the current version of pnpm with npm info pnpm and use it like this:

corepack prepare pnpm@8.1.0 --activate

1. Clone the project:

git clone https://github.com/anza-xyz/wallet-adapter.git

2. Install dependencies:

cd wallet-adapter
pnpm install

3. Build all packages:

pnpm run build

Please be patient! This may take a while the first time you do it. Subsequent builds will be incremental and are quite fast.

You can also use pnpm watch to run incremental builds when source files change, enabling hot module reloading.

4. Run locally:

cd packages/starter/react-ui-starter
pnpm run start
open http://localhost:1234