-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
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-email → create-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.mustachetest/cli/create-mail.test.ts+test/cli/.snapshots/create-mail.test.ts.snap
Tasks
- Port the
react-domdevDependency addition frommainintonext/v3’screate-mailgenerator template. - Update any CLI tests/snapshots that assert the generated
package.jsoncontents. - 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-mailgenerates a project whosepackage.jsonincludesreact-domin 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:buildRefs #379.
Metadata
Metadata
Assignees
Labels
No labels