Skip to content

Verify that a command generates files which match existing files on disk

License

Notifications You must be signed in to change notification settings

Yolk-HQ-old/diff-verify-cli

Repository files navigation

diff-verify-cli

Verify that a command generates files which match existing files on disk.

npm version

Installation

npm install diff-verify-cli

Usage

Usage
  $ diff-verify -p <path|glob> [--dry-run] -- <command> [...args]

Options
  --dry-run   Skip copying, emitting, diffing, and deleting files on disk. Only log operations
              which would be done.
  --path, -p  A path or glob specifying the files expected to be generated by the command.

Examples
  $ diff-verify -p apps/bot-studio-web/graphql-types.ts -- node_modules/.bin/graphql-codegen --config apps/bot-studio-web/codegen.yml

  $ diff-verify -p apps/admin-web/locales -- pnpm run nx -- run admin-web:linguiExtract

Print help for full usage info:

diff-verify --help