@dry-lint/cli
v3.0.0
Published
Command line interface for dry-lint. Detect duplicate or near-duplicate type definitions.
Readme
@dry-lint/cli
The official CLI for dry-lint.
Detect duplicate declarations in TypeScript, Zod, OpenAPI, GraphQL, and more — with a plugin-driven architecture.
Install
Add the CLI and the plugins you want:
# Example: TypeScript + Zod plugins
bun add -D @dry-lint/cli @dry-lint/typescript @dry-lint/zodConfigure
Create a .drylintrc.json to specify which extractors to load:
{
"plugins": ["@dry-lint/typescript", "@dry-lint/zod"]
}If no config is present, the CLI will auto-load all installed @dry-lint/* packages (except dry-lint and cli).
🚀 Usage
Run duplicate detection across your project:
npx dry [projectDir] [options]CLI options
-t, --threshold <num>— similarity threshold (0–1, default1)--ignore <patterns...>— glob patterns to exclude--json— output a JSON report--sarif— output a SARIF report--fix— generate alias stubs for exact matches--no-cache— disable file-level caching--ui— launch the interactive Ink UI
Resources
License
MIT — see LICENSE.
