@baseplate-dev/core-generators 0.2.4 → 0.2.5
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/generators/node/eslint/generated/index.d.ts +1 -1
- package/dist/generators/node/eslint/generated/template-renderers.d.ts +1 -1
- package/dist/generators/node/eslint/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/node/eslint/generated/typed-templates.d.ts +1 -1
- package/dist/generators/node/ts-utils/generated/index.d.ts +6 -4
- package/dist/generators/node/ts-utils/generated/index.d.ts.map +1 -1
- package/dist/generators/node/ts-utils/generated/template-renderers.d.ts +4 -4
- package/dist/generators/node/ts-utils/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/node/ts-utils/generated/template-renderers.js +1 -0
- package/dist/generators/node/ts-utils/generated/template-renderers.js.map +1 -1
- package/dist/generators/node/ts-utils/generated/typed-templates.d.ts +6 -4
- package/dist/generators/node/ts-utils/generated/typed-templates.d.ts.map +1 -1
- package/dist/generators/node/ts-utils/generated/typed-templates.js +1 -0
- package/dist/generators/node/ts-utils/generated/typed-templates.js.map +1 -1
- package/dist/generators/node/ts-utils/templates/src/utils/nulls.ts +1 -1
- package/dist/generators/node/ts-utils/ts-utils.generator.d.ts.map +1 -1
- package/dist/generators/node/ts-utils/ts-utils.generator.js +1 -0
- package/dist/generators/node/ts-utils/ts-utils.generator.js.map +1 -1
- package/dist/generators/node/typescript/typescript.generator.d.ts +3 -3
- package/dist/generators/node/typescript/typescript.generator.d.ts.map +1 -1
- package/dist/generators/node/vitest/generated/index.d.ts +2 -2
- package/dist/generators/node/vitest/generated/template-renderers.d.ts +2 -2
- package/dist/generators/node/vitest/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/node/vitest/generated/typed-templates.d.ts +2 -2
- package/dist/renderers/typescript/actions/render-ts-template-file-action.d.ts +8 -3
- package/dist/renderers/typescript/actions/render-ts-template-file-action.d.ts.map +1 -1
- package/dist/renderers/typescript/actions/render-ts-template-file-action.js +2 -1
- package/dist/renderers/typescript/actions/render-ts-template-file-action.js.map +1 -1
- package/dist/renderers/typescript/actions/render-ts-template-group-action.d.ts +9 -2
- package/dist/renderers/typescript/actions/render-ts-template-group-action.d.ts.map +1 -1
- package/dist/renderers/typescript/actions/render-ts-template-group-action.js +2 -1
- package/dist/renderers/typescript/actions/render-ts-template-group-action.js.map +1 -1
- package/dist/renderers/typescript/extractor/organize-ts-template-imports.d.ts +21 -6
- package/dist/renderers/typescript/extractor/organize-ts-template-imports.d.ts.map +1 -1
- package/dist/renderers/typescript/extractor/organize-ts-template-imports.js +8 -8
- package/dist/renderers/typescript/extractor/organize-ts-template-imports.js.map +1 -1
- package/dist/renderers/typescript/extractor/render-ts-template-file.d.ts +1 -0
- package/dist/renderers/typescript/extractor/render-ts-template-file.d.ts.map +1 -1
- package/dist/renderers/typescript/extractor/render-ts-template-file.js +2 -1
- package/dist/renderers/typescript/extractor/render-ts-template-file.js.map +1 -1
- package/dist/renderers/typescript/extractor/render-ts-template-renderers.d.ts.map +1 -1
- package/dist/renderers/typescript/extractor/render-ts-template-renderers.js +9 -3
- package/dist/renderers/typescript/extractor/render-ts-template-renderers.js.map +1 -1
- package/dist/renderers/typescript/extractor/render-ts-typed-templates.d.ts.map +1 -1
- package/dist/renderers/typescript/extractor/render-ts-typed-templates.js +6 -0
- package/dist/renderers/typescript/extractor/render-ts-typed-templates.js.map +1 -1
- package/dist/renderers/typescript/extractor/ts-template-file-extractor.d.ts +3 -0
- package/dist/renderers/typescript/extractor/ts-template-file-extractor.d.ts.map +1 -1
- package/dist/renderers/typescript/extractor/ts-template-file-extractor.js +11 -3
- package/dist/renderers/typescript/extractor/ts-template-file-extractor.js.map +1 -1
- package/dist/renderers/typescript/import-maps/transform-ts-imports-with-map.d.ts +1 -1
- package/dist/renderers/typescript/import-maps/transform-ts-imports-with-map.d.ts.map +1 -1
- package/dist/renderers/typescript/import-maps/transform-ts-imports-with-map.js +13 -1
- package/dist/renderers/typescript/import-maps/transform-ts-imports-with-map.js.map +1 -1
- package/dist/renderers/typescript/renderers/file.d.ts +2 -1
- package/dist/renderers/typescript/renderers/file.d.ts.map +1 -1
- package/dist/renderers/typescript/renderers/file.js +5 -4
- package/dist/renderers/typescript/renderers/file.js.map +1 -1
- package/dist/renderers/typescript/renderers/template.d.ts.map +1 -1
- package/dist/renderers/typescript/renderers/template.js.map +1 -1
- package/dist/renderers/typescript/templates/types.d.ts +21 -2
- package/dist/renderers/typescript/templates/types.d.ts.map +1 -1
- package/dist/renderers/typescript/templates/types.js +4 -0
- package/dist/renderers/typescript/templates/types.js.map +1 -1
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ import type { RenderTsTemplateFileActionInput } from '#src/renderers/typescript/
|
|
|
3
3
|
import { NODE_ESLINT_TEMPLATES } from './typed-templates.js';
|
|
4
4
|
export interface NodeEslintRenderers {
|
|
5
5
|
eslintConfig: {
|
|
6
|
-
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_ESLINT_TEMPLATES.eslintConfig>, 'destination' | 'importMapProviders' | 'template'>) => BuilderAction;
|
|
6
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_ESLINT_TEMPLATES.eslintConfig>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
export declare const NODE_ESLINT_RENDERERS: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/node/eslint/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qEAAqE,CAAC;AAK3H,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE;QACZ,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,qBAAqB,CAAC,YAAY,CAC1C,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/node/eslint/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qEAAqE,CAAC;AAK3H,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE;QACZ,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,qBAAqB,CAAC,YAAY,CAC1C,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA8BD,eAAO,MAAM,qBAAqB;;;;;;;;CAGjC,CAAC"}
|
|
@@ -31,10 +31,12 @@ export declare const NODE_TS_UTILS_GENERATED: {
|
|
|
31
31
|
}, undefined>;
|
|
32
32
|
};
|
|
33
33
|
templates: {
|
|
34
|
-
arrays: import("../../../../index.js").TsTemplateFile<{}, {}
|
|
35
|
-
normalizeTypes: import("../../../../index.js").TsTemplateFile<{}, {}
|
|
36
|
-
nulls: import("../../../../index.js").TsTemplateFile<{}, {}
|
|
37
|
-
|
|
34
|
+
arrays: import("../../../../index.js").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
|
|
35
|
+
normalizeTypes: import("../../../../index.js").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
|
|
36
|
+
nulls: import("../../../../index.js").TsTemplateFile<{}, {}, {
|
|
37
|
+
normalizeTypes: {};
|
|
38
|
+
}>;
|
|
39
|
+
string: import("../../../../index.js").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
|
|
38
40
|
};
|
|
39
41
|
};
|
|
40
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/node/ts-utils/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/node/ts-utils/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnC,CAAC"}
|
|
@@ -3,16 +3,16 @@ import type { RenderTsTemplateFileActionInput } from '#src/renderers/typescript/
|
|
|
3
3
|
import { NODE_TS_UTILS_TEMPLATES } from './typed-templates.js';
|
|
4
4
|
export interface NodeTsUtilsRenderers {
|
|
5
5
|
arrays: {
|
|
6
|
-
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_TS_UTILS_TEMPLATES.arrays>, 'destination' | 'importMapProviders' | 'template'>) => BuilderAction;
|
|
6
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_TS_UTILS_TEMPLATES.arrays>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
7
7
|
};
|
|
8
8
|
normalizeTypes: {
|
|
9
|
-
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_TS_UTILS_TEMPLATES.normalizeTypes>, 'destination' | 'importMapProviders' | 'template'>) => BuilderAction;
|
|
9
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_TS_UTILS_TEMPLATES.normalizeTypes>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
10
10
|
};
|
|
11
11
|
nulls: {
|
|
12
|
-
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_TS_UTILS_TEMPLATES.nulls>, 'destination' | 'importMapProviders' | 'template'>) => BuilderAction;
|
|
12
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_TS_UTILS_TEMPLATES.nulls>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
13
13
|
};
|
|
14
14
|
string: {
|
|
15
|
-
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_TS_UTILS_TEMPLATES.string>, 'destination' | 'importMapProviders' | 'template'>) => BuilderAction;
|
|
15
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_TS_UTILS_TEMPLATES.string>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
export declare const NODE_TS_UTILS_RENDERERS: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/node/ts-utils/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qEAAqE,CAAC;AAK3H,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE;QACN,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAAC,OAAO,uBAAuB,CAAC,MAAM,CAAC,EACtE,aAAa,GAAG,oBAAoB,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/node/ts-utils/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qEAAqE,CAAC;AAK3H,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE;QACN,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAAC,OAAO,uBAAuB,CAAC,MAAM,CAAC,EACtE,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,cAAc,EAAE;QACd,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,uBAAuB,CAAC,cAAc,CAC9C,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,KAAK,EAAE;QACL,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAAC,OAAO,uBAAuB,CAAC,KAAK,CAAC,EACrE,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,MAAM,EAAE;QACN,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAAC,OAAO,uBAAuB,CAAC,MAAM,CAAC,EACtE,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAuDD,eAAO,MAAM,uBAAuB;;;;;;;;CAGnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../src/generators/node/ts-utils/generated/template-renderers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAI9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAuC/D,MAAM,oBAAoB,GAAG,kBAAkB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MAAM,uBAAuB,GAAG;IACrC,QAAQ,EAAE,oBAAoB;IAC9B,IAAI,EAAE,wBAAwB;CAC/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../src/generators/node/ts-utils/generated/template-renderers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAI9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAuC/D,MAAM,oBAAoB,GAAG,kBAAkB,CAC7C,yBAAyB,CAC1B,CAAC;AAEF,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;IACnD,YAAY,EAAE;QACZ,KAAK,EAAE,mBAAmB,CAAC,QAAQ;QACnC,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,MAAM,EAAE,EAAE;IAChE,GAAG,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE;QAC3B,OAAO;YACL,SAAS,EAAE;gBACT,oBAAoB,EAAE;oBACpB,MAAM,EAAE;wBACN,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,uBAAuB,CAAC,MAAM;4BACxC,WAAW,EAAE,KAAK,CAAC,MAAM;4BACzB,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,cAAc,EAAE;wBACd,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,uBAAuB,CAAC,cAAc;4BAChD,WAAW,EAAE,KAAK,CAAC,cAAc;4BACjC,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,KAAK,EAAE;wBACL,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,uBAAuB,CAAC,KAAK;4BACvC,WAAW,EAAE,KAAK,CAAC,KAAK;4BACxB,cAAc,EAAE,KAAK;4BACrB,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,MAAM,EAAE;wBACN,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,uBAAuB,CAAC,MAAM;4BACxC,WAAW,EAAE,KAAK,CAAC,MAAM;4BACzB,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,QAAQ,EAAE,oBAAoB;IAC9B,IAAI,EAAE,wBAAwB;CAC/B,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const NODE_TS_UTILS_TEMPLATES: {
|
|
2
|
-
arrays: import("#src/renderers/typescript/templates/types.js").TsTemplateFile<{}, {}
|
|
3
|
-
normalizeTypes: import("#src/renderers/typescript/templates/types.js").TsTemplateFile<{}, {}
|
|
4
|
-
nulls: import("#src/renderers/typescript/templates/types.js").TsTemplateFile<{}, {}
|
|
5
|
-
|
|
2
|
+
arrays: import("#src/renderers/typescript/templates/types.js").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
|
|
3
|
+
normalizeTypes: import("#src/renderers/typescript/templates/types.js").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
|
|
4
|
+
nulls: import("#src/renderers/typescript/templates/types.js").TsTemplateFile<{}, {}, {
|
|
5
|
+
normalizeTypes: {};
|
|
6
|
+
}>;
|
|
7
|
+
string: import("#src/renderers/typescript/templates/types.js").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
|
|
6
8
|
};
|
|
7
9
|
//# sourceMappingURL=typed-templates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/node/ts-utils/generated/typed-templates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/node/ts-utils/generated/typed-templates.ts"],"names":[],"mappings":"AAoDA,eAAO,MAAM,uBAAuB;;;;;;;CAKnC,CAAC"}
|
|
@@ -25,6 +25,7 @@ const nulls = createTsTemplateFile({
|
|
|
25
25
|
importMapProviders: {},
|
|
26
26
|
name: 'nulls',
|
|
27
27
|
projectExports: { restrictObjectNulls: {} },
|
|
28
|
+
referencedGeneratorTemplates: { normalizeTypes: {} },
|
|
28
29
|
source: {
|
|
29
30
|
path: path.join(import.meta.dirname, '../templates/src/utils/nulls.ts'),
|
|
30
31
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../src/generators/node/ts-utils/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAEpF,MAAM,MAAM,GAAG,oBAAoB,CAAC;IAClC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,QAAQ;IACd,cAAc,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChC,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,kCAAkC,CAAC;KACzE;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,oBAAoB,CAAC;IAC1C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE,EAAE,cAAc,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE;IACxD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,2CAA2C,CAC5C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,KAAK,GAAG,oBAAoB,CAAC;IACjC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,OAAO;IACb,cAAc,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE;IAC3C,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,iCAAiC,CAAC;KACxE;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,MAAM,GAAG,oBAAoB,CAAC;IAClC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,QAAQ;IACd,cAAc,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE;IACxC,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,kCAAkC,CAAC;KACzE;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,MAAM;IACN,cAAc;IACd,KAAK;IACL,MAAM;CACP,CAAC"}
|
|
1
|
+
{"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../src/generators/node/ts-utils/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAEpF,MAAM,MAAM,GAAG,oBAAoB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gBAAgB,EAAE,EAAE,EAAE;IACxC,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,kCAAkC,CAAC;KACzE;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,MAAM;IACN,cAAc;IACd,KAAK;IACL,MAAM;CACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-utils.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/node/ts-utils/ts-utils.generator.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ts-utils.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/node/ts-utils/ts-utils.generator.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;EA8B3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-utils.generator.js","sourceRoot":"","sources":["../../../../src/generators/node/ts-utils/ts-utils.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAItC,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;IAC9C,IAAI,EAAE,eAAe;IACrB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QAC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BAAuB,CAAC,KAAK,CAAC,IAAI;QACzC,OAAO,EAAE,uBAAuB,CAAC,OAAO,CAAC,IAAI;QAC7C,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,cAAc,EAAE,sBAAsB;gBACtC,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,QAAQ;aAC9C;YACD,GAAG,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE;gBAC3B,OAAO;oBACL,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE;wBACjB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,SAAS,CAAC,EAAE,CAAC;4BACjE,MAAM,QAAQ,GACZ,uBAAuB,CAAC,SAAS,CAAC,GAAgB,CAAC,CAAC;4BACtD,cAAc,CAAC,mBAAmB,CAAC;gCACjC,QAAQ;gCACR,WAAW,EAAE,KAAK,CAAC,GAAgB,CAAC;gCACpC,aAAa,EAAE,OAAO,CAAC,aAAa;gCACpC,cAAc,EAAE,KAAsC;6BACvD,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BuilderAction, GeneratorInfo, InferProviderType } from '@baseplate-dev/sync';
|
|
2
|
-
import type { RenderTsTemplateGroupActionInput
|
|
2
|
+
import type { RenderTsTemplateGroupActionInput } from '#src/renderers/typescript/actions/render-ts-template-group-action.js';
|
|
3
3
|
import type { RenderTsFragmentActionInput, RenderTsTemplateFileActionInput, TsTemplateFile, TsTemplateGroup } from '#src/renderers/typescript/index.js';
|
|
4
4
|
import type { TypescriptCompilerOptions } from './compiler-types.js';
|
|
5
5
|
export interface TypescriptConfigReference {
|
|
@@ -37,7 +37,7 @@ export interface TypescriptFileProvider {
|
|
|
37
37
|
* @param payload - The payload for the template group
|
|
38
38
|
* @returns The action for the template group
|
|
39
39
|
*/
|
|
40
|
-
addLazyTemplateGroup<T extends TsTemplateGroup = TsTemplateGroup>(payload:
|
|
40
|
+
addLazyTemplateGroup<T extends TsTemplateGroup = TsTemplateGroup>(payload: RenderTsTemplateGroupActionInput<T> & {
|
|
41
41
|
generatorInfo: GeneratorInfo;
|
|
42
42
|
}, options?: Omit<LazyTemplateFileEntry, 'payload'>): void;
|
|
43
43
|
/**
|
|
@@ -56,7 +56,7 @@ export interface TypescriptFileProvider {
|
|
|
56
56
|
* @param payload - The payload for the template group
|
|
57
57
|
* @returns The action for the template group
|
|
58
58
|
*/
|
|
59
|
-
renderTemplateGroup<T extends Record<string, TsTemplateFile> = Record<string, TsTemplateFile>>(payload:
|
|
59
|
+
renderTemplateGroup<T extends Record<string, TsTemplateFile> = Record<string, TsTemplateFile>>(payload: RenderTsTemplateGroupActionInput<T>): BuilderAction;
|
|
60
60
|
/**
|
|
61
61
|
* Marks an import as used
|
|
62
62
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/node/typescript/typescript.generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAa7B,OAAO,KAAK,EAAE,gCAAgC,
|
|
1
|
+
{"version":3,"file":"typescript.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/node/typescript/typescript.generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAa7B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sEAAsE,CAAC;AAC7H,OAAO,KAAK,EAEV,2BAA2B,EAC3B,+BAA+B,EAC/B,cAAc,EACd,eAAe,EAChB,MAAM,oCAAoC,CAAC;AAgB5C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAWrE,MAA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AAgB,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnD;;;;;;OAMG;IACH,sBAAsB,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvE;AAED,eAAO,MAAM,sBAAsB,oEAC4B,CAAC;AAiBhE,QAAA,MAAkB,uBAAuB;;;;;;;mBAAE,6BAA6B;;;;;;;GAiBrE,CAAC;AAEJ,OAAO,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CACtD,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,CACrD,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoM9B,CAAC;AAEH,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -14,10 +14,10 @@ export declare const NODE_VITEST_GENERATED: {
|
|
|
14
14
|
templates: {
|
|
15
15
|
globalSetup: import("../../../../index.js").TsTemplateFile<{
|
|
16
16
|
TPL_OPERATIONS: {};
|
|
17
|
-
}, {}
|
|
17
|
+
}, {}, Record<never, Record<never, never>>>;
|
|
18
18
|
vitestConfig: import("../../../../index.js").TsTemplateFile<{
|
|
19
19
|
TPL_CONFIG: {};
|
|
20
|
-
}, {}
|
|
20
|
+
}, {}, Record<never, Record<never, never>>>;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,10 +3,10 @@ import type { RenderTsTemplateFileActionInput } from '#src/renderers/typescript/
|
|
|
3
3
|
import { NODE_VITEST_TEMPLATES } from './typed-templates.js';
|
|
4
4
|
export interface NodeVitestRenderers {
|
|
5
5
|
globalSetup: {
|
|
6
|
-
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_VITEST_TEMPLATES.globalSetup>, 'destination' | 'importMapProviders' | 'template'>) => BuilderAction;
|
|
6
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_VITEST_TEMPLATES.globalSetup>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
7
7
|
};
|
|
8
8
|
vitestConfig: {
|
|
9
|
-
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_VITEST_TEMPLATES.vitestConfig>, 'destination' | 'importMapProviders' | 'template'>) => BuilderAction;
|
|
9
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof NODE_VITEST_TEMPLATES.vitestConfig>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export declare const NODE_VITEST_RENDERERS: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/node/vitest/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qEAAqE,CAAC;AAK3H,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE;QACX,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,qBAAqB,CAAC,WAAW,CACzC,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/node/vitest/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qEAAqE,CAAC;AAK3H,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE;QACX,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,qBAAqB,CAAC,WAAW,CACzC,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,YAAY,EAAE;QACZ,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,qBAAqB,CAAC,YAAY,CAC1C,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAsCD,eAAO,MAAM,qBAAqB;;;;;;;;CAGjC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const NODE_VITEST_TEMPLATES: {
|
|
2
2
|
globalSetup: import("#src/renderers/typescript/templates/types.js").TsTemplateFile<{
|
|
3
3
|
TPL_OPERATIONS: {};
|
|
4
|
-
}, {}
|
|
4
|
+
}, {}, Record<never, Record<never, never>>>;
|
|
5
5
|
vitestConfig: import("#src/renderers/typescript/templates/types.js").TsTemplateFile<{
|
|
6
6
|
TPL_CONFIG: {};
|
|
7
|
-
}, {}
|
|
7
|
+
}, {}, Record<never, Record<never, never>>>;
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=typed-templates.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BuilderAction, GeneratorInfo, Provider, WriteFileOptions } from '@baseplate-dev/sync';
|
|
2
2
|
import type { TsPositionedHoistedFragment } from '../fragments/types.js';
|
|
3
3
|
import type { RenderTsCodeFileTemplateOptions } from '../renderers/file.js';
|
|
4
|
-
import type { InferImportMapProvidersFromProviderTypeMap, InferTsTemplateVariablesFromMap, TsTemplateFile } from '../templates/types.js';
|
|
4
|
+
import type { InferGeneratorPathsFromReferencedGeneratorMap, InferImportMapProvidersFromProviderTypeMap, InferTsTemplateVariablesFromMap, TsTemplateFile } from '../templates/types.js';
|
|
5
5
|
interface RenderTsTemplateFileActionInputBase<T extends TsTemplateFile> {
|
|
6
6
|
template: T;
|
|
7
7
|
id?: string;
|
|
@@ -26,7 +26,12 @@ type RenderTsTemplateFileActionImportMapProvidersInput<T extends TsTemplateFile>
|
|
|
26
26
|
}> : {
|
|
27
27
|
importMapProviders: InferImportMapProvidersFromProviderTypeMap<T['importMapProviders']>;
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
type RenderTsTemplateFileActionReferencedGeneratorTemplatesInput<T extends TsTemplateFile> = keyof Exclude<T['referencedGeneratorTemplates'], undefined> extends never ? Partial<{
|
|
30
|
+
generatorPaths: Partial<Record<'', string>>;
|
|
31
|
+
}> : {
|
|
32
|
+
generatorPaths: InferGeneratorPathsFromReferencedGeneratorMap<T['referencedGeneratorTemplates']>;
|
|
33
|
+
};
|
|
34
|
+
export type RenderTsTemplateFileActionInput<T extends TsTemplateFile = TsTemplateFile> = RenderTsTemplateFileActionInputBase<T> & RenderTsTemplateFileActionVariablesInput<T> & RenderTsTemplateFileActionImportMapProvidersInput<T> & RenderTsTemplateFileActionReferencedGeneratorTemplatesInput<T>;
|
|
35
|
+
export declare function renderTsTemplateFileAction<T extends TsTemplateFile = TsTemplateFile>({ template, id, destination, writeOptions, variables, importMapProviders, renderOptions, positionedHoistedFragments, generatorPaths, generatorInfo: providedGeneratorInfo, }: RenderTsTemplateFileActionInput<T>): BuilderAction;
|
|
31
36
|
export {};
|
|
32
37
|
//# sourceMappingURL=render-ts-template-file-action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-ts-template-file-action.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/actions/render-ts-template-file-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,QAAQ,EACR,gBAAgB,EACjB,MAAM,q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ACxB,CAAC;CACH,CAAC;AAEN,MAAM,MAAM,+BAA+B,CACzC,CAAC,SAAS,cAAc,GAAG,cAAc,IACvC,mCAAmC,CAAC,CAAC,CAAC,GACxC,wCAAwC,CAAC,CAAC,CAAC,GAC3C,iDAAiD,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"render-ts-template-file-action.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/actions/render-ts-template-file-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,QAAQ,EACR,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,EACV,6CAA6C,EAC7C,0CAA0C,EAC1C,+BAA+B,EAC/B,cAAc,EAEf,MAAM,uBAAuB,CAAC;AAI/B,UAAU,mCAAmC,CAAC,CAAC,SAAS,cAAc;IACpE,QAAQ,EAAE,CAAC,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;IAC1D,0BAA0B,CAAC,EAAE,2BAA2B,EAAE,CAAC;IAC3D,aAAa,CAAC,EAAE,IAAI,CAClB,+BAA+B,EAC/B,QAAQ,GAAG,iBAAiB,CAC7B,CAAC;IACF;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED,KAAK,wCAAwC,CAAC,CAAC,SAAS,cAAc,IACpE,MAAM,+BAA+B,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,SAAS,KAAK,GAC/D,OAAO,CAAC;IAAE,SAAS,EAAE,+BAA+B,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAA;CAAE,CAA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
1
|
import { normalizePathToOutputPath, readTemplateFileSource, } from '@baseplate-dev/sync';
|
|
2
2
|
import { differenceSet } from '@baseplate-dev/utils';
|
|
3
3
|
import { renderTsCodeFileTemplate } from '../renderers/file.js';
|
|
4
|
-
export function renderTsTemplateFileAction({ template, id, destination, writeOptions, variables, importMapProviders, renderOptions, positionedHoistedFragments, generatorInfo: providedGeneratorInfo, }) {
|
|
4
|
+
export function renderTsTemplateFileAction({ template, id, destination, writeOptions, variables, importMapProviders, renderOptions, positionedHoistedFragments, generatorPaths, generatorInfo: providedGeneratorInfo, }) {
|
|
5
5
|
return {
|
|
6
6
|
execute: async (builder) => {
|
|
7
7
|
const generatorInfo = providedGeneratorInfo ?? builder.generatorInfo;
|
|
@@ -36,6 +36,7 @@ export function renderTsTemplateFileAction({ template, id, destination, writeOpt
|
|
|
36
36
|
variables: variableValues,
|
|
37
37
|
importMapProviders,
|
|
38
38
|
positionedHoistedFragments,
|
|
39
|
+
generatorPaths: generatorPaths ?? {},
|
|
39
40
|
options: {
|
|
40
41
|
...renderOptions,
|
|
41
42
|
includeMetadata: shouldIncludeMetadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-ts-template-file-action.js","sourceRoot":"","sources":["../../../../src/renderers/typescript/actions/render-ts-template-file-action.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"render-ts-template-file-action.js","sourceRoot":"","sources":["../../../../src/renderers/typescript/actions/render-ts-template-file-action.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAYrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA0DhE,MAA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,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BuilderAction, WriteFileOptions } from '@baseplate-dev/sync';
|
|
2
2
|
import type { RenderTsCodeFileTemplateOptions } from '../renderers/file.js';
|
|
3
|
-
import type { InferImportMapProvidersFromProviderTypeMap, InferTsTemplateVariablesFromMap, TsTemplateFile } from '../templates/types.js';
|
|
3
|
+
import type { InferGeneratorPathsFromReferencedGeneratorMap, InferImportMapProvidersFromProviderTypeMap, InferTsTemplateVariablesFromMap, TsTemplateFile } from '../templates/types.js';
|
|
4
4
|
import type { RenderTsTemplateFileActionInput } from './render-ts-template-file-action.js';
|
|
5
5
|
type TsTemplateGroup = Record<string, TsTemplateFile>;
|
|
6
6
|
type HasVariables<T extends TsTemplateFile> = keyof InferTsTemplateVariablesFromMap<T['variables']> extends never ? false : true;
|
|
@@ -12,6 +12,9 @@ type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) exten
|
|
|
12
12
|
type InferImportMapProvidersFromTemplateGroup<T extends TsTemplateGroup> = IntersectionOfValues<{
|
|
13
13
|
[K in keyof T]: InferImportMapProvidersFromProviderTypeMap<T[K]['importMapProviders']>;
|
|
14
14
|
}>;
|
|
15
|
+
type InferGeneratorPathsFromTemplateGroup<T extends TsTemplateGroup> = IntersectionOfValues<{
|
|
16
|
+
[K in keyof T]: InferGeneratorPathsFromReferencedGeneratorMap<T[K]['referencedGeneratorTemplates']>;
|
|
17
|
+
}>;
|
|
15
18
|
interface RenderTsTemplateGroupActionInputBase<T extends TsTemplateGroup> {
|
|
16
19
|
group: T;
|
|
17
20
|
paths: {
|
|
@@ -32,13 +35,17 @@ export type RenderTsTemplateGroupActionInput<T extends TsTemplateGroup = TsTempl
|
|
|
32
35
|
importMapProviders?: never;
|
|
33
36
|
} : {
|
|
34
37
|
importMapProviders: InferImportMapProvidersFromTemplateGroup<T>;
|
|
38
|
+
}) & (keyof InferGeneratorPathsFromTemplateGroup<T> extends never ? {
|
|
39
|
+
generatorPaths?: never;
|
|
40
|
+
} : {
|
|
41
|
+
generatorPaths: InferGeneratorPathsFromTemplateGroup<T>;
|
|
35
42
|
});
|
|
36
43
|
/**
|
|
37
44
|
* Extracts the template file inputs from a template group
|
|
38
45
|
* @param input - The input for the template group
|
|
39
46
|
* @returns The template file inputs
|
|
40
47
|
*/
|
|
41
|
-
export declare function extractTsTemplateFileInputsFromTemplateGroup<T extends TsTemplateGroup = TsTemplateGroup>({ group, paths, variables, importMapProviders, writeOptions, renderOptions, }: RenderTsTemplateGroupActionInput<T>): RenderTsTemplateFileActionInput[];
|
|
48
|
+
export declare function extractTsTemplateFileInputsFromTemplateGroup<T extends TsTemplateGroup = TsTemplateGroup>({ group, paths, variables, importMapProviders, writeOptions, renderOptions, generatorPaths, }: RenderTsTemplateGroupActionInput<T>): RenderTsTemplateFileActionInput[];
|
|
42
49
|
export declare function renderTsTemplateGroupAction<T extends TsTemplateGroup = TsTemplateGroup>(input: RenderTsTemplateGroupActionInput<T>): BuilderAction;
|
|
43
50
|
export {};
|
|
44
51
|
//# sourceMappingURL=render-ts-template-group-action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-ts-template-group-action.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/actions/render-ts-template-group-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,EACV,0CAA0C,EAC1C,+BAA+B,EAC/B,cAAc,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AAI3F,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAEtD,KAAK,YAAY,CAAC,CAAC,SAAS,cAAc,IACxC,MAAM,+BAA+B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AAC;KACb,CAAC;CACH;AAED,MAAM,MAAM,gCAAgC,CAC1C,CAAC,SAAS,eAAe,GAAG,eAAe,IACzC,oCAAoC,CAAC,CAAC,CAAC,GACzC,CAAC,MAAM,yCAAyC,CAAC,CAAC,CAAC,SAAS,KAAK,GAC7D,OAAO,CAAC;IAAE,SAAS,EAAE,yCAAyC,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,GACpE;IAAE,SAAS,EAAE,yCAAyC,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,GAChE,CAAC,MAAM,wCAAwC,CAAC,CAAC,CAAC,SAAS,KAAK,GAC5D;IACE,kBAAkB,CAAC,EAAE,KAAK,CAAC;CAC5B,GACD;IAAE,kBAAkB,EAAE,wCAAwC,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"render-ts-template-group-action.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/actions/render-ts-template-group-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,EACV,6CAA6C,EAC7C,0CAA0C,EAC1C,+BAA+B,EAC/B,cAAc,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AAI3F,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAEtD,KAAK,YAAY,CAAC,CAAC,SAAS,cAAc,IACxC,MAAM,+BAA+B,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,SAAS,KAAK,GAC/D,KAAK,GACL,IAAI,CAAC;AAEX,KAAK,yCAAyC,CAAC,CAAC,SAAS,eAAe,IAAI;KACzE,CAAC,IAAI,MAAM,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,C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b,CAAC;CACH;AAED,MAAM,MAAM,gCAAgC,CAC1C,CAAC,SAAS,eAAe,GAAG,eAAe,IACzC,oCAAoC,CAAC,CAAC,CAAC,GACzC,CAAC,MAAM,yCAAyC,CAAC,CAAC,CAAC,SAAS,KAAK,GAC7D,OAAO,CAAC;IAAE,SAAS,EAAE,yCAAyC,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,GACpE;IAAE,SAAS,EAAE,yCAAyC,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,GAChE,CAAC,MAAM,wCAAwC,CAAC,CAAC,CAAC,SAAS,KAAK,GAC5D;IACE,kBAAkB,CAAC,EAAE,KAAK,CAAC;CAC5B,GACD;IAAE,kBAAkB,EAAE,wCAAwC,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,GACxE,CAAC,MAAM,oCAAoC,CAAC,CAAC,CAAC,SAAS,KAAK,GACxD;IACE,cAAc,CAAC,EAAE,KAAK,CAAC;CACxB,GACD;IACE,cAAc,EAAE,oCAAoC,CAAC,CAAC,CAAC,CAAC;CACzD,CAAC,CAAC;AAET;;;;GAIG;AACH,wBAAgB,4CAA4C,CAC1D,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3C,EACA,KAAK,EACL,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,cAAc,GACf,EAAE,gCAAgC,CAAC,CAAC,CAAC,GAAG,+BAA+B,EAAE,CA6CzE;AAED,wBAAgB,2BAA2B,CACzC,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3C,KAAK,EAAE,gCAAgC,CAAC,CAAC,CAAC,GAAG,aAAa,CAiB3D"}
|
|
@@ -8,7 +8,7 @@ import { renderTsTemplateFileAction } from './render-ts-template-file-action.js'
|
|
|
8
8
|
* @param input - The input for the template group
|
|
9
9
|
* @returns The template file inputs
|
|
10
10
|
*/
|
|
11
|
-
export function extractTsTemplateFileInputsFromTemplateGroup({ group, paths, variables, importMapProviders, writeOptions, renderOptions, }) {
|
|
11
|
+
export function extractTsTemplateFileInputsFromTemplateGroup({ group, paths, variables, importMapProviders, writeOptions, renderOptions, generatorPaths, }) {
|
|
12
12
|
const fileActionInputs = [];
|
|
13
13
|
const typedImportMapProviders = importMapProviders ?? {};
|
|
14
14
|
for (const [key, templateEntry] of Object.entries(group)) {
|
|
@@ -30,6 +30,7 @@ export function extractTsTemplateFileInputsFromTemplateGroup({ group, paths, var
|
|
|
30
30
|
: undefined,
|
|
31
31
|
writeOptions: writeOptions?.[key],
|
|
32
32
|
importMapProviders: templateSpecificProviders,
|
|
33
|
+
generatorPaths: generatorPaths ?? {},
|
|
33
34
|
renderOptions: {
|
|
34
35
|
...renderOptions,
|
|
35
36
|
resolveModule: (specifier) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-ts-template-group-action.js","sourceRoot":"","sources":["../../../../src/renderers/typescript/actions/render-ts-template-group-action.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"render-ts-template-group-action.js","sourceRoot":"","sources":["../../../../src/renderers/typescript/actions/render-ts-template-group-action.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAW7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAyEjF;;;;GAIG;AACH,MAAM,UAAU,4CAA4C,CAE1D,EACA,KAAK,EACL,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB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,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;gBACtE,CAAC;aACF;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,2BAA2B,CAEzC,KAA0C;IAC1C,OAAO;QACL,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YACzB,MAAM,gBAAgB,GACpB,4CAA4C,CAAC,KAAK,CAAC,CAAC;YACtD,KAAK,MAAM,eAAe,IAAI,gBAAgB,EAAE,CAAC;gBAC/C,IAAI,CAAC;oBACH,MAAM,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAAC,eAAe,CAAC,CAAC,CAAC;gBACnE,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,MAAM,uBAAuB,CAC3B,KAAK,EACL,8BAA8B,eAAe,CAAC,QAAQ,CAAC,IAAI,GAAG,CAC/D,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -10,14 +10,31 @@ export interface TsTemplateImportLookupContext {
|
|
|
10
10
|
*/
|
|
11
11
|
outputDirectory: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* A map of output relative paths to the name of the template in the generator.
|
|
14
14
|
*/
|
|
15
|
-
internalOutputRelativePaths: string
|
|
15
|
+
internalOutputRelativePaths: Map<string, string>;
|
|
16
16
|
/**
|
|
17
17
|
* The resolver factory to use to resolve imports.
|
|
18
18
|
*/
|
|
19
19
|
resolver: ResolverFactory;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* The result of organizing the imports in a Typescript template file.
|
|
23
|
+
*/
|
|
24
|
+
interface OrganizeTsTemplateImportsResult {
|
|
25
|
+
/**
|
|
26
|
+
* The contents of the file with the imports converted to template paths.
|
|
27
|
+
*/
|
|
28
|
+
contents: string;
|
|
29
|
+
/**
|
|
30
|
+
* The project exports that are used in the file.
|
|
31
|
+
*/
|
|
32
|
+
usedProjectExports: TsProjectExport[];
|
|
33
|
+
/**
|
|
34
|
+
* The generator files that are used in the file.
|
|
35
|
+
*/
|
|
36
|
+
referencedGeneratorTemplates: Set<string>;
|
|
37
|
+
}
|
|
21
38
|
/**
|
|
22
39
|
* Organizes the imports in a Typescript template file.
|
|
23
40
|
* - Removes unused imports
|
|
@@ -30,8 +47,6 @@ export interface TsTemplateImportLookupContext {
|
|
|
30
47
|
* @param context - The context for the template import lookup
|
|
31
48
|
* @returns The organized contents of the file
|
|
32
49
|
*/
|
|
33
|
-
export declare function organizeTsTemplateImports(filePath: string, contents: string, { projectExportMap, internalOutputRelativePaths, resolver, outputDirectory, }: TsTemplateImportLookupContext): Promise<
|
|
34
|
-
|
|
35
|
-
usedProjectExports: TsProjectExport[];
|
|
36
|
-
}>;
|
|
50
|
+
export declare function organizeTsTemplateImports(filePath: string, contents: string, { projectExportMap, internalOutputRelativePaths, resolver, outputDirectory, }: TsTemplateImportLookupContext): Promise<OrganizeTsTemplateImportsResult>;
|
|
51
|
+
export {};
|
|
37
52
|
//# sourceMappingURL=organize-ts-template-imports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organize-ts-template-imports.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/extractor/organize-ts-template-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"organize-ts-template-imports.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/extractor/organize-ts-template-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AASpD,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAS1C,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,gBAAgB,EAAE,kBAAkB,CAAC;IACrC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAwCD;;GAEG;AACH,UAAU,+BAA+B;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,kBAAkB,EAAE,eAAe,EAAE,CAAC;IACtC;;OAEG;IACH,4BAA4B,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC3C;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,EACE,gBAAgB,EAChB,2BAA2B,EAC3B,QAAQ,EACR,eAAe,GAChB,EAAE,6BAA6B,GAC/B,OAAO,CAAC,+BAA+B,CAAC,CAiM1C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { camelCase } from 'es-toolkit';
|
|
1
2
|
import { isBuiltin } from 'node:module';
|
|
2
3
|
import path from 'node:path';
|
|
3
4
|
import { Node, Project, SyntaxKind } from 'ts-morph';
|
|
@@ -100,6 +101,7 @@ export async function organizeTsTemplateImports(filePath, contents, { projectExp
|
|
|
100
101
|
importDeclaration.namespaceImport ??
|
|
101
102
|
importDeclaration.namedImports.length > 0);
|
|
102
103
|
const usedProjectExports = [];
|
|
104
|
+
const referencedGeneratorTemplates = new Set();
|
|
103
105
|
const updatedImportDeclarations = await Promise.all(tsImportDeclarations.map(async (importDeclaration) => {
|
|
104
106
|
const { moduleSpecifier } = importDeclaration;
|
|
105
107
|
if (isBuiltin(moduleSpecifier)) {
|
|
@@ -124,16 +126,13 @@ export async function organizeTsTemplateImports(filePath, contents, { projectExp
|
|
|
124
126
|
}
|
|
125
127
|
// Don't modify imports for files in the generator
|
|
126
128
|
const relativeOutputPath = path.relative(outputDirectory, resolvedPath);
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
.replace(/\.(t|j)sx?$/, '.js');
|
|
129
|
+
const internalTemplateName = internalOutputRelativePaths.get(relativeOutputPath);
|
|
130
|
+
if (internalTemplateName) {
|
|
131
|
+
referencedGeneratorTemplates.add(internalTemplateName);
|
|
131
132
|
const fixedImportDeclaration = {
|
|
132
133
|
...importDeclaration,
|
|
133
|
-
// convert to
|
|
134
|
-
moduleSpecifier:
|
|
135
|
-
? relativeImportPath
|
|
136
|
-
: `./${relativeImportPath}`,
|
|
134
|
+
// convert to internal template name
|
|
135
|
+
moduleSpecifier: `$${camelCase(internalTemplateName)}`,
|
|
137
136
|
};
|
|
138
137
|
return [fixedImportDeclaration];
|
|
139
138
|
}
|
|
@@ -187,6 +186,7 @@ export async function organizeTsTemplateImports(filePath, contents, { projectExp
|
|
|
187
186
|
return {
|
|
188
187
|
contents: sourceFile.getFullText(),
|
|
189
188
|
usedProjectExports,
|
|
189
|
+
referencedGeneratorTemplates,
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
192
|
//# sourceMappingURL=organize-ts-template-imports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organize-ts-template-imports.js","sourceRoot":"","sources":["../../../../src/renderers/typescript/extractor/organize-ts-template-imports.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAQrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,GACtC,MAAM,mCAAmC,CAAC;AAqB3C;;;GAGG;AACH,SAAS,0BAA0B,CAAC,UAAsB;IACxD,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;IAE1C,UAAU,CAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE;QAC/C,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC;YAC9C,SAAS,CAAC,IAAI,EAAE,CAAC;YACjB,OAAO;QACT,CAAC;QAED,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACtC,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAM,aAAa,GACjB,8DAA8D,CAAC;AAEjE;;GAEG;AACH,SAAS,kBAAkB,CAAC,OAAe;IACzC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACjC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5B,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAClD,OAAO,UAAU,KAAK,KAAK,IAAI,EAAE,CAAC;IACpC,CAAC;IACD,OAAO,UAAU,OAAO,EAAE,CAAC;AAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"organize-ts-template-imports.js","sourceRoot":"","sources":["../../../../src/renderers/typescript/extractor/organize-ts-template-imports.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAQrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO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AAC,CAAC;YAC5D,IAAI,CAAC,aAAa,EAAE,CAAC;gBACnB,MAAM,IAAI,KAAK,CACb,YAAY,WAAW,CAAC,IAAI,WAAW,eAAe,OAAO,QAAQ,uCAAuC,CAC7G,CAAC;YACJ,CAAC;YACD,MAAM,UAAU,GACd,CAAC,CAAC,iBAAiB,CAAC,UAAU,IAAI,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC;YAC7D,IAAI,CAAC,UAAU,IAAI,aAAa,CAAC,UAAU,EAAE,CAAC;gBAC5C,MAAM,IAAI,KAAK,CACb,UAAU,WAAW,CAAC,IAAI,SAAS,eAAe,OAAO,QAAQ,0EAA0E,CAC5I,CAAC;YACJ,CAAC;YACD,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACvC,OAAO;gBACL,YAAY,EAAE,CAAC,WAAW,CAAC;gBAC3B,eAAe,EAAE,aAAa,CAAC,0BAA0B;gBACzD,UAAU;aACX,CAAC;QACJ,CAAC,CAAC,CACH,CAAC;QACF,OAAO,kBAAkB,CAAC;IAC5B,CAAC,CAAC,CACH,CAAC;IAEF,MAAM,wBAAwB,GAAG,yBAAyB,CACxD,yBAAyB,CAAC,IAAI,EAAE,CACjC,CAAC;IACF,MAAM,wBAAwB,GAAG,sBAAsB,CACrD,wBAAwB,EACxB,EAAE,CACH,CAAC;IAEF,qCAAqC,CACnC,UAAU,EACV,kBAAkB,EAClB,wBAAwB,CACzB,CAAC;IAEF,OAAO;QACL,QAAQ,EAAE,UAAU,CAAC,WAAW,EAAE;QAClC,kBAAkB;QAClB,4BAA4B;KAC7B,CAAC;AACJ,CAAC"}
|
|
@@ -7,5 +7,6 @@ export declare function renderTsTemplateFile(sourceAbsolutePath: string, content
|
|
|
7
7
|
contents: string;
|
|
8
8
|
variables: TsTemplateVariableMap;
|
|
9
9
|
importProviders: Record<string, TsTemplateFileImportProvider>;
|
|
10
|
+
referencedGeneratorTemplates: Set<string>;
|
|
10
11
|
}>;
|
|
11
12
|
//# sourceMappingURL=render-ts-template-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-ts-template-file.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/extractor/render-ts-template-file.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAKvF,MAAM,WAAW,0BACf,SAAQ,6BAA6B;IACrC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,wBAAsB,oBAAoB,CACxC,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC;IACT,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,qBAAqB,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"render-ts-template-file.d.ts","sourceRoot":"","sources":["../../../../src/renderers/typescript/extractor/render-ts-template-file.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAKvF,MAAM,WAAW,0BACf,SAAQ,6BAA6B;IACrC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,wBAAsB,oBAAoB,CACxC,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC;IACT,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,qBAAqB,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;IAC9D,4BAA4B,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC3C,CAAC,CAwCD"}
|