nx-lifecycle 0.2.0 → 1.0.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.
Files changed (53) hide show
  1. package/.npmignore +20 -0
  2. package/README.md +203 -119
  3. package/WHY-NX-LIFECYCLE.md +64 -0
  4. package/dist/bin.d.ts +603 -0
  5. package/dist/bin.js +3 -2
  6. package/dist/cli.d.ts +1 -1
  7. package/dist/commands/index.d.ts +752 -2
  8. package/dist/commands/lib/dependencies.d.ts +7 -7
  9. package/dist/commands/lib/dependencies.js +1 -1
  10. package/dist/commands/lifecycle-command.d.ts +1 -1
  11. package/dist/executors/lifecycle/container.d.ts +603 -0
  12. package/dist/executors/lifecycle/container.js +8 -0
  13. package/dist/executors/lifecycle/index.js +2 -6
  14. package/dist/lifecycle/dependencies.d.ts +16 -0
  15. package/dist/lifecycle/{depedencies.js → dependencies.js} +1 -1
  16. package/dist/lifecycle/index.d.ts +754 -3
  17. package/dist/lifecycle/index.js +5 -5
  18. package/dist/lifecycle/lifecycle-internal.d.ts +3 -3
  19. package/dist/lifecycle/lifecycle-internal.js +26 -9
  20. package/dist/lifecycle/normalizer.d.ts +1 -1
  21. package/dist/lifecycle/processor.d.ts +41 -3
  22. package/dist/lifecycle/processor.js +36 -33
  23. package/dist/lifecycle/schema.d.ts +468 -66
  24. package/dist/lifecycle/schema.js +31 -22
  25. package/dist/plugin/container.d.ts +855 -0
  26. package/dist/plugin/container.js +13 -0
  27. package/dist/plugin/dependencies.d.ts +860 -0
  28. package/dist/plugin/dependencies.js +9 -0
  29. package/dist/plugin/index.d.ts +283 -0
  30. package/dist/plugin/index.js +6 -0
  31. package/dist/plugin/lifecycle-plugin.d.ts +21 -0
  32. package/dist/plugin/lifecycle-plugin.js +158 -0
  33. package/dist/plugin/schema.d.ts +353 -0
  34. package/dist/plugin/schema.js +21 -0
  35. package/dist/schemas/configurations.d.ts +5 -5
  36. package/dist/schemas/depend-on.d.ts +39 -9
  37. package/dist/schemas/depend-on.js +4 -2
  38. package/dist/schemas/empty.d.ts +2 -2
  39. package/dist/schemas/empty.js +2 -2
  40. package/dist/schemas/nx-json.d.ts +191 -18
  41. package/dist/schemas/nx-json.js +3 -3
  42. package/dist/schemas/project-json.d.ts +191 -18
  43. package/dist/schemas/project-json.js +3 -3
  44. package/dist/schemas/target.d.ts +79 -25
  45. package/executors.json +2 -2
  46. package/out/nx-executor/schema.json +148 -0
  47. package/out/schema.json +114 -0
  48. package/package.json +39 -40
  49. package/dist/executors/lifecycle/index.cjs +0 -15
  50. package/dist/executors/lifecycle/index.d.cts +0 -99
  51. package/dist/lifecycle/depedencies.d.ts +0 -15
  52. package/dist/schemas/lib/ajv.d.ts +0 -3
  53. package/dist/schemas/lib/ajv.js +0 -11
