From b330e9969007e5f0376305595ae8be4b3925b945 Mon Sep 17 00:00:00 2001 From: George Ornbo Date: Fri, 26 May 2023 15:42:19 +0100 Subject: [PATCH] Make README clear on yarn usage The package.json is in the `scripts` directory so `yarn build` does not work when run from the root of the project. Additionally `yarn format` and yarn lint` need to be run from the `scripts` directory. --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8466203a5..5bcfc0058 100644 --- a/README.md +++ b/README.md @@ -68,22 +68,25 @@ A bug bounty is currently open for these contracts. See details [here][2]. - Create the build folder: - ```bash - yarn build - ``` + ```bash + cd scripts + yarn + yarn build + ``` - Compile all contracts: - ```bash - cargo make rust-optimizer - ``` + ```bash + cargo make rust-optimizer + ``` - Formatting: - ```bash - yarn format - yarn lint - ``` + ```bash + cd scripts + yarn format + yarn lint + ``` This compiles and optimizes all contracts, storing them in `/artifacts` directory along with `checksum.txt` which contains sha256 hashes of each of the `.wasm` files (The script just uses CosmWasm's [rust-optimizer][9]).