-
Notifications
You must be signed in to change notification settings - Fork 833
feat(react-email): support custom export extension #2555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: canary
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 9bd8014 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@hosmelq is attempting to deploy a commit to the resend Team on Vercel. A member of the Team first needs to authorize it. |
ecb743a
to
be8cc28
Compare
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 issue found across 5 files
Prompt for AI agents (all 1 issues)
Understand the root cause of the following 1 issues and fix them.
<file name="packages/react-email/src/commands/export.ts">
<violation number="1" location="packages/react-email/src/commands/export.ts:121">
If the CLI receives a dot-prefixed extension (e.g., `--extension .html`), this ternary sets `extension` to `..html`, so exported filenames gain an extra dot (e.g., `example..html`). Please reuse the user-supplied dot when present so both dot-prefixed and bare extensions work.</violation>
</file>
Since this is your first cubic review, here's how it works:
- cubic automatically reviews your code and comments on bugs and improvements
- Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
- Ask questions if you need clarification on any suggestion
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai
to give feedback, ask questions, or re-run the review.
8128be7
to
19de23f
Compare
Add a
--extension/-e
flag to the CLI export command, document the new option, and add a test.Related
Summary by cubic
Add a new --extension/-e flag to the export CLI to set a custom output file extension (e.g., blade.php). If omitted, it defaults to .txt with --plainText, otherwise .html; docs updated and tests added.