Verify that a command generates files which match existing files on disk.
npm install diff-verify-cli
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