Skip to content

Commit 82799f4

Browse files
committed
docs: clarify pnpm as required package manager
1 parent 020ebe7 commit 82799f4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,20 @@ This repo contains Solana onchain programs (referred to as 'Smart Contracts' in
99
> [!NOTE]
1010
> If you're new to Solana, you don't need to create your own programs to perform basic things like making accounts, creating tokens, sending tokens, or minting NFTs. These common tasks are handled with existing programs, for example the System Program (for making account or transferring SOL) or the token program (for creating tokens and NFTs). See the [Solana Developer site](https://solana.com/developers) to learn more.
1111
12+
> ⚠️ This repository uses **pnpm** as the default package manager.
13+
> Ensure pnpm is installed before running any examples.
14+
15+
1216
Each folder includes examples for one or more of the following:
1317

14-
- `anchor` - Written using [Anchor](https://www.anchor-lang.com/), the most popular framework for Solana Development, which uses Rust. Use `anchor build && anchor deploy` to build & deploy the program. Run `anchor run test` to test it.
15-
- `native` - Written using Solana's native Rust crates and vanilla Rust. Use `cicd.sh` to build & deploy the program. Run `yarn run test` to test it.
18+
- `anchor` - Written using [Anchor](https://www.anchor-lang.com/), the most popular framework for Solana development, which uses Rust.
19+
Use `anchor build` and `anchor deploy` to build and deploy the program.
20+
Tests should be executed using `pnpm test` as defined in the `Anchor.toml` scripts section.
21+
22+
- `native` - Written using Solana's native Rust crates and vanilla Rust.
23+
Build and test commands are defined via pnpm scripts and use `solana-bankrun` for testing.
24+
Run `pnpm test` to execute tests.
25+
1626

1727
**If a given example is missing, please send us a PR to add it!** Our aim is to have every example available in every option. We'd also love to see more programs involving staking, wrapped tokens, oracles, compression and VRF. Follow the [contributing guidelines](./CONTRIBUTING.md) to keep things consistent.
1828

0 commit comments

Comments
 (0)