Use nvm to manage Node versions. CI runs on Node 20; anything >= 18 works.
nvm install 20
nvm use 20This repo uses Yarn (Berry, via .yarnrc.yml). Install dependencies:
yarnGenerated GraphQL clients live in generated/. Regenerate them after changing queries or the schema:
yarn gen-clientsBuild both CJS and ESM outputs:
yarn buildyarn test # vitest, watch mode
yarn test:ci # single run
yarn lint
yarn typecheckTo refresh the schema used by tests, run yarn update-test-schema.
yarn gen-docs
yarn start-docsPublishing is handled by GitHub Actions (.github/workflows/publish.yml). Bump the version with yarn version, which also regenerates generated/version.ts via the postversion hook.