@baseplate-dev/core-generators 0.2.2 → 0.2.3

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 (106) hide show
  1. package/dist/generators/docker/docker-compose/docker-compose.generator.d.ts +1 -0
  2. package/dist/generators/docker/docker-compose/docker-compose.generator.d.ts.map +1 -1
  3. package/dist/generators/docker/docker-compose/docker-compose.generator.js +31 -1
  4. package/dist/generators/docker/docker-compose/docker-compose.generator.js.map +1 -1
  5. package/dist/generators/docker/docker-compose/postgres.d.ts +2 -0
  6. package/dist/generators/docker/docker-compose/postgres.d.ts.map +1 -1
  7. package/dist/generators/docker/docker-compose/postgres.js +17 -4
  8. package/dist/generators/docker/docker-compose/postgres.js.map +1 -1
  9. package/dist/generators/docker/docker-compose/redis.d.ts +3 -2
  10. package/dist/generators/docker/docker-compose/redis.d.ts.map +1 -1
  11. package/dist/generators/docker/docker-compose/redis.js +15 -4
  12. package/dist/generators/docker/docker-compose/redis.js.map +1 -1
  13. package/dist/generators/docker/docker-compose/types.d.ts +1 -0
  14. package/dist/generators/docker/docker-compose/types.d.ts.map +1 -1
  15. package/dist/generators/node/eslint/react-rules.d.ts.map +1 -1
  16. package/dist/generators/node/eslint/react-rules.js +8 -2
  17. package/dist/generators/node/eslint/react-rules.js.map +1 -1
  18. package/dist/renderers/extractor/plugins/template-paths/paths-file.d.ts.map +1 -1
  19. package/dist/renderers/extractor/plugins/template-paths/paths-file.js +3 -4
  20. package/dist/renderers/extractor/plugins/template-paths/paths-file.js.map +1 -1
  21. package/dist/renderers/extractor/plugins/template-paths/template-paths.plugin.d.ts.map +1 -1
  22. package/dist/renderers/extractor/plugins/template-paths/template-paths.plugin.js +6 -1
  23. package/dist/renderers/extractor/plugins/template-paths/template-paths.plugin.js.map +1 -1
  24. package/dist/renderers/extractor/plugins/typed-templates-file.js +1 -1
  25. package/dist/renderers/extractor/plugins/typed-templates-file.js.map +1 -1
  26. package/dist/renderers/extractor/utils/deduplicate-templates.d.ts.map +1 -1
  27. package/dist/renderers/extractor/utils/deduplicate-templates.js +4 -3
  28. package/dist/renderers/extractor/utils/deduplicate-templates.js.map +1 -1
  29. package/dist/renderers/raw/index.d.ts +1 -0
  30. package/dist/renderers/raw/index.d.ts.map +1 -1
  31. package/dist/renderers/raw/index.js +1 -0
  32. package/dist/renderers/raw/index.js.map +1 -1
  33. package/dist/renderers/raw/raw-template-file-extractor.d.ts +10 -57
  34. package/dist/renderers/raw/raw-template-file-extractor.d.ts.map +1 -1
  35. package/dist/renderers/raw/raw-template-file-extractor.js +34 -18
  36. package/dist/renderers/raw/raw-template-file-extractor.js.map +1 -1
  37. package/dist/renderers/raw/render-raw-template-action.d.ts +2 -2
  38. package/dist/renderers/raw/render-raw-template-action.d.ts.map +1 -1
  39. package/dist/renderers/raw/render-raw-template-action.js +5 -10
  40. package/dist/renderers/raw/render-raw-template-action.js.map +1 -1
  41. package/dist/renderers/raw/render-raw-template-renderers.d.ts +10 -0
  42. package/dist/renderers/raw/render-raw-template-renderers.d.ts.map +1 -0
  43. package/dist/renderers/raw/render-raw-template-renderers.js +51 -0
  44. package/dist/renderers/raw/render-raw-template-renderers.js.map +1 -0
  45. package/dist/renderers/raw/types.d.ts +5 -67
  46. package/dist/renderers/raw/types.d.ts.map +1 -1
  47. package/dist/renderers/raw/types.js +2 -12
  48. package/dist/renderers/raw/types.js.map +1 -1
  49. package/dist/renderers/text/index.d.ts +1 -0
  50. package/dist/renderers/text/index.d.ts.map +1 -1
  51. package/dist/renderers/text/index.js +1 -0
  52. package/dist/renderers/text/index.js.map +1 -1
  53. package/dist/renderers/text/render-text-template-file-action.d.ts +1 -1
  54. package/dist/renderers/text/render-text-template-file-action.d.ts.map +1 -1
  55. package/dist/renderers/text/render-text-template-file-action.js +10 -19
  56. package/dist/renderers/text/render-text-template-file-action.js.map +1 -1
  57. package/dist/renderers/text/render-text-template-group-action.d.ts +1 -1
  58. package/dist/renderers/text/render-text-template-group-action.d.ts.map +1 -1
  59. package/dist/renderers/text/render-text-template-renderers.d.ts +10 -0
  60. package/dist/renderers/text/render-text-template-renderers.d.ts.map +1 -0
  61. package/dist/renderers/text/render-text-template-renderers.js +79 -0
  62. package/dist/renderers/text/render-text-template-renderers.js.map +1 -0
  63. package/dist/renderers/text/render-text-typed-templates.js +6 -6
  64. package/dist/renderers/text/render-text-typed-templates.js.map +1 -1
  65. package/dist/renderers/text/text-template-file-extractor.d.ts +14 -82
  66. package/dist/renderers/text/text-template-file-extractor.d.ts.map +1 -1
  67. package/dist/renderers/text/text-template-file-extractor.js +37 -22
  68. package/dist/renderers/text/text-template-file-extractor.js.map +1 -1
  69. package/dist/renderers/text/types.d.ts +12 -97
  70. package/dist/renderers/text/types.d.ts.map +1 -1
  71. package/dist/renderers/text/types.js +4 -21
  72. package/dist/renderers/text/types.js.map +1 -1
  73. package/dist/renderers/text/utils.d.ts +1 -2
  74. package/dist/renderers/text/utils.d.ts.map +1 -1
  75. package/dist/renderers/text/utils.js +2 -7
  76. package/dist/renderers/text/utils.js.map +1 -1
  77. package/dist/renderers/typescript/actions/render-ts-template-file-action.d.ts.map +1 -1
  78. package/dist/renderers/typescript/actions/render-ts-template-file-action.js +9 -13
  79. package/dist/renderers/typescript/actions/render-ts-template-file-action.js.map +1 -1
  80. package/dist/renderers/typescript/extractor/build-ts-project-export-map.d.ts +3 -1
  81. package/dist/renderers/typescript/extractor/build-ts-project-export-map.d.ts.map +1 -1
  82. package/dist/renderers/typescript/extractor/build-ts-project-export-map.js +14 -6
  83. package/dist/renderers/typescript/extractor/build-ts-project-export-map.js.map +1 -1
  84. package/dist/renderers/typescript/extractor/organize-ts-template-imports.js +1 -1
  85. package/dist/renderers/typescript/extractor/organize-ts-template-imports.js.map +1 -1
  86. package/dist/renderers/typescript/extractor/render-ts-import-providers.d.ts +2 -2
  87. package/dist/renderers/typescript/extractor/render-ts-import-providers.d.ts.map +1 -1
  88. package/dist/renderers/typescript/extractor/render-ts-import-providers.js +1 -1
  89. package/dist/renderers/typescript/extractor/render-ts-import-providers.js.map +1 -1
  90. package/dist/renderers/typescript/extractor/render-ts-template-renderers.d.ts +2 -2
  91. package/dist/renderers/typescript/extractor/render-ts-template-renderers.d.ts.map +1 -1
  92. package/dist/renderers/typescript/extractor/render-ts-template-renderers.js +5 -5
  93. package/dist/renderers/typescript/extractor/render-ts-template-renderers.js.map +1 -1
  94. package/dist/renderers/typescript/extractor/render-ts-typed-templates.d.ts +2 -2
  95. package/dist/renderers/typescript/extractor/render-ts-typed-templates.d.ts.map +1 -1
  96. package/dist/renderers/typescript/extractor/render-ts-typed-templates.js +12 -8
  97. package/dist/renderers/typescript/extractor/render-ts-typed-templates.js.map +1 -1
  98. package/dist/renderers/typescript/extractor/ts-template-file-extractor.d.ts +83 -158
  99. package/dist/renderers/typescript/extractor/ts-template-file-extractor.d.ts.map +1 -1
  100. package/dist/renderers/typescript/extractor/ts-template-file-extractor.js +46 -18
  101. package/dist/renderers/typescript/extractor/ts-template-file-extractor.js.map +1 -1
  102. package/dist/renderers/typescript/templates/types.d.ts +9 -104
  103. package/dist/renderers/typescript/templates/types.d.ts.map +1 -1
  104. package/dist/renderers/typescript/templates/types.js +1 -24
  105. package/dist/renderers/typescript/templates/types.js.map +1 -1
  106. package/package.json +4 -4
