diff --git a/.github/workflows/test-smoke.yml b/.github/workflows/test-smoke.yml deleted file mode 100644 index 2546e485..00000000 --- a/.github/workflows/test-smoke.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Smoke Test - -on: - workflow_dispatch: - pull_request: - types: - - edited - - opened - - synchronize - push: - branches: - - '*' - - '!main' - -jobs: - validate: - runs-on: ubuntu-latest - name: Smoke Test - - steps: - - name: Checkout Commit - uses: actions/checkout@v4 - with: - fetch-depth: 10 - - - name: Checkout Main - run: | - git fetch origin - git branch -f main origin/main - - - name: Setup - uses: ./.github/actions/setup - - - name: Build Projects - run: | - moon jsx-email:build - moon create-mail:build - moon run :build --query "project~plugin-*" - - - name: Smoke Test - # Note: We're running `pnpm i` again so that pnpm places the `email` bin in root node_modules - # We'll need that for the preview tests below - run: | - pnpm i - moon test-smoke:run.ci 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