@rebasepro/types 0.18.1 → 0.19.1-canary.g5a92fa9

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.
@@ -22,8 +22,18 @@ export interface CronJobDefinition {
22
22
  * is refused when the job loads rather than silently read as local time.
23
23
  */
24
24
  timezone?: string;
25
- /** Human-readable name shown in the Studio UI. */
26
- name: string;
25
+ /**
26
+ * Human-readable name shown in the Studio UI. Defaults to the file's own
27
+ * name — `crons/nightly-cleanup.ts` is `nightly-cleanup`.
28
+ *
29
+ * Optional because the loader has always treated it that way
30
+ * (`definition.name ?? loaded.id`), while this declared it required. So a
31
+ * cron without one ran happily under `rebase dev` and then failed
32
+ * `rebase build` with "Property 'name' is missing" — the dev loop and the
33
+ * build disagreeing about whether the project compiles, which is the worst
34
+ * place for a type to be stricter than the code.
35
+ */
36
+ name?: string;
27
37
  /** Optional description shown in the Studio UI. */
28
38
  description?: string;
29
39
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebasepro/types",
3
- "version": "0.18.1",
3
+ "version": "0.19.1-canary.g5a92fa9",
4
4
  "description": "Rebase type definitions — shared interfaces and controller types",
5
5
  "keywords": [
6
6
  "rebase",