Build, Validation, And Repo Layout
July 21, 2026 ยท View on GitHub
Common commands
- Install dependencies:
yarn install - Run tests:
yarn test - Run tests in CI mode:
yarn test:ci - Type check:
yarn typecheck - Lint source files:
yarn lint - Check formatting:
yarn format:check - Validate the main package:
yarn validate - Build the package:
yarn build - Regenerate package docs:
yarn docs:generate - Check package docs are in sync:
yarn docs:check
Command notes
yarn lintruns ESLint onsrc.yarn validateruns typecheck, tests, lint, and oxfmt checks for the main package.yarn buildcleansdist/, transpiles source with Babel, and emits TypeScript declarations.
Documentation
- The docs under
website/docs/are the source of truth. Thedocs/api/*.mdfiles are generated from them โ never edit those by hand. - After making any documentation changes, run
yarn docs:generateto regenerate the package docs, and commit the regenerated files alongside yourwebsite/edits.yarn docs:check(part ofvalidate:all) fails if they are out of sync.
Repo layout
src/: source codesrc/pure.ts: core logic without side effectssrc/index.ts: main entry point with auto-cleanup side effectsexamples/: example React Native appswebsite/: documentation sitecodemods/: codemod implementations and tests