This is a Mono repository contains a set of useful libraries/helpers in TypeScript.
it including the following packages:
- @rightcapital/exceptions: This library provides a set of standard Exceptions (API Reference)
- @rightcapital/assert: Type-safe assertion utilities for defensive programming (API Reference)
- @rightcapital/date-helpers: A utility class providing various date formatting and parsing methods in TypeScript (API Reference)
- @rightcapital/color-helpers: Color science related helpers (API Reference)
See error handling conventions for guidance on assertions and error types.
If you are confused about Develop and README.md, please see the document How to Develop (to be done)
- After you have finished your changes, run
git addwith the files you have changed. - Run
pnpm run committo create a commit that follows the Conventional Commits specification (enforced via commitlint).
- Ensure there are no uncommitted changes in your working directory.
- Run
pnpm run changeto create a version plan describing the change type and affected packages. - Push your branch and open a PR to
main. - After the PR is merged, a Release PR is automatically created. Merging the Release PR triggers package publishing to npm.
Install all dependencies:
pnpm installpnpm run build # Build all packages
pnpm run test # Run all tests
pnpm run lint # Run ESLint + Prettier checks
pnpm run fix # Auto-fix linting issues
pnpm run typecheck # TypeScript type checking
pnpm run docs # Generate API docs