Skip to content

charlie: port create-jsx-email scaffold fixes into create-mail #384

@charliecreates

Description

@charliecreates

Target branch
All PRs must branch from next/v3 and target base next/v3 (not main).

Context
next/v3 renamed the scaffolder from create-jsx-emailcreate-mail (this is intentional and should remain), but it’s missing at least one important scaffolding fix that exists on main.

On main, create-jsx-email was updated to include react-dom in the generated project’s devDependencies (fix: 0d17e3f9). The next/v3 create-mail template does not currently include this.

Scope (files/areas)

  • packages/create-mail/generators/package.json.mustache
  • test/cli/create-mail.test.ts + test/cli/.snapshots/create-mail.test.ts.snap

Tasks

  1. Port the react-dom devDependency addition from main into next/v3’s create-mail generator template.
  2. Update any CLI tests/snapshots that assert the generated package.json contents.
  3. Sanity-check that the generated project still matches next/v3’s intended Node/React ranges (do not change those ranges).

Acceptance criteria (done when)

  • Running create-mail generates a project whose package.json includes react-dom in devDependencies.
  • CLI tests for scaffolding pass and snapshots are updated only for the intended dependency change.

Verification

# Scaffolder-related CLI tests
$ FORCE_COLOR=1 moon test-cli:test.run

# Ensure the scaffolder package itself still builds
$ moon create-mail:build

Refs #379.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions