The Andromeda.js repository contains three packages:
- andrjs: JavaScript SDK for writing applications that interact with the Andromeda ecosystem.
- cli: Used to interact with the Andromeda ecosystem and any of the chains Andromeda is deployed on.
- gql: GQL tool used to auto generate gql functions and hooks from gql schema using gql-codegen
We use pnpm to manage packages. Most of the commands for pnpm are same as npm but make sure you use pnpm
(not npm
).
- Install dependencies by
pnpm i
. - Each package has build function. To build all package run
npm run build
in root directory. - To Build each package indepedently, make sure the dependencies are already build (they have
dist/
folder). Then go inside that package directory and runnpm run build
.
- Commit your changes
- Run
pnpm changeset
in root directory - Select the packages changed. All packages are linked using
fixed
config in.changesets/config.json
so all will be bumped but make sure you specify correct packages - Run
pnpm changeset version
and choose correct version. - Add commit message and tag for the new version with proper messages.
Now packages are ready for publish. Use pnpm publish
to publish them to npm. Good Luck!