@@ -33,8 +33,8 @@ declare const tsTemplateFileProjectExportSchema: z.ZodObject<{
33
33
  exportedAs?: string | undefined;
34
34
  }>;
35
35
  export type TsTemplateFileProjectExport = z.infer<typeof tsTemplateFileProjectExportSchema>;
36
- export declare const tsTemplateGeneratorTemplateMetadataSchema: z.ZodObject<z.objectUtil.extendShape<{
37
- name: z.ZodString;
36
+ export declare const tsTemplateMetadataSchema: z.ZodObject<z.objectUtil.extendShape<{
37
+ sourceFile: z.ZodString;
38
38
  type: z.ZodString;
39
39
  }, {
40
40
  /**
@@ -119,7 +119,7 @@ export declare const tsTemplateGeneratorTemplateMetadataSchema: z.ZodObject<z.ob
119
119
  */
120
120
  prefix: z.ZodOptional<z.ZodString>;
121
121
  }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
122
- name: z.ZodString;
122
+ sourceFile: z.ZodString;
123
123
  type: z.ZodString;
124
124
  }, {
125
125
  /**
@@ -204,7 +204,7 @@ export declare const tsTemplateGeneratorTemplateMetadataSchema: z.ZodObject<z.ob
204
204
  */
205
205
  prefix: z.ZodOptional<z.ZodString>;
206
206
  }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
