Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
[token-js] Update build instructions for token js (#6317)
Browse files Browse the repository at this point in the history
update build instructions for token js
  • Loading branch information
samkim-crypto authored Mar 2, 2024
1 parent 75cbc3f commit 304e500
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions token/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,41 +37,48 @@ yarn add @solana/spl-token @solana/web3.js
0. Prerequisites

* Node 16+
* NPM 8+
* PNPM

If you have Node 16+, you can [activate PNPM with Corepack](https://pnpm.io/installation#using-corepack).

1. Clone the project:
```shell
git clone https://github.com/solana-labs/solana-program-library.git
```

2. Navigate to the library:
2. Navigate to the root of the repository:
```shell
cd solana-program-library/token/js
cd solana-program-library
```

3. Install the dependencies:
```shell
npm install
pnpm install
```

4. Build the libraries in the repository:
```shell
pnpm run build
```

4. Build the library:
5. Navigate to the SPL Token library:
```shell
npm run build
cd token/js
```

5. Build the on-chain programs:
6. Build the on-chain programs:
```shell
npm run test:build-programs
pnpm run test:build-programs
```

6. Run the tests:
7. Run the tests:
```shell
npm run test
pnpm run test
```

7. Run the example:
8. Run the example:
```shell
npm run example
pnpm run example
```

## Upgrading
Expand Down

0 comments on commit 304e500

Please sign in to comment.