Skip to content

Commit

Permalink
added new instructions for building locally (#4902)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfahampshire committed Sep 19, 2024
1 parent 35c94f5 commit 2198c1b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions sdk/typescript/packages/sdk/DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@
## Building from source

You will need to have the Rust WASM toolchain installed. Please [follow the instructions here](https://rustwasm.github.io/docs/book/game-of-life/setup.html)
to install `wasm-pack`.
to install `wasm-pack`. Make sure you also have `wasm-opt` installed, in case it was not installed with `wasm-pack`.

Make sure you have either Node 16 LTS or Node 18 LTS installed and are using it to do the build.

From the **root of the monorepo** (aka `home/path/to/nym/`) run:

```
yarn dev:on
yarn build:wasm
```

Then `cd` here.

Change the monorepo settings to include the examples directory:

In the `package.json` in the root of the repo, change:
Expand All @@ -20,7 +29,6 @@ to:
"sdk/typescript/**",
```


Run these commands to build the SDK from `sdk/typescript/packages/sdk`:

```
Expand Down

0 comments on commit 2198c1b

Please sign in to comment.