207
- name: z.ZodString;
207
+ sourceFile: z.ZodString;
208
208
  type: z.ZodString;
209
209
  }, {
210
210
  /**
@@ -289,106 +289,7 @@ export declare const tsTemplateGeneratorTemplateMetadataSchema: z.ZodObject<z.ob
289
289
  */
290
290
  prefix: z.ZodOptional<z.ZodString>;
291
291
  }>, z.ZodTypeAny, "passthrough">>;
292
- export type TsGeneratorTemplateMetadata = z.infer<typeof tsTemplateGeneratorTemplateMetadataSchema>;
293
- export declare const tsTemplateOutputTemplateMetadataSchema: z.ZodObject<z.objectUtil.extendShape<{
294
- name: z.ZodString;
295
- type: z.ZodString;
296
- generator: z.ZodString;
297
- }, {
298
- type: z.ZodLiteral<"ts">;
299
- /**
300
- * The options for the template file
301
- */
302
- fileOptions: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
303
- kind: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"singleton">>>;
304
- generatorTemplatePath: z.ZodOptional<z.ZodString>;
305
- pathRootRelativePath: z.ZodOptional<z.ZodString>;
306
- }, "strip", z.ZodTypeAny, {
307
- kind: "singleton";
308
- generatorTemplatePath?: string | undefined;
309
- pathRootRelativePath?: string | undefined;
310
- }, {
311
- kind?: "singleton" | undefined;
312
- generatorTemplatePath?: string | undefined;
313
- pathRootRelativePath?: string | undefined;
314
- }>, z.ZodObject<{
315
- kind: z.ZodLiteral<"instance">;
316
- generatorTemplatePath: z.ZodString;
317
- }, "strip", z.ZodTypeAny, {
318
- kind: "instance";
319
- generatorTemplatePath: string;
320
- }, {
321
- kind: "instance";
322
- generatorTemplatePath: string;
323
- }>]>>;
324
- /**
325
- * The group of templates that this template belongs to.
326
- */
327
- group: z.ZodOptional<z.ZodString>;
328
- /**
329
- * The exports of the file that are unique across the project.
330
- */
331
- projectExports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
332
- /**
333
- * Whether the export is a type only export.
334
- */
335
- isTypeOnly: z.ZodOptional<z.ZodBoolean>;
336
- /**
337
- * The name this symbol is exported as from the module. Use `default` for default exports.
338
- *
339
- * Defaults to the key of the entry.
340
- */
341
- exportedAs: z.ZodOptional<z.ZodString>;
342
- }, "strip", z.ZodTypeAny, {
343
- isTypeOnly?: boolean | undefined;
344
- exportedAs?: string | undefined;
345
- }, {
346
- isTypeOnly?: boolean | undefined;
347
- exportedAs?: string | undefined;
348
- }>>>;
349
- /**
350
- * Whether the template is only providing exports and we should not attempt to extract
351
- * the contents of the template.
352
- */
353
- projectExportsOnly: z.ZodOptional<z.ZodBoolean>;
354
- }>, "strip", z.ZodTypeAny, {
355
- type: "ts";
356
- name: string;
357
- fileOptions: {
358
- kind: "singleton";
359
- generatorTemplatePath?: string | undefined;
360
- pathRootRelativePath?: string | undefined;
361
- } | {
362
- kind: "instance";
363
- generatorTemplatePath: string;
364
- };
365
- generator: string;
366
- group?: string | undefined;
367
- projectExports?: Record<string, {
368
- isTypeOnly?: boolean | undefined;
369
- exportedAs?: string | undefined;
370
- }> | undefined;
371
- projectExportsOnly?: boolean | undefined;
372
- }, {
373
- type: "ts";
374
- name: string;
375
- generator: string;
376
- fileOptions?: {
377
- kind?: "singleton" | undefined;
378
- generatorTemplatePath?: string | undefined;
379
- pathRootRelativePath?: string | undefined;
380
- } | {
381
- kind: "instance";
382
- generatorTemplatePath: string;
383
- } | undefined;
384
- group?: string | undefined;
385
- projectExports?: Record<string, {
386
- isTypeOnly?: boolean | undefined;
387
- exportedAs?: string | undefined;
388
- }> | undefined;
389
- projectExportsOnly?: boolean | undefined;
390
- }>;
391
- export type TsTemplateOutputTemplateMetadata = z.infer<typeof tsTemplateOutputTemplateMetadataSchema>;
292
+ export type TsTemplateMetadata = z.infer<typeof tsTemplateMetadataSchema>;
392
293
  export interface TsTemplateFileVariable {
393
294
  }