package/dist/bin.d.ts CHANGED
@@ -1,3 +1,606 @@
1
+ import { EntryScript } from 'entry-script';
2
+ import { LifecycleCli } from './cli.js';
3
+ export declare const cliContainer: import("haywire").Container<[import("haywire").NonExtendable<string, null, "workspace-root", false, false, false>] | [import("haywire").NonExtendable<string, null, "workspace-root", false, false, true>] | [import("haywire").NonExtendable<string, null, "workspace-root", false, true, false>] | [import("haywire").NonExtendable<string, null, "workspace-root", false, true, true>] | [import("haywire").NonExtendable<import("./commands/lib/types.js").AbstractCommand[], null, null, false, false, false>] | [import("haywire").NonExtendable<import("./commands/lib/types.js").AbstractCommand[], null, null, false, false, true>] | [import("haywire").NonExtendable<import("./commands/lib/types.js").AbstractCommand[], null, null, false, true, false>] | [import("haywire").NonExtendable<import("./commands/lib/types.js").AbstractCommand[], null, null, false, true, true>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ConsoleLog, null, "error", false, false, false>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ConsoleLog, null, "error", false, false, true>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ConsoleLog, null, "error", false, true, false>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ConsoleLog, null, "error", false, true, true>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ConsoleLog, null, "log", false, false, false>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ConsoleLog, null, "log", false, false, true>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ConsoleLog, null, "log", false, true, false>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ConsoleLog, null, "log", false, true, true>] | [import("haywire").NonExtendable<EntryScript, import("haywire").AbstractPrivateClass, null, false, false, false>] | [import("haywire").NonExtendable<EntryScript, import("haywire").AbstractPrivateClass, null, false, false, true>] | [import("haywire").NonExtendable<EntryScript, import("haywire").AbstractPrivateClass, null, false, true, false>] | [import("haywire").NonExtendable<EntryScript, import("haywire").AbstractPrivateClass, null, false, true, true>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ExitCode, null, null, false, false, false>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ExitCode, null, null, false, false, true>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ExitCode, null, null, false, true, false>] | [import("haywire").NonExtendable<import("./commands/lib/dependencies.js").ExitCode, null, null, false, true, true>] | [import("haywire").NonExtendable<import("format-file").FilesFormatter, null, null, false, false, false>] | [import("haywire").NonExtendable<import("format-file").FilesFormatter, null, null, false, false, true>] | [import("haywire").NonExtendable<import("format-file").FilesFormatter, null, null, false, true, false>] | [import("haywire").NonExtendable<import("format-file").FilesFormatter, null, null, false, true, true>] | [import("haywire").NonExtendable<import("./lifecycle/lifecycle-internal.js").ILifecycleInternal, null, null, false, false, false>] | [import("haywire").NonExtendable<import("./lifecycle/lifecycle-internal.js").ILifecycleInternal, null, null, false, false, true>] | [import("haywire").NonExtendable<import("./lifecycle/lifecycle-internal.js").ILifecycleInternal, null, null, false, true, false>] | [import("haywire").NonExtendable<import("./lifecycle/lifecycle-internal.js").ILifecycleInternal, null, null, false, true, true>] | [import("haywire").NonExtendable<LifecycleCli, typeof LifecycleCli, null, false, false, false>] | [import("haywire").NonExtendable<LifecycleCli, typeof LifecycleCli, null, false, false, true>] | [import("haywire").NonExtendable<LifecycleCli, typeof LifecycleCli, null, false, true, false>] | [import("haywire").NonExtendable<LifecycleCli, typeof LifecycleCli, null, false, true, true>] | [import("haywire").NonExtendable<import("./commands/lifecycle-command.js").LifecycleCommand, typeof import("./commands/lifecycle-command.js").LifecycleCommand, null, false, false, false>] | [import("haywire").NonExtendable<import("./commands/lifecycle-command.js").LifecycleCommand, typeof import("./commands/lifecycle-command.js").LifecycleCommand, null, false, false, true>] | [import("haywire").NonExtendable<import("./commands/lifecycle-command.js").LifecycleCommand, typeof import("./commands/lifecycle-command.js").LifecycleCommand, null, false, true, false>] | [import("haywire").NonExtendable<import("./commands/lifecycle-command.js").LifecycleCommand, typeof import("./commands/lifecycle-command.js").LifecycleCommand, null, false, true, true>] | [import("haywire").NonExtendable<import("./lifecycle/lifecycle-internal.js").LifecycleInternal, typeof import("./lifecycle/lifecycle-internal.js").LifecycleInternal, null, false, false, false>] | [import("haywire").NonExtendable<import("./lifecycle/lifecycle-internal.js").LifecycleInternal, typeof import("./lifecycle/lifecycle-internal.js").LifecycleInternal, null, false, false, true>] | [import("haywire").NonExtendable<import("./lifecycle/lifecycle-internal.js").LifecycleInternal, typeof import("./lifecycle/lifecycle-internal.js").LifecycleInternal, null, false, true, false>] | [import("haywire").NonExtendable<import("./lifecycle/lifecycle-internal.js").LifecycleInternal, typeof import("./lifecycle/lifecycle-internal.js").LifecycleInternal, null, false, true, true>] | [import("haywire").NonExtendable<import("./lifecycle/dependencies.js").Logger, null, null, false, false, false>] | [import("haywire").NonExtendable<import("./lifecycle/dependencies.js").Logger, null, null, false, false, true>] | [import("haywire").NonExtendable<import("./lifecycle/dependencies.js").Logger, null, null, false, true, false>] | [import("haywire").NonExtendable<import("./lifecycle/dependencies.js").Logger, null, null, false, true, true>] | [import("haywire").NonExtendable<import("./lifecycle/normalizer.js").Normalizer, typeof import("./lifecycle/normalizer.js").Normalizer, null, false, false, false>] | [import("haywire").NonExtendable<import("./lifecycle/normalizer.js").Normalizer, typeof import("./lifecycle/normalizer.js").Normalizer, null, false, false, true>] | [import("haywire").NonExtendable<import("./lifecycle/normalizer.js").Normalizer, typeof import("./lifecycle/normalizer.js").Normalizer, null, false, true, false>] | [import("haywire").NonExtendable<import("./lifecycle/normalizer.js").Normalizer, typeof import("./lifecycle/normalizer.js").Normalizer, null, false, true, true>] | [import("haywire").NonExtendable<import("./lifecycle/processor.js").NxAndProjectJsonProcessor, null, null, false, false, false>] | [import("haywire").NonExtendable<import("./lifecycle/processor.js").NxAndProjectJsonProcessor, null, null, false, false, true>] | [import("haywire").NonExtendable<import("./lifecycle/processor.js").NxAndProjectJsonProcessor, null, null, false, true, false>] | [import("haywire").NonExtendable<import("./lifecycle/processor.js").NxAndProjectJsonProcessor, null, null, false, true, true>] | [import("haywire").NonExtendable<import("parse-cwd").ParseCwd, null, null, false, false, false>] | [import("haywire").NonExtendable<import("parse-cwd").ParseCwd, null, null, false, false, true>] | [import("haywire").NonExtendable<import("parse-cwd").ParseCwd, null, null, false, true, false>] | [import("haywire").NonExtendable<import("parse-cwd").ParseCwd, null, null, false, true, true>] | [import("haywire").NonExtendable<import("@nx/devkit").ProjectGraph, null, null, false, false, false>] | [import("haywire").NonExtendable<import("@nx/devkit").ProjectGraph, null, null, false, false, true>] | [import("haywire").NonExtendable<import("@nx/devkit").ProjectGraph, null, null, false, true, false>] | [import("haywire").NonExtendable<import("@nx/devkit").ProjectGraph, null, null, false, true, true>] | [import("haywire").NonExtendable<(x: unknown) => asserts x is Record<string, unknown> & Partial<{
4
+ targetDefaults: Record<string, Partial<{
5
+ executor: string;
6
+ dependsOn: (string | (Partial<{
7
+ dependencies: boolean;
8
+ projects: never;
9
+ }> & Partial<{
10
+ target: string;
11
+ params: string;
12
+ }> & Required<Pick<{
13
+ target: string;
14
+ params: string;
15
+ }, "target">>) | (string & Partial<{
16
+ dependencies: boolean;
17
+ projects: never;
18
+ }> & Partial<{
19
+ target: string;
20
+ params: string;
21
+ }> & Required<Pick<{
22
+ target: string;
23
+ params: string;
24
+ }, "target">>) | (Partial<{
25
+ dependencies: boolean;
26
+ projects: never;
27
+ }> & Partial<{
28
+ target: string;
29
+ params: string;
30
+ }> & Required<Pick<{
31
+ target: string;
32
+ params: string;
33
+ }, "target">> & string) | (Partial<{
34
+ dependencies: never;
35
+ projects: string | string[];
36
+ }> & Required<Pick<{
37
+ dependencies: never;
38
+ projects: string | string[];
39
+ }, "projects">> & Partial<{
40
+ target: string;
41
+ params: string;
42
+ }> & Required<Pick<{
43
+ target: string;
44
+ params: string;
45
+ }, "target">>) | (string & Partial<{
46
+ dependencies: never;
47
+ projects: string | string[];
48
+ }> & Required<Pick<{
49
+ dependencies: never;
50
+ projects: string | string[];
51
+ }, "projects">> & Partial<{
52
+ target: string;
53
+ params: string;
54
+ }> & Required<Pick<{
55
+ target: string;
56
+ params: string;
57
+ }, "target">>) | (Partial<{
58
+ dependencies: never;
59
+ projects: string | string[];
60
+ }> & Required<Pick<{
61
+ dependencies: never;
62
+ projects: string | string[];
63
+ }, "projects">> & Partial<{
64
+ target: string;
65
+ params: string;
66
+ }> & Required<Pick<{
67
+ target: string;
68
+ params: string;
69
+ }, "target">> & string))[];
70
+ configurations: (Partial<{
71
+ __lifecycle: import("juniper").EmptyObject;
72
+ }> & Required<Pick<{
73
+ __lifecycle: import("juniper").EmptyObject;
74
+ }, "__lifecycle">>) | (Record<string, unknown> & Partial<{
75
+ __lifecycle: never;
76
+ }>);
77
+ }>>;
78
+ }>, null, "nxJson", false, false, false>] | [import("haywire").NonExtendable<(x: unknown) => asserts x is Record<string, unknown> & Partial<{
79
+ targetDefaults: Record<string, Partial<{
80
+ executor: string;
81
+ dependsOn: (string | (Partial<{
82
+ dependencies: boolean;
83
+ projects: never;
84
+ }> & Partial<{
85
+ target: string;
86
+ params: string;
87
+ }> & Required<Pick<{
88
+ target: string;
89
+ params: string;
90
+ }, "target">>) | (string & Partial<{
91
+ dependencies: boolean;
92
+ projects: never;
93
+ }> & Partial<{
94
+ target: string;
95
+ params: string;
96
+ }> & Required<Pick<{
97
+ target: string;
98
+ params: string;
99
+ }, "target">>) | (Partial<{
100
+ dependencies: boolean;
101
+ projects: never;
102
+ }> & Partial<{
103
+ target: string;
104
+ params: string;
105
+ }> & Required<Pick<{
106
+ target: string;
107
+ params: string;
108
+ }, "target">> & string) | (Partial<{
109
+ dependencies: never;
110
+ projects: string | string[];
111
+ }> & Required<Pick<{
112
+ dependencies: never;
113
+ projects: string | string[];
114
+ }, "projects">> & Partial<{
115
+ target: string;
116
+ params: string;
117
+ }> & Required<Pick<{
118
+ target: string;
119
+ params: string;
120
+ }, "target">>) | (string & Partial<{
121
+ dependencies: never;
122
+ projects: string | string[];
123
+ }> & Required<Pick<{
124
+ dependencies: never;
125
+ projects: string | string[];
126
+ }, "projects">> & Partial<{
127
+ target: string;
128
+ params: string;
129
+ }> & Required<Pick<{
130
+ target: string;
131
+ params: string;
132
+ }, "target">>) | (Partial<{
133
+ dependencies: never;
134
+ projects: string | string[];
135
+ }> & Required<Pick<{
136
+ dependencies: never;
137
+ projects: string | string[];
138
+ }, "projects">> & Partial<{
139
+ target: string;
140
+ params: string;
141
+ }> & Required<Pick<{
142
+ target: string;
143
+ params: string;
144
+ }, "target">> & string))[];
145
+ configurations: (Partial<{
146
+ __lifecycle: import("juniper").EmptyObject;
147
+ }> & Required<Pick<{
148
+ __lifecycle: import("juniper").EmptyObject;
149
+ }, "__lifecycle">>) | (Record<string, unknown> & Partial<{
150
+ __lifecycle: never;
151
+ }>);
152
+ }>>;
153
+ }>, null, "nxJson", false, false, true>] | [import("haywire").NonExtendable<(x: unknown) => asserts x is Record<string, unknown> & Partial<{
154
+ targetDefaults: Record<string, Partial<{
155
+ executor: string;
156
+ dependsOn: (string | (Partial<{
157
+ dependencies: boolean;
158
+ projects: never;
159
+ }> & Partial<{
160
+ target: string;
161
+ params: string;
162
+ }> & Required<Pick<{
163
+ target: string;
164
+ params: string;
165
+ }, "target">>) | (string & Partial<{
166
+ dependencies: boolean;
167
+ projects: never;
168
+ }> & Partial<{
169
+ target: string;
170
+ params: string;
171
+ }> & Required<Pick<{
172
+ target: string;
173
+ params: string;
174
+ }, "target">>) | (Partial<{
175
+ dependencies: boolean;
176
+ projects: never;
177
+ }> & Partial<{
178
+ target: string;
179
+ params: string;
180
+ }> & Required<Pick<{
181
+ target: string;
182
+ params: string;
183
+ }, "target">> & string) | (Partial<{
184
+ dependencies: never;
185
+ projects: string | string[];
186
+ }> & Required<Pick<{
187
+ dependencies: never;
188
+ projects: string | string[];
189
+ }, "projects">> & Partial<{
190
+ target: string;
191
+ params: string;
192
+ }> & Required<Pick<{
193
+ target: string;
194
+ params: string;
195
+ }, "target">>) | (string & Partial<{
196
+ dependencies: never;
197
+ projects: string | string[];
198
+ }> & Required<Pick<{
199
+ dependencies: never;
200
+ projects: string | string[];
201
+ }, "projects">> & Partial<{
202
+ target: string;
203
+ params: string;
204
+ }> & Required<Pick<{
205
+ target: string;
206
+ params: string;
207
+ }, "target">>) | (Partial<{
208
+ dependencies: never;
209
+ projects: string | string[];
210
+ }> & Required<Pick<{
211
+ dependencies: never;
212
+ projects: string | string[];
213
+ }, "projects">> & Partial<{
214
+ target: string;
215
+ params: string;
216
+ }> & Required<Pick<{
217
+ target: string;
218
+ params: string;
219
+ }, "target">> & string))[];
220
+ configurations: (Partial<{
221
+ __lifecycle: import("juniper").EmptyObject;
222
+ }> & Required<Pick<{
223
+ __lifecycle: import("juniper").EmptyObject;
224
+ }, "__lifecycle">>) | (Record<string, unknown> & Partial<{
225
+ __lifecycle: never;
226
+ }>);
227
+ }>>;
228
+ }>, null, "nxJson", false, true, false>] | [import("haywire").NonExtendable<(x: unknown) => asserts x is Record<string, unknown> & Partial<{
229
+ targetDefaults: Record<string, Partial<{
230
+ executor: string;
231
+ dependsOn: (string | (Partial<{
232
+ dependencies: boolean;
233
+ projects: never;
234
+ }> & Partial<{
235
+ target: string;
236
+ params: string;
237
+ }> & Required<Pick<{
238
+ target: string;
239
+ params: string;
240
+ }, "target">>) | (string & Partial<{
241
+ dependencies: boolean;
242
+ projects: never;
243
+ }> & Partial<{
244
+ target: string;
245
+ params: string;
246
+ }> & Required<Pick<{
247
+ target: string;
248
+ params: string;
249
+ }, "target">>) | (Partial<{
250
+ dependencies: boolean;
251
+ projects: never;
252
+ }> & Partial<{
253
+ target: string;
254
+ params: string;
255
+ }> & Required<Pick<{
256
+ target: string;
257
+ params: string;
258
+ }, "target">> & string) | (Partial<{
259
+ dependencies: never;
260
+ projects: string | string[];
261
+ }> & Required<Pick<{
262
+ dependencies: never;
263
+ projects: string | string[];
264
+ }, "projects">> & Partial<{
265
+ target: string;
266
+ params: string;
267
+ }> & Required<Pick<{
268
+ target: string;
269
+ params: string;
270
+ }, "target">>) | (string & Partial<{
271
+ dependencies: never;
272
+ projects: string | string[];
273
+ }> & Required<Pick<{
274
+ dependencies: never;
275
+ projects: string | string[];
276
+ }, "projects">> & Partial<{
277
+ target: string;
278
+ params: string;
279
+ }> & Required<Pick<{
280
+ target: string;
281
+ params: string;
282
+ }, "target">>) | (Partial<{
283
+ dependencies: never;
284
+ projects: string | string[];
285
+ }> & Required<Pick<{
286
+ dependencies: never;
287
+ projects: string | string[];
288
+ }, "projects">> & Partial<{
289
+ target: string;
290
+ params: string;
291
+ }> & Required<Pick<{
292
+ target: string;
293
+ params: string;
294
+ }, "target">> & string))[];
295
+ configurations: (Partial<{
296
+ __lifecycle: import("juniper").EmptyObject;
297
+ }> & Required<Pick<{
298
+ __lifecycle: import("juniper").EmptyObject;
299
+ }, "__lifecycle">>) | (Record<string, unknown> & Partial<{
300
+ __lifecycle: never;
301
+ }>);
302
+ }>>;
303
+ }>, null, "nxJson", false, true, true>] | [import("haywire").NonExtendable<(x: unknown) => asserts x is Record<string, unknown> & Partial<{
304
+ targets: Record<string, Partial<{
305
+ executor: string;
306
+ dependsOn: (string | (Partial<{
307
+ dependencies: boolean;
308
+ projects: never;
309
+ }> & Partial<{
310
+ target: string;
311
+ params: string;
312
+ }> & Required<Pick<{
313
+ target: string;
314
+ params: string;
315
+ }, "target">>) | (string & Partial<{
316
+ dependencies: boolean;
317
+ projects: never;
318
+ }> & Partial<{
319
+ target: string;
320
+ params: string;
321
+ }> & Required<Pick<{
322
+ target: string;
323
+ params: string;
324
+ }, "target">>) | (Partial<{
325
+ dependencies: boolean;
326
+ projects: never;
327
+ }> & Partial<{
328
+ target: string;
329
+ params: string;
330
+ }> & Required<Pick<{
331
+ target: string;
332
+ params: string;
333
+ }, "target">> & string) | (Partial<{
334
+ dependencies: never;
335
+ projects: string | string[];
336
+ }> & Required<Pick<{
337
+ dependencies: never;
338
+ projects: string | string[];
339
+ }, "projects">> & Partial<{
340
+ target: string;
341
+ params: string;
342
+ }> & Required<Pick<{
343
+ target: string;
344
+ params: string;
345
+ }, "target">>) | (string & Partial<{
346
+ dependencies: never;
347
+ projects: string | string[];
348
+ }> & Required<Pick<{
349
+ dependencies: never;
350
+ projects: string | string[];
351
+ }, "projects">> & Partial<{
352
+ target: string;
353
+ params: string;
354
+ }> & Required<Pick<{
355
+ target: string;
356
+ params: string;
357
+ }, "target">>) | (Partial<{
358
+ dependencies: never;
359
+ projects: string | string[];
360
+ }> & Required<Pick<{
361
+ dependencies: never;
362
+ projects: string | string[];
363
+ }, "projects">> & Partial<{
364
+ target: string;
365
+ params: string;
366
+ }> & Required<Pick<{
367
+ target: string;
368
+ params: string;
369
+ }, "target">> & string))[];
370
+ configurations: (Partial<{
371
+ __lifecycle: import("juniper").EmptyObject;
372
+ }> & Required<Pick<{
373
+ __lifecycle: import("juniper").EmptyObject;
374
+ }, "__lifecycle">>) | (Record<string, unknown> & Partial<{
375
+ __lifecycle: never;
376
+ }>);
377
+ }>>;
378
+ }>, null, "projectJson", false, false, false>] | [import("haywire").NonExtendable<(x: unknown) => asserts x is Record<string, unknown> & Partial<{
379
+ targets: Record<string, Partial<{
380
+ executor: string;
381
+ dependsOn: (string | (Partial<{
382
+ dependencies: boolean;
383
+ projects: never;
384
+ }> & Partial<{
385
+ target: string;
386
+ params: string;
387
+ }> & Required<Pick<{
388
+ target: string;
389
+ params: string;
390
+ }, "target">>) | (string & Partial<{
391
+ dependencies: boolean;
392
+ projects: never;
393
+ }> & Partial<{
394
+ target: string;
395
+ params: string;
396
+ }> & Required<Pick<{
397
+ target: string;
398
+ params: string;
399
+ }, "target">>) | (Partial<{
400
+ dependencies: boolean;
401
+ projects: never;
402
+ }> & Partial<{
403
+ target: string;
404
+ params: string;
405
+ }> & Required<Pick<{
406
+ target: string;
407
+ params: string;
408
+ }, "target">> & string) | (Partial<{
409
+ dependencies: never;
410
+ projects: string | string[];
411
+ }> & Required<Pick<{
412
+ dependencies: never;
413
+ projects: string | string[];
414
+ }, "projects">> & Partial<{
415
+ target: string;
416
+ params: string;
417
+ }> & Required<Pick<{
418
+ target: string;
419
+ params: string;
420
+ }, "target">>) | (string & Partial<{
421
+ dependencies: never;
422
+ projects: string | string[];
423
+ }> & Required<Pick<{
424
+ dependencies: never;
425
+ projects: string | string[];
426
+ }, "projects">> & Partial<{
427
+ target: string;
428
+ params: string;
429
+ }> & Required<Pick<{
430
+ target: string;
431
+ params: string;
432
+ }, "target">>) | (Partial<{
433
+ dependencies: never;
434
+ projects: string | string[];
435
+ }> & Required<Pick<{
436
+ dependencies: never;
437
+ projects: string | string[];
438
+ }, "projects">> & Partial<{
439
+ target: string;
440
+ params: string;
441
+ }> & Required<Pick<{
442
+ target: string;
443
+ params: string;
444
+ }, "target">> & string))[];
445
+ configurations: (Partial<{
446
+ __lifecycle: import("juniper").EmptyObject;
447
+ }> & Required<Pick<{
448
+ __lifecycle: import("juniper").EmptyObject;
449
+ }, "__lifecycle">>) | (Record<string, unknown> & Partial<{
450
+ __lifecycle: never;
451
+ }>);
452
+ }>>;
453
+ }>, null, "projectJson", false, false, true>] | [import("haywire").NonExtendable<(x: unknown) => asserts x is Record<string, unknown> & Partial<{
454
+ targets: Record<string, Partial<{
455
+ executor: string;
456
+ dependsOn: (string | (Partial<{
457
+ dependencies: boolean;
458
+ projects: never;
459
+ }> & Partial<{
460
+ target: string;
461
+ params: string;
462
+ }> & Required<Pick<{
463
+ target: string;
464
+ params: string;
465
+ }, "target">>) | (string & Partial<{
466
+ dependencies: boolean;
467
+ projects: never;
468
+ }> & Partial<{
469
+ target: string;
470
+ params: string;
471
+ }> & Required<Pick<{
472
+ target: string;
473
+ params: string;
474
+ }, "target">>) | (Partial<{
475
+ dependencies: boolean;
476
+ projects: never;
477
+ }> & Partial<{
478
+ target: string;
479
+ params: string;
480
+ }> & Required<Pick<{
481
+ target: string;
482
+ params: string;
483
+ }, "target">> & string) | (Partial<{
484
+ dependencies: never;
485
+ projects: string | string[];
486
+ }> & Required<Pick<{
487
+ dependencies: never;
488
+ projects: string | string[];
489
+ }, "projects">> & Partial<{
490
+ target: string;
491
+ params: string;
492
+ }> & Required<Pick<{
493
+ target: string;
494
+ params: string;
495
+ }, "target">>) | (string & Partial<{
496
+ dependencies: never;
497
+ projects: string | string[];
498
+ }> & Required<Pick<{
499
+ dependencies: never;
500
+ projects: string | string[];
501
+ }, "projects">> & Partial<{
502
+ target: string;
503
+ params: string;
504
+ }> & Required<Pick<{
505
+ target: string;
506
+ params: string;
507
+ }, "target">>) | (Partial<{
508
+ dependencies: never;
509
+ projects: string | string[];
510
+ }> & Required<Pick<{
511
+ dependencies: never;
512
+ projects: string | string[];
513
+ }, "projects">> & Partial<{
514
+ target: string;
515
+ params: string;
516
+ }> & Required<Pick<{
517
+ target: string;
518
+ params: string;
519
+ }, "target">> & string))[];
520
+ configurations: (Partial<{
521
+ __lifecycle: import("juniper").EmptyObject;
522
+ }> & Required<Pick<{
523
+ __lifecycle: import("juniper").EmptyObject;
524
+ }, "__lifecycle">>) | (Record<string, unknown> & Partial<{
525
+ __lifecycle: never;
526
+ }>);
527
+ }>>;
528
+ }>, null, "projectJson", false, true, false>] | [import("haywire").NonExtendable<(x: unknown) => asserts x is Record<string, unknown> & Partial<{
529
+ targets: Record<string, Partial<{
530
+ executor: string;
531
+ dependsOn: (string | (Partial<{
532
+ dependencies: boolean;
533
+ projects: never;
534
+ }> & Partial<{
535
+ target: string;
536
+ params: string;
537
+ }> & Required<Pick<{
538
+ target: string;
539
+ params: string;
540
+ }, "target">>) | (string & Partial<{
541
+ dependencies: boolean;
542
+ projects: never;
543
+ }> & Partial<{
544
+ target: string;
545
+ params: string;
546
+ }> & Required<Pick<{
547
+ target: string;
548
+ params: string;
549
+ }, "target">>) | (Partial<{
550
+ dependencies: boolean;
551
+ projects: never;
552
+ }> & Partial<{
553
+ target: string;
554
+ params: string;
555
+ }> & Required<Pick<{
556
+ target: string;
557
+ params: string;
558
+ }, "target">> & string) | (Partial<{
559
+ dependencies: never;
560
+ projects: string | string[];
561
+ }> & Required<Pick<{
562
+ dependencies: never;
563
+ projects: string | string[];
564
+ }, "projects">> & Partial<{
565
+ target: string;
566
+ params: string;
567
+ }> & Required<Pick<{
568
+ target: string;
569
+ params: string;
570
+ }, "target">>) | (string & Partial<{
571
+ dependencies: never;
572
+ projects: string | string[];
573
+ }> & Required<Pick<{
574
+ dependencies: never;
575
+ projects: string | string[];
576
+ }, "projects">> & Partial<{
577
+ target: string;
578
+ params: string;
579
+ }> & Required<Pick<{
580
+ target: string;
581
+ params: string;
582
+ }, "target">>) | (Partial<{
583
+ dependencies: never;
584
+ projects: string | string[];
585
+ }> & Required<Pick<{
586
+ dependencies: never;
587
+ projects: string | string[];
588
+ }, "projects">> & Partial<{
589
+ target: string;
590
+ params: string;
591
+ }> & Required<Pick<{
592
+ target: string;
593
+ params: string;
594
+ }, "target">> & string))[];
595
+ configurations: (Partial<{
596
+ __lifecycle: import("juniper").EmptyObject;
597
+ }> & Required<Pick<{
598
+ __lifecycle: import("juniper").EmptyObject;
599
+ }, "__lifecycle">>) | (Record<string, unknown> & Partial<{
600
+ __lifecycle: never;
601
+ }>);
602
+ }>>;
603
+ }>, null, "projectJson", false, true, true>] | [import("haywire").NonExtendable<typeof import("fs/promises").writeFile, null, null, false, false, false>] | [import("haywire").NonExtendable<typeof import("fs/promises").writeFile, null, null, false, false, true>] | [import("haywire").NonExtendable<typeof import("fs/promises").writeFile, null, null, false, true, false>] | [import("haywire").NonExtendable<typeof import("fs/promises").writeFile, null, null, false, true, true>] | [import("haywire").NonExtendable<typeof import("fs/promises").readFile, null, null, false, false, false>] | [import("haywire").NonExtendable<typeof import("fs/promises").readFile, null, null, false, false, true>] | [import("haywire").NonExtendable<typeof import("fs/promises").readFile, null, null, false, true, false>] | [import("haywire").NonExtendable<typeof import("fs/promises").readFile, null, null, false, true, true>] | [import("haywire").NonExtendable<boolean, null, "isCI", false, false, false>] | [import("haywire").NonExtendable<boolean, null, "isCI", false, false, true>] | [import("haywire").NonExtendable<boolean, null, "isCI", false, true, false>] | [import("haywire").NonExtendable<boolean, null, "isCI", false, true, true>]>;
1
604
  declare const _default: import("haywire-launcher").WrapperMain;
