@hanzo/build 0.2.73 → 0.2.74

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.
@@ -17,7 +17,7 @@ export declare function usePlugins(t: Target): Plugins;
17
17
  export declare function shelf(p: Plugins, g: GearState, c: Composer): Shelf;
18
18
  /** The plugins this message asks, in the menu's order. */
19
19
  export declare const active: (plugins: readonly Plugin[], g: Gear) => Plugin[];
20
- /** Several plugins' preparations as one: system parts and replies in order, files together. */
20
+ /** Several plugins' preparations as one: system parts and replies in order, files together, the design system one made. */
21
21
  export declare function merge(preps: readonly Prep[]): Prep;
22
22
  /**
23
23
  * Ask every plugin that is on what the message carries. A plugin that fails
@@ -96,19 +96,23 @@ export function shelf(p, g, c) {
96
96
  }
97
97
  /** The plugins this message asks, in the menu's order. */
98
98
  export const active = (plugins, g) => plugins.filter((p) => p.prepare && on(p, g));
99
- /** Several plugins' preparations as one: system parts and replies in order, files together. */
99
+ /** Several plugins' preparations as one: system parts and replies in order, files together, the design system one made. */
100
100
  export function merge(preps) {
101
101
  const join = (k) => preps.map((p) => p[k]?.trim()).filter(Boolean).join('\n\n') || undefined;
102
102
  const files = preps.flatMap((p) => p.files ?? []);
103
103
  const out = {};
104
104
  const system = join('system');
105
105
  const reply = join('reply');
106
+ // A design system a plugin made is attached by the host (carry.tsx); dropped here, it never was.
107
+ const design = preps.map((p) => p.design).filter(Boolean).at(-1);
106
108
  if (system)
107
109
  out.system = system;
108
110
  if (reply)
109
111
  out.reply = reply;
110
112
  if (files.length)
111
113
  out.files = files;
114
+ if (design)
115
+ out.design = design;
112
116
  return out;
113
117
  }
114
118
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/build",
3
- "version": "0.2.73",
3
+ "version": "0.2.74",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "description": "Hanzo Build — say what you want, watch it built, deployed and running. The builder as a component, mounted by the Hanzo app at hanzo.ai.",