Skip to content

Split the email preset into shell, types, and utils - #25

Merged
atherdon merged 1 commit into
mainfrom
refactor/src-templates-and-utils
Oct 4, 2026
Merged

atherdon merged 1 commit into
mainfrom
refactor/src-templates-and-utils

Conversation

@atherdon

@atherdon atherdon commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move EmailProps and EmailTemplate to src/templates/email/types.ts.
  • Move shell part construction and compose to src/templates/email/shell.ts (shellPart, composeEmail).
  • Move pickDefined to src/utils/pickDefined.ts. defineEmailTemplate and renderEmail stay the public entry in email.ts.
  • Exclude the types-only file from coverage, same as the other type modules.

Test plan

  • npm test (45 passing)
  • npm run typecheck
  • npm run test:coverage (100% on executable src files)

Move EmailProps and EmailTemplate to types.ts, shell parts and compose to shell.ts, and pickDefined to src/utils. defineEmailTemplate and renderEmail stay the public entry.
@atherdon
atherdon merged commit 6c9001e into main Oct 4, 2026
7 checks passed
@atherdon
atherdon deleted the refactor/src-templates-and-utils branch October 4, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant