This repository uses Yarn and Husky hooks.
yarn installCommon commands:
yarn format
yarn format:check
yarn lint
yarn test
yarn test:coverageBuild artifacts are emitted to dist/:
yarn buildprepack runs the build automatically to ensure published packages use compiled output.
Tests are run with Vitest. Coverage thresholds are enforced at 100% for statements, branches, functions, and lines.
yarn test
yarn test:coverageCommit messages are validated with commitlint using conventional commits.
pre-commit: runslint-stagedcommit-msg: runscommitlint
Examples:
feat: add custom sanitizer optionfix: handle non-string input safelychore: upgrade lint dependencies
Releases are script-driven and modeled after the reference repository workflow.
Dry run:
yarn release --bump patch --dry-runLive release:
yarn release --bump patchSupported bump values: major, minor, patch.
Live release behavior:
- Generates release notes from conventional commits.
- Bumps version in
package.json. - Commits release metadata and creates an annotated tag.
- Pushes
mainand tags. - Creates a GitHub Release with generated notes.