@tanstack/cta-engine 0.35.0 → 0.36.2

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.
@@ -35,7 +35,7 @@ async function writeFiles(environment, options) {
35
35
  await writeFileBundle(options.framework);
36
36
  environment.finishStep('write-framework-files', 'Framework files written');
37
37
  let wroteAddonFiles = false;
38
- for (const type of ['add-on', 'example', 'toolchain', 'host']) {
38
+ for (const type of ['add-on', 'example', 'toolchain', 'deployment']) {
39
39
  for (const phase of ['setup', 'add-on', 'example']) {
40
40
  for (const addOn of options.chosenAddOns.filter((addOn) => addOn.phase === phase && addOn.type === type)) {
41
41
  environment.startStep({
@@ -182,7 +182,7 @@ Use the following commands to start your app:
182
182
  % cd ${options.projectName}
183
183
  % ${formatCommand(getPackageManagerScriptCommand(options.packageManager, ['dev']))}
184
184
 
185
- Please read the README.md for information on testing, styling, adding routes, etc.${errorStatement}`);
185
+ Please check the README.md for information on testing, styling, adding routes, etc.${errorStatement}`);
186
186
  }
187
187
  export async function createApp(environment, options) {
188
188
  environment.startRun();
@@ -12,7 +12,7 @@ export declare function validateAddOnSetup(environment: Environment): Promise<vo
12
12
  export declare function readOrGenerateAddOnInfo(options: PersistedOptions): Promise<AddOnInfo>;
13
13
  export declare function generateProject(persistedOptions: PersistedOptions): Promise<{
14
14
  info: {
15
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
15
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
16
16
  description: string;
17
17
  id: string;
18
18
  name: string;
@@ -112,7 +112,7 @@ export declare const AddOnBaseSchema: z.ZodObject<{
112
112
  link: z.ZodOptional<z.ZodString>;
113
113
  license: z.ZodOptional<z.ZodString>;
114
114
  warning: z.ZodOptional<z.ZodString>;
115
- type: z.ZodEnum<["add-on", "example", "starter", "toolchain", "host"]>;
115
+ type: z.ZodEnum<["add-on", "example", "starter", "toolchain", "deployment"]>;
116
116
  priority: z.ZodOptional<z.ZodNumber>;
117
117
  command: z.ZodOptional<z.ZodObject<{
118
118
  command: z.ZodString;
@@ -196,7 +196,7 @@ export declare const AddOnBaseSchema: z.ZodObject<{
196
196
  }>]>>>;
197
197
  default: z.ZodOptional<z.ZodBoolean>;
198
198
  }, "strip", z.ZodTypeAny, {
199
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
199
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
200
200
  description: string;
201
201
  id: string;
202
202
  name: string;
@@ -240,7 +240,7 @@ export declare const AddOnBaseSchema: z.ZodObject<{
240
240
  createSpecialSteps?: string[] | undefined;
241
241
  postInitSpecialSteps?: string[] | undefined;
242
242
  }, {
243
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
243
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
244
244
  description: string;
245
245
  id: string;
246
246
  name: string;
@@ -293,7 +293,7 @@ export declare const StarterSchema: z.ZodObject<{
293
293
  link: z.ZodOptional<z.ZodString>;
294
294
  license: z.ZodOptional<z.ZodString>;
295
295
  warning: z.ZodOptional<z.ZodString>;
296
- type: z.ZodEnum<["add-on", "example", "starter", "toolchain", "host"]>;
296
+ type: z.ZodEnum<["add-on", "example", "starter", "toolchain", "deployment"]>;
297
297
  priority: z.ZodOptional<z.ZodNumber>;
298
298
  command: z.ZodOptional<z.ZodObject<{
299
299
  command: z.ZodString;
@@ -383,7 +383,7 @@ export declare const StarterSchema: z.ZodObject<{
383
383
  tailwind: z.ZodBoolean;
384
384
  banner: z.ZodOptional<z.ZodString>;
385
385
  }, "strip", z.ZodTypeAny, {
386
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
386
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
387
387
  description: string;
388
388
  id: string;
389
389
  name: string;
@@ -432,7 +432,7 @@ export declare const StarterSchema: z.ZodObject<{
432
432
  postInitSpecialSteps?: string[] | undefined;
433
433
  banner?: string | undefined;
434
434
  }, {
435
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
435
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
436
436
  description: string;
437
437
  id: string;
438
438
  name: string;
@@ -490,7 +490,7 @@ export declare const StarterCompiledSchema: z.ZodObject<{
490
490
  link: z.ZodOptional<z.ZodString>;
491
491
  license: z.ZodOptional<z.ZodString>;
492
492
  warning: z.ZodOptional<z.ZodString>;
493
- type: z.ZodEnum<["add-on", "example", "starter", "toolchain", "host"]>;
493
+ type: z.ZodEnum<["add-on", "example", "starter", "toolchain", "deployment"]>;
494
494
  priority: z.ZodOptional<z.ZodNumber>;
495
495
  command: z.ZodOptional<z.ZodObject<{
496
496
  command: z.ZodString;
@@ -583,7 +583,7 @@ export declare const StarterCompiledSchema: z.ZodObject<{
583
583
  files: z.ZodRecord<z.ZodString, z.ZodString>;
584
584
  deletedFiles: z.ZodArray<z.ZodString, "many">;
585
585
  }, "strip", z.ZodTypeAny, {
586
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
586
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
587
587
  description: string;
588
588
  id: string;
589
589
  name: string;
@@ -634,7 +634,7 @@ export declare const StarterCompiledSchema: z.ZodObject<{
634
634
  postInitSpecialSteps?: string[] | undefined;
635
635
  banner?: string | undefined;
636
636
  }, {
637
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
637
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
638
638
  description: string;
639
639
  id: string;
640
640
  name: string;
@@ -713,7 +713,7 @@ export declare const AddOnInfoSchema: z.ZodObject<{
713
713
  link: z.ZodOptional<z.ZodString>;
714
714
  license: z.ZodOptional<z.ZodString>;
715
715
  warning: z.ZodOptional<z.ZodString>;
716
- type: z.ZodEnum<["add-on", "example", "starter", "toolchain", "host"]>;
716
+ type: z.ZodEnum<["add-on", "example", "starter", "toolchain", "deployment"]>;
717
717
  priority: z.ZodOptional<z.ZodNumber>;
718
718
  command: z.ZodOptional<z.ZodObject<{
719
719
  command: z.ZodString;
@@ -820,7 +820,7 @@ export declare const AddOnInfoSchema: z.ZodObject<{
820
820
  phase: z.ZodEnum<["setup", "add-on"]>;
821
821
  readme: z.ZodOptional<z.ZodString>;
822
822
  }, "strip", z.ZodTypeAny, {
823
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
823
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
824
824
  description: string;
825
825
  id: string;
826
826
  name: string;
@@ -874,7 +874,7 @@ export declare const AddOnInfoSchema: z.ZodObject<{
874
874
  }[] | undefined;
875
875
  readme?: string | undefined;
876
876
  }, {
877
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
877
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
878
878
  description: string;
879
879
  id: string;
880
880
  name: string;
@@ -937,7 +937,7 @@ export declare const AddOnCompiledSchema: z.ZodObject<{
937
937
  link: z.ZodOptional<z.ZodString>;
938
938
  license: z.ZodOptional<z.ZodString>;
939
939
  warning: z.ZodOptional<z.ZodString>;
940
- type: z.ZodEnum<["add-on", "example", "starter", "toolchain", "host"]>;
940
+ type: z.ZodEnum<["add-on", "example", "starter", "toolchain", "deployment"]>;
941
941
  priority: z.ZodOptional<z.ZodNumber>;
942
942
  command: z.ZodOptional<z.ZodObject<{
943
943
  command: z.ZodString;
@@ -1048,7 +1048,7 @@ export declare const AddOnCompiledSchema: z.ZodObject<{
1048
1048
  deletedFiles: z.ZodArray<z.ZodString, "many">;
1049
1049
  packageTemplate: z.ZodOptional<z.ZodString>;
1050
1050
  }, "strip", z.ZodTypeAny, {
1051
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
1051
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
1052
1052
  description: string;
1053
1053
  id: string;
1054
1054
  name: string;
@@ -1105,7 +1105,7 @@ export declare const AddOnCompiledSchema: z.ZodObject<{
1105
1105
  readme?: string | undefined;
1106
1106
  packageTemplate?: string | undefined;
1107
1107
  }, {
1108
- type: "add-on" | "example" | "starter" | "toolchain" | "host";
1108
+ type: "add-on" | "example" | "starter" | "toolchain" | "deployment";
1109
1109
  description: string;
1110
1110
  id: string;
1111
1111
  name: string;
package/dist/types.js CHANGED
@@ -22,7 +22,7 @@ export const AddOnBaseSchema = z.object({
22
22
  link: z.string().optional(),
23
23
  license: z.string().optional(),
24
24
  warning: z.string().optional(),
25
- type: z.enum(['add-on', 'example', 'starter', 'toolchain', 'host']),
25
+ type: z.enum(['add-on', 'example', 'starter', 'toolchain', 'deployment']),
26
26
  priority: z.number().optional(),
27
27
  command: z
28
28
  .object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/cta-engine",
3
- "version": "0.35.0",
3
+ "version": "0.36.2",
4
4
  "description": "Tanstack Application Builder Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/create-app.ts CHANGED
@@ -48,7 +48,7 @@ async function writeFiles(environment: Environment, options: Options) {
48
48
  environment.finishStep('write-framework-files', 'Framework files written')
49
49
 
50
50
  let wroteAddonFiles = false
51
- for (const type of ['add-on', 'example', 'toolchain', 'host']) {
51
+ for (const type of ['add-on', 'example', 'toolchain', 'deployment']) {
52
52
  for (const phase of ['setup', 'add-on', 'example']) {
53
53
  for (const addOn of options.chosenAddOns.filter(
54
54
  (addOn) => addOn.phase === phase && addOn.type === type,
@@ -251,7 +251,7 @@ Use the following commands to start your app:
251
251
  getPackageManagerScriptCommand(options.packageManager, ['dev']),
252
252
  )}
253
253
 
254
- Please read the README.md for information on testing, styling, adding routes, etc.${errorStatement}`,
254
+ Please check the README.md for information on testing, styling, adding routes, etc.${errorStatement}`,
255
255
  )
256
256
  }
257
257
 
package/src/types.ts CHANGED
@@ -37,7 +37,7 @@ export const AddOnBaseSchema = z.object({
37
37
  link: z.string().optional(),
38
38
  license: z.string().optional(),
39
39
  warning: z.string().optional(),
40
- type: z.enum(['add-on', 'example', 'starter', 'toolchain', 'host']),
40
+ type: z.enum(['add-on', 'example', 'starter', 'toolchain', 'deployment']),
41
41
  priority: z.number().optional(),
42
42
  command: z
43
43
  .object({