@baseplate-dev/core-generators 0.3.3 → 0.3.4
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.
- package/dist/constants/core-packages.d.ts +1 -1
- package/dist/constants/core-packages.js +1 -1
- package/dist/constants/node.d.ts +2 -2
- package/dist/constants/node.d.ts.map +1 -1
- package/dist/constants/node.js +2 -2
- package/dist/constants/node.js.map +1 -1
- package/dist/generators/node/_composers/node.d.ts.map +1 -1
- package/dist/renderers/raw/raw-template-file-extractor.d.ts +7 -7
- package/dist/renderers/raw/types.d.ts +7 -7
- package/dist/renderers/raw/types.d.ts.map +1 -1
- package/dist/renderers/text/text-template-file-extractor.d.ts +7 -7
- package/dist/renderers/text/types.d.ts +7 -7
- package/dist/renderers/text/types.d.ts.map +1 -1
- package/dist/renderers/typescript/extractor/ts-template-file-extractor.d.ts +7 -7
- package/dist/renderers/typescript/extractor/ts-template-file-extractor.d.ts.map +1 -1
- package/dist/renderers/typescript/templates/types.d.ts +7 -7
- package/dist/renderers/typescript/templates/types.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/constants/node.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const NODE_VERSION = "22.
|
|
2
|
-
export declare const PNPM_VERSION = "10.
|
|
1
|
+
export declare const NODE_VERSION = "22.18.0";
|
|
2
|
+
export declare const PNPM_VERSION = "10.15.0";
|
|
3
3
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/constants/node.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/constants/node.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,YAAY,YAAY,CAAC"}
|
package/dist/constants/node.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const NODE_VERSION = '22.
|
|
2
|
-
export const PNPM_VERSION = '10.
|
|
1
|
+
export const NODE_VERSION = '22.18.0';
|
|
2
|
+
export const PNPM_VERSION = '10.15.0';
|
|
3
3
|
//# sourceMappingURL=node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/constants/node.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC;AACtC,MAAM,CAAC,MAAM,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/constants/node.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC;AACtC,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/generators/node/_composers/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,4BAA4B,EAC7B,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/generators/node/_composers/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,4BAA4B,EAC7B,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,eAAO,MAAM,oBAAoB,GAC/B,YAAY,4BAA4B,CAAC,OAAO,aAAa,CAAC,KAC7D,eAYC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const RawTemplateFileExtractor: import("@baseplate-dev/sync").TemplateFileExtractor<import("zod").ZodObject<
|
|
1
|
+
export declare const RawTemplateFileExtractor: import("@baseplate-dev/sync").TemplateFileExtractor<import("zod").ZodObject<{
|
|
2
2
|
sourceFile: import("zod").ZodString;
|
|
3
3
|
type: import("zod").ZodString;
|
|
4
|
-
}
|
|
4
|
+
} & {
|
|
5
5
|
fileOptions: import("zod").ZodDefault<import("zod").ZodDiscriminatedUnion<"kind", [import("zod").ZodObject<{
|
|
6
6
|
kind: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodLiteral<"singleton">>>;
|
|
7
7
|
generatorTemplatePath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -25,10 +25,10 @@ export declare const RawTemplateFileExtractor: import("@baseplate-dev/sync").Tem
|
|
|
25
25
|
generatorTemplatePath: string;
|
|
26
26
|
}>]>>;
|
|
27
27
|
pathRootRelativePath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
|
-
}
|
|
28
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
29
29
|
sourceFile: import("zod").ZodString;
|
|
30
30
|
type: import("zod").ZodString;
|
|
31
|
-
}
|
|
31
|
+
} & {
|
|
32
32
|
fileOptions: import("zod").ZodDefault<import("zod").ZodDiscriminatedUnion<"kind", [import("zod").ZodObject<{
|
|
33
33
|
kind: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodLiteral<"singleton">>>;
|
|
34
34
|
generatorTemplatePath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -52,10 +52,10 @@ export declare const RawTemplateFileExtractor: import("@baseplate-dev/sync").Tem
|
|
|
52
52
|
generatorTemplatePath: string;
|
|
53
53
|
}>]>>;
|
|
54
54
|
pathRootRelativePath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
-
}
|
|
55
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
56
56
|
sourceFile: import("zod").ZodString;
|
|
57
57
|
type: import("zod").ZodString;
|
|
58
|
-
}
|
|
58
|
+
} & {
|
|
59
59
|
fileOptions: import("zod").ZodDefault<import("zod").ZodDiscriminatedUnion<"kind", [import("zod").ZodObject<{
|
|
60
60
|
kind: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodLiteral<"singleton">>>;
|
|
61
61
|
generatorTemplatePath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -79,7 +79,7 @@ export declare const RawTemplateFileExtractor: import("@baseplate-dev/sync").Tem
|
|
|
79
79
|
generatorTemplatePath: string;
|
|
80
80
|
}>]>>;
|
|
81
81
|
pathRootRelativePath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
-
}
|
|
82
|
+
}, import("zod").ZodTypeAny, "passthrough">>, import("zod").AnyZodObject, import("zod").ZodUnknown, (import("@baseplate-dev/sync").TemplateExtractorPlugin<"template-paths", {
|
|
83
83
|
getPathRootRelativePath: (absolutePath: string) => string;
|
|
84
84
|
getTemplatePathFromPathRootRelativePath: (pathRootRelativePath: string) => string;
|
|
85
85
|
registerTemplatePathEntry: (generatorName: string, templateName: string, pathRootRelativePath: string) => void;
|
|
@@ -2,10 +2,10 @@ import type { TemplateFileBase } from '@baseplate-dev/sync';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import type { TemplateFileOptions } from '../schemas/template-file-options.js';
|
|
4
4
|
export declare const RAW_TEMPLATE_TYPE = "raw";
|
|
5
|
-
export declare const rawTemplateMetadataSchema: z.ZodObject<
|
|
5
|
+
export declare const rawTemplateMetadataSchema: z.ZodObject<{
|
|
6
6
|
sourceFile: z.ZodString;
|
|
7
7
|
type: z.ZodString;
|
|
8
|
-
}
|
|
8
|
+
} & {
|
|
9
9
|
/**
|
|
10
10
|
* The options for the template file
|
|
11
11
|
*/
|
|
@@ -35,10 +35,10 @@ export declare const rawTemplateMetadataSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
35
35
|
* The path of the template relative to the closest file path root.
|
|
36
36
|
*/
|
|
37
37
|
pathRootRelativePath: z.ZodOptional<z.ZodString>;
|
|
38
|
-
}
|
|
38
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
39
39
|
sourceFile: z.ZodString;
|
|
40
40
|
type: z.ZodString;
|
|
41
|
-
}
|
|
41
|
+
} & {
|
|
42
42
|
/**
|
|
43
43
|
* The options for the template file
|
|
44
44
|
*/
|
|
@@ -68,10 +68,10 @@ export declare const rawTemplateMetadataSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
68
68
|
* The path of the template relative to the closest file path root.
|
|
69
69
|
*/
|
|
70
70
|
pathRootRelativePath: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}
|
|
71
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
72
72
|
sourceFile: z.ZodString;
|
|
73
73
|
type: z.ZodString;
|
|
74
|
-
}
|
|
74
|
+
} & {
|
|
75
75
|
/**
|
|
76
76
|
* The options for the template file
|
|
77
77
|
*/
|
|
@@ -101,7 +101,7 @@ export declare const rawTemplateMetadataSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
101
101
|
* The path of the template relative to the closest file path root.
|
|
102
102
|
*/
|
|
103
103
|
pathRootRelativePath: z.ZodOptional<z.ZodString>;
|
|
104
|
-
}
|
|
104
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
105
105
|
export type RawTemplateMetadata = z.infer<typeof rawTemplateMetadataSchema>;
|
|
106
106
|
/**
|
|
107
107
|
* A template for a raw file with no replacements.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/renderers/raw/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAI/E,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AAEvC,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/renderers/raw/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAI/E,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AAEvC,eAAO,MAAM,yBAAyB;;;;IACpC;;OAEG;;;;;;;;;;;;;;;;;;;;;;;IAEH;;OAEG;;;;;;IANH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;IAEH;;OAEG;;;;;;IANH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;IAEH;;OAEG;;gCAEH,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,WAAW,eAAe,CAC9B,YAAY,SAAS,mBAAmB,GAAG,mBAAmB,CAC9D,SAAQ,gBAAgB;IACxB,WAAW,EAAE,YAAY,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,SAAS,mBAAmB,EAC5E,YAAY,EAAE,eAAe,CAAC,YAAY,CAAC,GAC1C,eAAe,CAAC,YAAY,CAAC,CAE/B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const TextTemplateFileExtractor: import("@baseplate-dev/sync").TemplateFileExtractor<import("zod").ZodObject<
|
|
1
|
+
export declare const TextTemplateFileExtractor: import("@baseplate-dev/sync").TemplateFileExtractor<import("zod").ZodObject<{
|
|
2
2
|
sourceFile: import("zod").ZodString;
|
|
3
3
|
type: import("zod").ZodString;
|
|
4
|
-
}
|
|
4
|
+
} & {
|
|
5
5
|
fileOptions: import("zod").ZodDefault<import("zod").ZodDiscriminatedUnion<"kind", [import("zod").ZodObject<{
|
|
6
6
|
kind: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodLiteral<"singleton">>>;
|
|
7
7
|
generatorTemplatePath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -33,10 +33,10 @@ export declare const TextTemplateFileExtractor: import("@baseplate-dev/sync").Te
|
|
|
33
33
|
}, {
|
|
34
34
|
description?: string | undefined;
|
|
35
35
|
}>>>;
|
|
36
|
-
}
|
|
36
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
37
37
|
sourceFile: import("zod").ZodString;
|
|
38
38
|
type: import("zod").ZodString;
|
|
39
|
-
}
|
|
39
|
+
} & {
|
|
40
40
|
fileOptions: import("zod").ZodDefault<import("zod").ZodDiscriminatedUnion<"kind", [import("zod").ZodObject<{
|
|
41
41
|
kind: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodLiteral<"singleton">>>;
|
|
42
42
|
generatorTemplatePath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -68,10 +68,10 @@ export declare const TextTemplateFileExtractor: import("@baseplate-dev/sync").Te
|
|
|
68
68
|
}, {
|
|
69
69
|
description?: string | undefined;
|
|
70
70
|
}>>>;
|
|
71
|
-
}
|
|
71
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
72
72
|
sourceFile: import("zod").ZodString;
|
|
73
73
|
type: import("zod").ZodString;
|
|
74
|
-
}
|
|
74
|
+
} & {
|
|
75
75
|
fileOptions: import("zod").ZodDefault<import("zod").ZodDiscriminatedUnion<"kind", [import("zod").ZodObject<{
|
|
76
76
|
kind: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodLiteral<"singleton">>>;
|
|
77
77
|
generatorTemplatePath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -103,7 +103,7 @@ export declare const TextTemplateFileExtractor: import("@baseplate-dev/sync").Te
|
|
|
103
103
|
}, {
|
|
104
104
|
description?: string | undefined;
|
|
105
105
|
}>>>;
|
|
106
|
-
}
|
|
106
|
+
}, import("zod").ZodTypeAny, "passthrough">>, import("zod").ZodObject<{
|
|
107
107
|
variables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
108
108
|
}, "strip", import("zod").ZodTypeAny, {
|
|
109
109
|
variables: Record<string, string>;
|
|
@@ -9,10 +9,10 @@ declare const textTemplateFileVariableSchema: z.ZodObject<{
|
|
|
9
9
|
}, {
|
|
10
10
|
description?: string | undefined;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const textTemplateMetadataSchema: z.ZodObject<
|
|
12
|
+
export declare const textTemplateMetadataSchema: z.ZodObject<{
|
|
13
13
|
sourceFile: z.ZodString;
|
|
14
14
|
type: z.ZodString;
|
|
15
|
-
}
|
|
15
|
+
} & {
|
|
16
16
|
/**
|
|
17
17
|
* The options for the template file
|
|
18
18
|
*/
|
|
@@ -56,10 +56,10 @@ export declare const textTemplateMetadataSchema: z.ZodObject<z.objectUtil.extend
|
|
|
56
56
|
}, {
|
|
57
57
|
description?: string | undefined;
|
|
58
58
|
}>>>;
|
|
59
|
-
}
|
|
59
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
60
60
|
sourceFile: z.ZodString;
|
|
61
61
|
type: z.ZodString;
|
|
62
|
-
}
|
|
62
|
+
} & {
|
|
63
63
|
/**
|
|
64
64
|
* The options for the template file
|
|
65
65
|
*/
|
|
@@ -103,10 +103,10 @@ export declare const textTemplateMetadataSchema: z.ZodObject<z.objectUtil.extend
|
|
|
103
103
|
}, {
|
|
104
104
|
description?: string | undefined;
|
|
105
105
|
}>>>;
|
|
106
|
-
}
|
|
106
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
107
107
|
sourceFile: z.ZodString;
|
|
108
108
|
type: z.ZodString;
|
|
109
|
-
}
|
|
109
|
+
} & {
|
|
110
110
|
/**
|
|
111
111
|
* The options for the template file
|
|
112
112
|
*/
|
|
@@ -150,7 +150,7 @@ export declare const textTemplateMetadataSchema: z.ZodObject<z.objectUtil.extend
|
|
|
150
150
|
}, {
|
|
151
151
|
description?: string | undefined;
|
|
152
152
|
}>>>;
|
|
153
|
-
}
|
|
153
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
154
154
|
export type TextTemplateMetadata = z.infer<typeof textTemplateMetadataSchema>;
|
|
155
155
|
export declare const textTemplateInstanceDataSchema: z.ZodObject<{
|
|
156
156
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/renderers/text/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAI/E,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAEzC,QAAA,MAAM,8BAA8B;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/renderers/text/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAI/E,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAEzC,QAAA,MAAM,8BAA8B;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;IACrC;;OAEG;;;;;;;;;;;;;;;;;;;;;;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;IAdH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;IAdH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;IAEH;;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odObject<
|
|
2
|
+
export declare const TsTemplateFileExtractor: import("@baseplate-dev/sync").TemplateFileExtractor<z.ZodObject<{
|
|
3
3
|
sourceFile: z.ZodString;
|
|
4
4
|
type: z.ZodString;
|
|
5
|
-
}
|
|
5
|
+
} & {
|
|
6
6
|
fileOptions: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
7
7
|
kind: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"singleton">>>;
|
|
8
8
|
generatorTemplatePath: z.ZodOptional<z.ZodString>;
|
|
@@ -57,10 +57,10 @@ export declare const TsTemplateFileExtractor: import("@baseplate-dev/sync").Temp
|
|
|
57
57
|
type?: "delimited" | "replacement" | undefined;
|
|
58
58
|
}>>>;
|
|
59
59
|
prefix: z.ZodOptional<z.ZodString>;
|
|
60
|
-
}
|
|
60
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
61
61
|
sourceFile: z.ZodString;
|
|
62
62
|
type: z.ZodString;
|
|
63
|
-
}
|
|
63
|
+
} & {
|
|
64
64
|
fileOptions: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
65
65
|
kind: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"singleton">>>;
|
|
66
66
|
generatorTemplatePath: z.ZodOptional<z.ZodString>;
|
|
@@ -115,10 +115,10 @@ export declare const TsTemplateFileExtractor: import("@baseplate-dev/sync").Temp
|
|
|
115
115
|
type?: "delimited" | "replacement" | undefined;
|
|
116
116
|
}>>>;
|
|
117
117
|
prefix: z.ZodOptional<z.ZodString>;
|
|
118
|
-
}
|
|
118
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
119
119
|
sourceFile: z.ZodString;
|
|
120
120
|
type: z.ZodString;
|
|
121
|
-
}
|
|
121
|
+
} & {
|
|
122
122
|
fileOptions: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
123
123
|
kind: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"singleton">>>;
|
|
124
124
|
generatorTemplatePath: z.ZodOptional<z.ZodString>;
|
|
@@ -173,7 +173,7 @@ export declare const TsTemplateFileExtractor: import("@baseplate-dev/sync").Temp
|
|
|
173
173
|
type?: "delimited" | "replacement" | undefined;
|
|
174
174
|
}>>>;
|
|
175
175
|
prefix: z.ZodOptional<z.ZodString>;
|
|
176
|
-
}
|
|
176
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodUnknown, (import("@baseplate-dev/sync").TemplateExtractorPlugin<"barrel-export", {
|
|
177
177
|
addBarrelExport: (generatorName: string, barrelExport: import("#src/renderers/extractor/index.js").TemplateExtractorBarrelExport) => void;
|
|
178
178
|
addGeneratedBarrelExport: (generatorName: string, generatedBarrelExport: import("#src/renderers/extractor/index.js").TemplateExtractorGeneratedBarrelExport) => void;
|
|
179
179
|
}, []> | import("@baseplate-dev/sync").TemplateExtractorPlugin<"template-paths", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-template-file-extractor.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/extractor/ts-template-file-extractor.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6BxB,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"ts-template-file-extractor.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/extractor/ts-template-file-extractor.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6BxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAwPlC,CAAC"}
|
|
@@ -40,10 +40,10 @@ declare const tsTemplateFileProjectExportSchema: z.ZodObject<{
|
|
|
40
40
|
exportedAs?: string | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
export type TsTemplateFileProjectExport = z.infer<typeof tsTemplateFileProjectExportSchema>;
|
|
43
|
-
export declare const tsTemplateMetadataSchema: z.ZodObject<
|
|
43
|
+
export declare const tsTemplateMetadataSchema: z.ZodObject<{
|
|
44
44
|
sourceFile: z.ZodString;
|
|
45
45
|
type: z.ZodString;
|
|
46
|
-
}
|
|
46
|
+
} & {
|
|
47
47
|
/**
|
|
48
48
|
* The options for the template file
|
|
49
49
|
*/
|
|
@@ -135,10 +135,10 @@ export declare const tsTemplateMetadataSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
135
135
|
* @default 'TPL_'
|
|
136
136
|
*/
|
|
137
137
|
prefix: z.ZodOptional<z.ZodString>;
|
|
138
|
-
}
|
|
138
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
139
139
|
sourceFile: z.ZodString;
|
|
140
140
|
type: z.ZodString;
|
|
141
|
-
}
|
|
141
|
+
} & {
|
|
142
142
|
/**
|
|
143
143
|
* The options for the template file
|
|
144
144
|
*/
|
|
@@ -230,10 +230,10 @@ export declare const tsTemplateMetadataSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
230
230
|
* @default 'TPL_'
|
|
231
231
|
*/
|
|
232
232
|
prefix: z.ZodOptional<z.ZodString>;
|
|
233
|
-
}
|
|
233
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
234
234
|
sourceFile: z.ZodString;
|
|
235
235
|
type: z.ZodString;
|
|
236
|
-
}
|
|
236
|
+
} & {
|
|
237
237
|
/**
|
|
238
238
|
* The options for the template file
|
|
239
239
|
*/
|
|
@@ -325,7 +325,7 @@ export declare const tsTemplateMetadataSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
325
325
|
* @default 'TPL_'
|
|
326
326
|
*/
|
|
327
327
|
prefix: z.ZodOptional<z.ZodString>;
|
|
328
|
-
}
|
|
328
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
329
329
|
export type TsTemplateMetadata = z.infer<typeof tsTemplateMetadataSchema>;
|
|
330
330
|
export type TsTemplateFileVariable = z.infer<typeof tsTemplateFileVariableSchema>;
|
|
331
331
|
export type TsTemplateVariableMap = Record<string, TsTemplateFileVariable>;
|
|
@@ -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;AAErC,QAAA,MAAM,4BAA4B;;;;;;EAEhC,CAAC;AAEH,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,wBAAwB
|
|
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,O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/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,MAAM,MAAM,6CAA6C,CACvD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,GAAG,SAAS,IACxD,OAAO,CACT;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM;CACvB,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,EACD,6BAA6B,SAAS,MAAM,CAC1C,MAAM,EACN,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CACrB,GAAG,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,EAEvC,IAAI,EAAE,cAAc,CAClB,UAAU,EACV,mBAAmB,EACnB,6BAA6B,CAC9B,GACA,cAAc,CACf,UAAU,EACV,mBAAmB,EACnB,6BAA6B,CAC9B,CAEA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseplate-dev/core-generators",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Core generators for Baseplate",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code-generation",
|
|
@@ -57,21 +57,21 @@
|
|
|
57
57
|
"resolve-from": "5.0.0",
|
|
58
58
|
"semver": "^7.5.4",
|
|
59
59
|
"sort-package-json": "2.10.1",
|
|
60
|
-
"ts-morph": "
|
|
61
|
-
"zod": "3.
|
|
62
|
-
"@baseplate-dev/sync": "0.3.
|
|
63
|
-
"@baseplate-dev/utils": "0.3.
|
|
60
|
+
"ts-morph": "26.0.0",
|
|
61
|
+
"zod": "3.25.76",
|
|
62
|
+
"@baseplate-dev/sync": "0.3.4",
|
|
63
|
+
"@baseplate-dev/utils": "0.3.4"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@types/node": "^22.
|
|
66
|
+
"@types/node": "^22.17.2",
|
|
67
67
|
"@types/prettier": "^2.7.3",
|
|
68
68
|
"@types/semver": "^7.5.0",
|
|
69
69
|
"concurrently": "9.0.1",
|
|
70
70
|
"cpx2": "8.0.0",
|
|
71
71
|
"eslint": "9.32.0",
|
|
72
|
-
"typescript": "5.
|
|
72
|
+
"typescript": "5.8.3",
|
|
73
73
|
"vitest": "3.2.4",
|
|
74
|
-
"@baseplate-dev/tools": "0.3.
|
|
74
|
+
"@baseplate-dev/tools": "0.3.4"
|
|
75
75
|
},
|
|
76
76
|
"engines": {
|
|
77
77
|
"node": "^22.0.0"
|