doc-detective
doc-detective is an NPM-based CLI tool that performs tests. It’s installable via NPM (npm i -g doc-detective) and directly runnable without installation via NPX (npx doc-detective).
This monorepo contains:
- The main CLI tool
doc-detective-common: JSON schema definitions, schema validation logic, and path resolution logic (located insrc/common/)
This repo depends on doc-detective-core for the primary testing logic.
Commit conventions
All commits to this repository must follow the Conventional Commits format:
A husky commit-msg hook validates commit messages locally, and GitHub Actions validates them on pull requests. Non-conforming commits are rejected.
Commit types and version bumps
Examples
Release channels
Doc Detective uses semantic-release with multiple npm dist-tags:
Stable releases come from main. Pre-release versions come from next when that branch exists. Feature branches (feat/*) publish ephemeral pre-releases that are automatically cleaned up when the branch is deleted.