diff --git a/packages/common/tsconfig.json b/packages/common/tsconfig.json index b102f033..6418d61d 100644 --- a/packages/common/tsconfig.json +++ b/packages/common/tsconfig.json @@ -1,6 +1,8 @@ { "extends": "@tsconfig/node22/tsconfig.json", "compilerOptions": { - "outDir": "./dist" + "outDir": "./dist", + "declaration": true, + "emitDeclarationOnly": false } } \ No newline at end of file diff --git a/packages/rpc/README.md b/packages/rpc/README.md index 2bbbff1e..2c82e9ee 100644 --- a/packages/rpc/README.md +++ b/packages/rpc/README.md @@ -8,12 +8,18 @@ These instructions will cover the usage information and how to run the code loca ### Configuration -Configure the mode you want to run by editing the variable in `.env` by checking `.env.example` +Configure the mode you want to run by editing the variable in `.env` by checking `.env.example`. ```sh cp .env.example .env ``` +To add a new chain, create a value in the .env file with the following name: + +```sh +JSON_RPC_URL_="your rpc url" +``` + ### Install Please make sure you have run `yarn install` on the root level. @@ -38,7 +44,7 @@ On the root's `docker-compose.yml`, run the following command: ```sh cd ../.. # To the root level -docker compose up --build mongodb hashi_rpc +docker compose up --build hashi_rpc ``` Make sure to set `PORT=3000` within `.env` file.