394
295
  export type TsTemplateVariableMap = Record<string, TsTemplateFileVariable>;
@@ -417,6 +318,10 @@ export interface TsTemplateFile<TVariables extends TsTemplateVariableMap = Recor
417
318
  * The options for the template file
418
319
  */
419
320
  fileOptions: TemplateFileOptions;
321
+ /**
322
+ * Whether the template is only exporting types and this file should not be written.
323
+ */
324
+ projectExportsOnly?: boolean;
420
325
  }
421
326
  export type TsTemplateFileVariableValue = TsCodeFragment | string;
422
327
  export type InferTsTemplateVariablesFromMap<TMap extends TsTemplateVariableMap> = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/templates/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAEjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AAEzD,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAIrC,QAAA,MAAM,kCAAkC;;;;;;;;;EAGtC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,QAAA,MAAM,iCAAiC;IACrC;;OAEG;;IAEH;;;;OAIG;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,yCAAyC;UArCjD,EAAI,SAAQ;UACsD,EAAG,SAAS;;IAsC/E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2B;CAC/C,CAAC;AAEF,MAAM,MAAM,0CAA0C,CACpD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAAS,IAChD,OAAO,CACT;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACxC,EACD,SAAS,CACV,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,UAAU,SAAS,qBAAqB,GAAG,MAAM,CAC/C,KAAK,EACL,sBAAsB,CACvB,EACD,mBAAmB,SAAS,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,MAAM,CAC/D,KAAK,EACL,YAAY,CACb,EAED,IAAI,EAAE,cAAc,CAAC,UAAU,EAAE,mBAAmB,CAAC,GACpD,cAAc,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAEjD;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- import { templateFileMetadataBaseSchema, } from '@baseplate-dev/sync';