2
605
  export default _default;
3
606
  //# sourceMappingURL=bin.d.ts.map
package/dist/bin.js CHANGED
@@ -4,13 +4,14 @@ import { launch } from 'haywire-launcher';
4
4
  import { LifecycleCli } from './cli.js';
5
5
  import { commandsId, commandsModule } from './commands/index.js';
6
6
  import { consoleErrorId, consoleLogId, exitCodeId } from './commands/lib/dependencies.js';
7
- export default launch(commandsModule.addBinding(bind(EntryScript).withDependencies([
7
+ export const cliContainer = commandsModule.addBinding(bind(EntryScript).withDependencies([
8
8
  LifecycleCli
9
9
  ]).withProvider((cli)=>cli).scoped(singletonScope)).addBinding(bind(LifecycleCli).withDependencies([
10
10
  commandsId.supplier(),
11
11
  consoleLogId,
12
12
  consoleErrorId,
13
13
  exitCodeId
14
- ]).withConstructorProvider().scoped(singletonScope)).toContainer());
14
+ ]).withConstructorProvider().scoped(singletonScope)).toContainer();
15
+ export default launch(cliContainer);
15
16
 
16
17
  //# sourceMappingURL=bin.js.map
package/dist/cli.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { EntryScript } from 'entry-script';
2
1
  import type { Supplier } from 'haywire';
3
2
  import type { ConsoleLog, ExitCode } from './commands/lib/dependencies.js';
4
3
  import type { AbstractCommand } from './commands/lib/types.js';
4
+ import { EntryScript } from 'entry-script';
5
5
  /**
6
6
  * Lifecycle CLI. Run `./bin.mjs --help` for options.
7
7
  *