diff --git a/packages/jsx-email/src/cli/commands/check.ts b/packages/jsx-email/src/cli/commands/check.ts index 9fe7c993..6a2f234d 100644 --- a/packages/jsx-email/src/cli/commands/check.ts +++ b/packages/jsx-email/src/cli/commands/check.ts @@ -4,7 +4,7 @@ import { type IssueGroup, caniemail, groupIssues, sortIssues } from 'caniemail'; import chalk from 'chalk'; import chalkTmpl from 'chalk-template'; import stripAnsi from 'strip-ansi'; -import { type InferOutput as Infer, parse as assert, object } from 'valibot'; +import { type InferOutput as Infer, parse as assert, boolean, object, optional } from 'valibot'; import { formatBytes, gmailByteLimit, gmailBytesSafe } from '../helpers.js'; @@ -13,7 +13,9 @@ import { type CommandFn } from './types.js'; const { error, log } = console; -const CheckOptionsStruct = object({}); +const CheckOptionsStruct = object({ + usePreviewProps: optional(boolean()) +}); type CheckOptions = Infer; @@ -32,17 +34,24 @@ export const help = chalkTmpl` Check jsx-email templates for client compatibility {underline Usage} - $ email check