@samva/cli 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/bin.mjs +2160 -1573
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -184,12 +184,12 @@ default-exports `defineTemplate` with an input schema, declared fixtures, and an
|
|
|
184
184
|
`whatsapp` body. The compiler reads the file without running it, so top-level code in a template
|
|
185
185
|
does not execute. `check` type-checks the project, compiles every template, and renders every
|
|
186
186
|
fixture through every channel the template declares; `build` writes those rendered fixtures, each
|
|
187
|
-
template's input schema, and its compiled
|
|
187
|
+
template's input schema, and its compiled template. Modules without a template default export are
|
|
188
188
|
helpers, and every template needs a unique id.
|
|
189
189
|
|
|
190
|
-
The JSON file written by `build` uses `schemaVersion:
|
|
190
|
+
The JSON file written by `build` uses `schemaVersion: 4`. Its `result` is the `@samva/vite/build`
|
|
191
191
|
result: `files[]`, one per template entry, each with `ok`, `diagnostics`, and a `template` carrying
|
|
192
|
-
`template` (the id), `channels`, `source`, `inputSchema`, `
|
|
192
|
+
`template` (the id), `channels`, `source`, `inputSchema`, `compiled`, `fixtures[]` (each with its `email`
|
|
193
193
|
subject, preheader, HTML and text, its `sms` text, or its `whatsapp` message), and `compatibility`
|
|
194
194
|
findings. The former `preview.kind` `"email"` and `"structured"` shapes no longer exist. The CLI's
|
|
195
195
|
stdout envelope remains version 1.
|