2
1
  import { z } from 'zod';
3
2
  import { CASE_VALIDATORS } from '@baseplate-dev/utils';
4
3
  import { templateConfigSchema } from '../../../../../sync/dist/templates/extractor/index.js';
@@ -21,7 +20,7 @@ const tsTemplateFileProjectExportSchema = z.object({
21
20
  */
22
21
  exportedAs: z.string().optional(),
23
22
  });
24
- export const tsTemplateGeneratorTemplateMetadataSchema = templateConfigSchema.extend({
23
+ export const tsTemplateMetadataSchema = templateConfigSchema.extend({
25
24
  /**
26
25
  * The options for the template file
27
26
  */
@@ -61,28 +60,6 @@ export const tsTemplateGeneratorTemplateMetadataSchema = templateConfigSchema.ex
61
60
  */
62
61
  prefix: z.string().optional(),
63
62
  });
64
- export const tsTemplateOutputTemplateMetadataSchema = templateFileMetadataBaseSchema.extend({
65
- type: z.literal(TS_TEMPLATE_TYPE),
66
- /**
67
- * The options for the template file
68
- */
69
- fileOptions: templateFileOptionsSchema,
70
- /**
71
- * The group of templates that this template belongs to.
72
- */
73
- group: CASE_VALIDATORS.KEBAB_CASE.optional(),
74
- /**
75
- * The exports of the file that are unique across the project.
76
- */
77
- projectExports: z
78
- .record(z.string(), tsTemplateFileProjectExportSchema)
79
- .optional(),
80
- /**
81
- * Whether the template is only providing exports and we should not attempt to extract
82
- * the contents of the template.
83
- */
84
- projectExportsOnly: z.boolean().optional(),
85
- });
86
63
  export function createTsTemplateFile(file) {
87
64
  return file;
88
65
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/renderers/typescript/templates/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,8BAA8B,GAC/B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAC7F,OAAO,EAEL,yBAAyB,GAC1B,MAAM,iDAAiD,CAAC;AAEzD,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAErC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAElD,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE;CACjC,CAAC,CAAC;AAMH,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD;;OAEG;IACH,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC;;;;OAIG;IACH,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,yCAAyC,GACpD,oBAAoB,CAAC,MAAM,CAAC;IAC1B;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;SACtD,QAAQ,EAAE;IACb;;;OAGG;IACH,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC1C;;OAEG;IACH,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,4BAA4B,CAAC,CAAC,QAAQ,EAAE;IACxE;;;OAGG;IACH,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAiEH,MAAM,UAAU,oBAAoB,CAUlC,IAAqD;IAErD,OAAO,IAAI,CAAC;AACd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseplate-dev/core-generators",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Core generators for Baseplate",
5
5
  "keywords": [
6
6
  "code-generation",
@@ -59,8 +59,8 @@
59
59
  "sort-package-json": "2.10.1",
60
60
  "ts-morph": "25.0.0",
61
61
  "zod": "3.24.1",
62
- "@baseplate-dev/sync": "0.2.2",
63
- "@baseplate-dev/utils": "0.2.2"
62
+ "@baseplate-dev/sync": "0.2.3",
63
+ "@baseplate-dev/utils": "0.2.3"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/node": "^22.0.0",
@@ -71,7 +71,7 @@
71
71
  "eslint": "9.26.0",
72
72
  "typescript": "5.7.3",
73
73
  "vitest": "3.0.7",
74
- "@baseplate-dev/tools": "0.2.2"
74
+ "@baseplate-dev/tools": "0.2.3"
75
75
  },
76
76
  "engines": {
77
77
  "node": "^22.0.0"