@powerlines/plugin-env 0.15.140 → 0.15.142

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 (209) hide show
  1. package/dist/automd-generator-BNg74tyV.cjs +37 -0
  2. package/dist/automd-generator-DoKLIMuw.mjs +32 -0
  3. package/dist/automd-generator-DoKLIMuw.mjs.map +1 -0
  4. package/dist/babel/index.cjs +5 -2
  5. package/dist/babel/index.d.cts +14 -1
  6. package/dist/babel/index.d.mts +14 -1
  7. package/dist/babel/index.mjs +4 -1
  8. package/dist/babel/plugin.cjs +4 -140
  9. package/dist/babel/plugin.d.cts +14 -7
  10. package/dist/babel/plugin.d.mts +14 -7
  11. package/dist/babel/plugin.mjs +3 -138
  12. package/dist/babel-BZqmdVF4.cjs +0 -0
  13. package/dist/babel-DgietUY3.mjs +1 -0
  14. package/dist/chunk-CNVrAnJR.cjs +48 -0
  15. package/dist/{_virtual/rolldown_runtime.cjs → chunk-CsF2CmBJ.mjs} +6 -2
  16. package/dist/components/docs.cjs +13 -69
  17. package/dist/components/docs.d.cts +1 -21
  18. package/dist/components/docs.d.mts +1 -21
  19. package/dist/components/docs.mjs +12 -67
  20. package/dist/components/env.cjs +13 -588
  21. package/dist/components/env.d.cts +1 -19
  22. package/dist/components/env.d.mts +1 -19
  23. package/dist/components/env.mjs +11 -584
  24. package/dist/components/index.cjs +17 -5
  25. package/dist/components/index.d.cts +3 -2
  26. package/dist/components/index.d.mts +3 -2
  27. package/dist/components/index.mjs +14 -2
  28. package/dist/components-BUo6Koax.cjs +0 -0
  29. package/dist/components-DDFmImcI.mjs +1 -0
  30. package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs +23 -0
  31. package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs.map +1 -0
  32. package/dist/confbox.DA7CpUDY-r6FXRsI6.cjs +28 -0
  33. package/dist/confbox.DnMsyigM-C13n3X-S.cjs +415 -0
  34. package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs +405 -0
  35. package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs.map +1 -0
  36. package/dist/create-reflection-resource-B3friIs9.mjs +98 -0
  37. package/dist/create-reflection-resource-B3friIs9.mjs.map +1 -0
  38. package/dist/create-reflection-resource-BJj83ii4.cjs +103 -0
  39. package/dist/create-reflection-resource-DSLbLsX2.d.cts +16 -0
  40. package/dist/create-reflection-resource-DSLbLsX2.d.cts.map +1 -0
  41. package/dist/create-reflection-resource-DwWJAo-G.d.mts +16 -0
  42. package/dist/create-reflection-resource-DwWJAo-G.d.mts.map +1 -0
  43. package/dist/defu-CrqNIh1A.cjs +227 -0
  44. package/dist/defu-DV5Grr85.mjs +180 -0
  45. package/dist/defu-DV5Grr85.mjs.map +1 -0
  46. package/dist/dist-BQc8ZRwl.cjs +13 -0
  47. package/dist/dist-C_a6goTt.cjs +15282 -0
  48. package/dist/dist-CjWvISyq.mjs +15271 -0
  49. package/dist/dist-CjWvISyq.mjs.map +1 -0
  50. package/dist/dist-mV5Swt78.mjs +13 -0
  51. package/dist/dist-mV5Swt78.mjs.map +1 -0
  52. package/dist/docs-B-SDRHeg.cjs +75 -0
  53. package/dist/docs-B0d8pdIg.d.mts +23 -0
  54. package/dist/docs-B0d8pdIg.d.mts.map +1 -0
  55. package/dist/docs-DMfzQuvP.d.cts +23 -0
  56. package/dist/docs-DMfzQuvP.d.cts.map +1 -0
  57. package/dist/docs-DbRoWmL_.mjs +70 -0
  58. package/dist/docs-DbRoWmL_.mjs.map +1 -0
  59. package/dist/docs-helper-2fe7M3Th.mjs +24 -0
  60. package/dist/docs-helper-2fe7M3Th.mjs.map +1 -0
  61. package/dist/docs-helper-4MoQ5-R3.cjs +28 -0
  62. package/dist/env-BIyd8CTA.d.cts +21 -0
  63. package/dist/env-BIyd8CTA.d.cts.map +1 -0
  64. package/dist/env-BKmI7DyR.d.mts +21 -0
  65. package/dist/env-BKmI7DyR.d.mts.map +1 -0
  66. package/dist/env-D9oCn-AS.mjs +587 -0
  67. package/dist/env-D9oCn-AS.mjs.map +1 -0
  68. package/dist/env-R63eR4RP.cjs +598 -0
  69. package/dist/helpers/automd-generator.cjs +3 -31
  70. package/dist/helpers/automd-generator.d.cts +2 -1
  71. package/dist/helpers/automd-generator.d.cts.map +1 -0
  72. package/dist/helpers/automd-generator.d.mts +2 -1
  73. package/dist/helpers/automd-generator.d.mts.map +1 -0
  74. package/dist/helpers/automd-generator.mjs +2 -29
  75. package/dist/helpers/create-reflection-resource.cjs +11 -97
  76. package/dist/helpers/create-reflection-resource.d.cts +3 -14
  77. package/dist/helpers/create-reflection-resource.d.mts +3 -14
  78. package/dist/helpers/create-reflection-resource.mjs +10 -95
  79. package/dist/helpers/docs-helper.cjs +5 -23
  80. package/dist/helpers/docs-helper.d.cts +4 -2
  81. package/dist/helpers/docs-helper.d.cts.map +1 -0
  82. package/dist/helpers/docs-helper.d.mts +4 -2
  83. package/dist/helpers/docs-helper.d.mts.map +1 -0
  84. package/dist/helpers/docs-helper.mjs +4 -21
  85. package/dist/helpers/index.cjs +38 -32
  86. package/dist/helpers/index.d.cts +9 -6
  87. package/dist/helpers/index.d.mts +9 -6
  88. package/dist/helpers/index.mjs +12 -6
  89. package/dist/helpers/load.cjs +10 -134
  90. package/dist/helpers/load.d.cts +3 -34
  91. package/dist/helpers/load.d.mts +3 -34
  92. package/dist/helpers/load.mjs +8 -130
  93. package/dist/helpers/persistence.cjs +15 -321
  94. package/dist/helpers/persistence.d.cts +3 -83
  95. package/dist/helpers/persistence.d.mts +3 -83
  96. package/dist/helpers/persistence.mjs +4 -308
  97. package/dist/helpers/reflect.cjs +13 -262
  98. package/dist/helpers/reflect.d.cts +3 -45
  99. package/dist/helpers/reflect.d.mts +3 -45
  100. package/dist/helpers/reflect.mjs +4 -252
  101. package/dist/helpers/source-file-env.cjs +3 -57
  102. package/dist/helpers/source-file-env.d.cts +1 -7
  103. package/dist/helpers/source-file-env.d.mts +1 -7
  104. package/dist/helpers/source-file-env.mjs +1 -54
  105. package/dist/helpers/template-helpers.cjs +6 -69
  106. package/dist/helpers/template-helpers.d.cts +3 -14
  107. package/dist/helpers/template-helpers.d.mts +3 -14
  108. package/dist/helpers/template-helpers.mjs +5 -67
  109. package/dist/helpers-45e1bvAO.mjs +1 -0
  110. package/dist/helpers-DgYP3uej.cjs +0 -0
  111. package/dist/index-BNRXMhlr.d.mts +1 -0
  112. package/dist/index-Bdi8CvaN.d.cts +16 -0
  113. package/dist/index-Bdi8CvaN.d.cts.map +1 -0
  114. package/dist/index-CEDY7cmG.d.cts +1 -0
  115. package/dist/index-CREkvfw9.d.mts +1 -0
  116. package/dist/index-DSiHnMH2.d.cts +1 -0
  117. package/dist/index-Drhzdkqe.d.mts +16 -0
  118. package/dist/index-Drhzdkqe.d.mts.map +1 -0
  119. package/dist/index-dhjtMp5F.d.mts +1 -0
  120. package/dist/index-uTS5iDq_.d.cts +1 -0
  121. package/dist/index.cjs +257 -98
  122. package/dist/index.d.cts +14 -23
  123. package/dist/index.d.mts +14 -23
  124. package/dist/index.mjs +184 -23
  125. package/dist/index.mjs.map +1 -0
  126. package/dist/join-paths-BMg51Ddi.mjs +148 -0
  127. package/dist/join-paths-BMg51Ddi.mjs.map +1 -0
  128. package/dist/join-paths-Bc4rM2TX.cjs +159 -0
  129. package/dist/json5-DEV_07Nb.cjs +786 -0
  130. package/dist/json5-jq90mF9X.mjs +787 -0
  131. package/dist/json5-jq90mF9X.mjs.map +1 -0
  132. package/dist/jsonc-CBh70baJ.cjs +4 -0
  133. package/dist/jsonc-CDLU6bgi.mjs +4 -0
  134. package/dist/load-DPB0maqs.cjs +6594 -0
  135. package/dist/load-Dr5ybfL7.mjs +6579 -0
  136. package/dist/load-Dr5ybfL7.mjs.map +1 -0
  137. package/dist/load-GpP6cojj.d.mts +36 -0
  138. package/dist/load-GpP6cojj.d.mts.map +1 -0
  139. package/dist/load-PHGmxX_X.d.cts +36 -0
  140. package/dist/load-PHGmxX_X.d.cts.map +1 -0
  141. package/dist/multipart-parser-D65rtMfY.mjs +176 -0
  142. package/dist/multipart-parser-D65rtMfY.mjs.map +1 -0
  143. package/dist/multipart-parser-aEF5a4Xf.cjs +178 -0
  144. package/dist/node-Co8KdzkZ.cjs +3985 -0
  145. package/dist/node-D9MigVDD.mjs +3975 -0
  146. package/dist/node-D9MigVDD.mjs.map +1 -0
  147. package/dist/persistence-BR4cUaN6.d.cts +85 -0
  148. package/dist/persistence-BR4cUaN6.d.cts.map +1 -0
  149. package/dist/persistence-BsBxs9wt.mjs +586 -0
  150. package/dist/persistence-BsBxs9wt.mjs.map +1 -0
  151. package/dist/persistence-D_clXRxP.cjs +712 -0
  152. package/dist/persistence-DrKQZNCv.d.mts +85 -0
  153. package/dist/persistence-DrKQZNCv.d.mts.map +1 -0
  154. package/dist/plugin-CM1TSv1B.cjs +159 -0
  155. package/dist/plugin-CSVnrdpE.cjs +146 -0
  156. package/dist/plugin-CSe5f2cD.d.cts +155 -0
  157. package/dist/plugin-CSe5f2cD.d.cts.map +1 -0
  158. package/dist/plugin-DMbVjdcQ.d.mts +155 -0
  159. package/dist/plugin-DMbVjdcQ.d.mts.map +1 -0
  160. package/dist/plugin-Vyvy9w9Z.mjs +141 -0
  161. package/dist/plugin-Vyvy9w9Z.mjs.map +1 -0
  162. package/dist/plugin-eBjQJP6x.mjs +130 -0
  163. package/dist/plugin-eBjQJP6x.mjs.map +1 -0
  164. package/dist/reflect-Dm8a3c29.d.cts +47 -0
  165. package/dist/reflect-Dm8a3c29.d.cts.map +1 -0
  166. package/dist/reflect-Dpz8ifa0.d.mts +47 -0
  167. package/dist/reflect-Dpz8ifa0.d.mts.map +1 -0
  168. package/dist/runtime-BDzzR4wH.d.cts +792 -0
  169. package/dist/runtime-BDzzR4wH.d.cts.map +1 -0
  170. package/dist/runtime-C5ukCv3P.mjs +242 -0
  171. package/dist/runtime-C5ukCv3P.mjs.map +1 -0
  172. package/dist/runtime-g0TEIoZK.cjs +253 -0
  173. package/dist/runtime-lYSIZdMn.d.mts +792 -0
  174. package/dist/runtime-lYSIZdMn.d.mts.map +1 -0
  175. package/dist/source-file-env-4Vdtzc5-.cjs +68 -0
  176. package/dist/source-file-env-Brfopjyr.d.cts +9 -0
  177. package/dist/source-file-env-Brfopjyr.d.cts.map +1 -0
  178. package/dist/source-file-env-DWejSP2U.d.mts +9 -0
  179. package/dist/source-file-env-DWejSP2U.d.mts.map +1 -0
  180. package/dist/source-file-env-Tj-6qobx.mjs +57 -0
  181. package/dist/source-file-env-Tj-6qobx.mjs.map +1 -0
  182. package/dist/template-helpers-1SKodHKt.d.mts +16 -0
  183. package/dist/template-helpers-1SKodHKt.d.mts.map +1 -0
  184. package/dist/template-helpers-CCEjhw1B.mjs +70 -0
  185. package/dist/template-helpers-CCEjhw1B.mjs.map +1 -0
  186. package/dist/template-helpers-YVcwxmoF.cjs +75 -0
  187. package/dist/template-helpers-zyitPfMz.d.cts +16 -0
  188. package/dist/template-helpers-zyitPfMz.d.cts.map +1 -0
  189. package/dist/toml-DvrxV201.cjs +657 -0
  190. package/dist/toml-uuOYvEAO.mjs +658 -0
  191. package/dist/toml-uuOYvEAO.mjs.map +1 -0
  192. package/dist/types/index.cjs +10 -9
  193. package/dist/types/index.d.cts +3 -2
  194. package/dist/types/index.d.mts +3 -2
  195. package/dist/types/index.mjs +3 -2
  196. package/dist/types/plugin.cjs +7 -133
  197. package/dist/types/plugin.d.cts +2 -153
  198. package/dist/types/plugin.d.mts +2 -153
  199. package/dist/types/plugin.mjs +2 -127
  200. package/dist/types/runtime.cjs +3 -242
  201. package/dist/types/runtime.d.cts +1 -790
  202. package/dist/types/runtime.d.mts +1 -790
  203. package/dist/types/runtime.mjs +1 -239
  204. package/dist/types-DyPQho_C.mjs +1 -0
  205. package/dist/types-o3zWarRp.cjs +0 -0
  206. package/dist/yaml-CIn2Gddw.mjs +1055 -0
  207. package/dist/yaml-CIn2Gddw.mjs.map +1 -0
  208. package/dist/yaml-CQSFMRMS.cjs +1054 -0
  209. package/package.json +9 -9
@@ -1,589 +1,14 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_helpers_load = require('../helpers/load.cjs');
3
- const require_helpers_create_reflection_resource = require('../helpers/create-reflection-resource.cjs');
4
- let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
5
- let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
6
- let defu = require("defu");
7
- defu = require_rolldown_runtime.__toESM(defu);
8
- let __alloy_js_core = require("@alloy-js/core");
9
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
10
- let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
11
- let __alloy_js_typescript = require("@alloy-js/typescript");
12
- let __powerlines_plugin_alloy_helpers_refkey = require("@powerlines/plugin-alloy/helpers/refkey");
13
- let __powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
14
- let __powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
15
- let __powerlines_plugin_alloy_typescript_components_typescript_interface = require("@powerlines/plugin-alloy/typescript/components/typescript-interface");
16
- let __powerlines_plugin_alloy_typescript_components_typescript_object = require("@powerlines/plugin-alloy/typescript/components/typescript-object");
17
- let __stryke_type_checks_is_null = require("@stryke/type-checks/is-null");
1
+ require('../runtime-g0TEIoZK.cjs');
2
+ require('../plugin-CM1TSv1B.cjs');
3
+ require('../join-paths-Bc4rM2TX.cjs');
4
+ require('../persistence-D_clXRxP.cjs');
5
+ require('../source-file-env-4Vdtzc5-.cjs');
6
+ require('../defu-CrqNIh1A.cjs');
7
+ require('../load-DPB0maqs.cjs');
8
+ require('../confbox.DA7CpUDY-r6FXRsI6.cjs');
9
+ require('../confbox.DnMsyigM-C13n3X-S.cjs');
10
+ require('../create-reflection-resource-BJj83ii4.cjs');
11
+ const require_env = require('../env-R63eR4RP.cjs');
18
12
 
19
- //#region src/components/env.tsx
20
- /**
21
- * Generates the environment configuration typescript definition for the Powerlines project.
22
- */
23
- function EnvTypeDefinition(props) {
24
- const [{ defaultValue, reflection }] = (0, __alloy_js_core.splitProps)(props, ["defaultValue", "reflection"]);
25
- const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlinesSafe)();
26
- if (!context) return null;
27
- return [
28
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_typescript_interface.TypeScriptInterface, {
29
- name: " EnvBase",
30
- defaultValue,
31
- reflection,
32
- "export": true
33
- }),
34
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
35
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
36
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
37
- heading: "The environment configuration object with prefixed keys.",
38
- get children() {
39
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The \`Env\` type extends the \`EnvBase\` interface by including additional keys that are prefixed according to the project's configuration. This allows for flexibility in accessing environment variables with different naming conventions.` });
40
- }
41
- }),
42
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeDeclaration, {
43
- name: "Env",
44
- "export": true,
45
- get children() {
46
- return __alloy_js_core.code` {
47
- [Key in keyof EnvBase as Key ${context.config.env.prefix.map((prefix) => `| \`${prefix.replace(/_$/g, "")}_\${Key}\``).join(" ")}]: EnvBase[Key];
48
- }
49
- `;
50
- }
51
- }),
52
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
53
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
54
- ];
55
- }
56
- function ConfigPropertyConditional(props) {
57
- const [{ context, name }] = (0, __alloy_js_core.splitProps)(props, ["context", "name"]);
58
- if (!context) return null;
59
- return __alloy_js_core.code`propertyName === "${name}" || propertyName.replace(/^(${context.config.env.prefix.sort((a, b) => a.startsWith(b) ? -1 : b.startsWith(a) ? 1 : a.localeCompare(b)).map((prefix) => `${prefix.replace(/_$/, "")}_`).join("|")})/g, "").toLowerCase().replace(/[\\s\\-_]+/g, "") === "${name.toLowerCase().replace(/[\s\-_]+/g, "")}"`;
60
- }
61
- function ConfigPropertyGet(props) {
62
- const [{ context, property, index }] = (0, __alloy_js_core.splitProps)(props, [
63
- "context",
64
- "property",
65
- "index"
66
- ]);
67
- if (!context) return null;
68
- return [index === 0 ? (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
69
- get condition() {
70
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyConditional, {
71
- get name() {
72
- return property.getNameAsString();
73
- },
74
- context
75
- }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
76
- get when() {
77
- return (0, __alloy_js_core_jsx_runtime.memo)(() => !!property.getAlias())() && property.getAlias().length > 0;
78
- },
79
- get children() {
80
- return [__alloy_js_core.code` || `, (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
81
- get each() {
82
- return property.getAlias();
83
- },
84
- joiner: __alloy_js_core.code` || `,
85
- children: (alias) => (0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyConditional, {
86
- name: alias,
87
- context
88
- })
89
- })];
90
- }
91
- })];
92
- },
93
- get children() {
94
- return __alloy_js_core.code`return target["${property.getNameAsString()}"];`;
95
- }
96
- }) : (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ElseIfClause, {
97
- get condition() {
98
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyConditional, {
99
- get name() {
100
- return property.getNameAsString();
101
- },
102
- context
103
- }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
104
- get when() {
105
- return (0, __alloy_js_core_jsx_runtime.memo)(() => !!property.getAlias())() && property.getAlias().length > 0;
106
- },
107
- get children() {
108
- return [__alloy_js_core.code` || `, (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
109
- get each() {
110
- return property.getAlias();
111
- },
112
- joiner: __alloy_js_core.code` || `,
113
- children: (alias) => (0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyConditional, {
114
- name: alias,
115
- context
116
- })
117
- })];
118
- }
119
- })];
120
- },
121
- get children() {
122
- return __alloy_js_core.code`return target["${property.getNameAsString()}"];`;
123
- }
124
- })];
125
- }
126
- function ConfigPropertySet(props) {
127
- const [{ context, property, index }] = (0, __alloy_js_core.splitProps)(props, [
128
- "context",
129
- "property",
130
- "index"
131
- ]);
132
- if (!context) return null;
133
- return [index === 0 ? (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
134
- get condition() {
135
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyConditional, {
136
- get name() {
137
- return property.getNameAsString();
138
- },
139
- context
140
- }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
141
- get when() {
142
- return (0, __alloy_js_core_jsx_runtime.memo)(() => !!property.getAlias())() && property.getAlias().length > 0;
143
- },
144
- get children() {
145
- return [__alloy_js_core.code` || `, (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
146
- get each() {
147
- return property.getAlias();
148
- },
149
- joiner: __alloy_js_core.code` || `,
150
- children: (alias) => (0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyConditional, {
151
- name: alias,
152
- context
153
- })
154
- })];
155
- }
156
- })];
157
- },
158
- get children() {
159
- return __alloy_js_core.code`
160
- target["${property.getNameAsString()}"] = newValue;
161
- return true;
162
- `;
163
- }
164
- }) : (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ElseIfClause, {
165
- get condition() {
166
- return [(0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyConditional, {
167
- get name() {
168
- return property.getNameAsString();
169
- },
170
- context
171
- }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
172
- get when() {
173
- return (0, __alloy_js_core_jsx_runtime.memo)(() => !!property.getAlias())() && property.getAlias().length > 0;
174
- },
175
- get children() {
176
- return [__alloy_js_core.code` || `, (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
177
- get each() {
178
- return property.getAlias();
179
- },
180
- joiner: __alloy_js_core.code` || `,
181
- children: (alias) => (0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyConditional, {
182
- name: alias,
183
- context
184
- })
185
- })];
186
- }
187
- })];
188
- },
189
- get children() {
190
- return __alloy_js_core.code`
191
- target["${property.getNameAsString()}"] = newValue;
192
- return true;
193
- `;
194
- }
195
- })];
196
- }
197
- const createEnvRefkey = (0, __powerlines_plugin_alloy_helpers_refkey.refkey)("createEnv");
198
- const envRefkey = (0, __powerlines_plugin_alloy_helpers_refkey.refkey)("env");
199
- const envSerializerRefkey = (0, __powerlines_plugin_alloy_helpers_refkey.refkey)("EnvSerializer");
200
- /**
201
- * Generates the environment configuration module for the Powerlines project.
202
- */
203
- function EnvBuiltin(props) {
204
- const [{ defaultConfig, children }, rest] = (0, __alloy_js_core.splitProps)(props, ["defaultConfig", "children"]);
205
- const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlinesSafe)();
206
- const defaultValue = (0, __alloy_js_core.computed)(() => context && require_helpers_load.loadEnvFromContext(context, process.env));
207
- const reflection = require_helpers_create_reflection_resource.createReflectionResource(context);
208
- const envInstance = (0, __alloy_js_core.computed)(() => {
209
- return new __powerlines_deepkit_vendor_type.ReflectionClass({
210
- kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
211
- description: `The initial environment configuration state for the ${(0, __stryke_string_format_title_case.titleCase)(context?.config?.name)} project.`,
212
- types: []
213
- }, reflection.data ?? void 0);
214
- });
215
- const reflectionGetProperties = (0, __alloy_js_core.computed)(() => reflection.data?.getProperties().filter((property) => !property.isIgnored()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
216
- const reflectionSetProperties = (0, __alloy_js_core.computed)(() => reflection.data?.getProperties().filter((property) => !property.isIgnored() && !property.isReadonly()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
217
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_builtin_file.BuiltinFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({
218
- id: "env",
219
- description: "The environment configuration module provides an interface to define environment configuration parameters."
220
- }, rest, {
221
- get imports() {
222
- return (0, defu.default)({ "@powerlines/deepkit/vendor/type": [
223
- "stringify",
224
- "serializer",
225
- "serializeFunction",
226
- "deserializeFunction",
227
- "ReflectionKind",
228
- "Serializer",
229
- "TemplateState",
230
- "Type",
231
- "TypeProperty",
232
- "TypePropertySignature"
233
- ] }, rest.imports ?? {});
234
- },
235
- get children() {
236
- return [
237
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
238
- get when() {
239
- return !(0, __stryke_type_checks_is_null.isNull)(reflection.data);
240
- },
241
- get children() {
242
- return [
243
- (0, __alloy_js_core_jsx_runtime.createComponent)(EnvTypeDefinition, {
244
- get defaultValue() {
245
- return defaultValue.value;
246
- },
247
- get reflection() {
248
- return reflection.data;
249
- }
250
- }),
251
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
252
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
253
- ];
254
- }
255
- }),
256
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_typescript_object.TypescriptObject, {
257
- name: "initialEnv",
258
- type: "Partial<EnvBase>",
259
- defaultValue,
260
- reflection: envInstance,
261
- "export": true,
262
- "const": true,
263
- doc: "The initial environment configuration object values for the runtime."
264
- }),
265
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
266
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
267
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
268
- heading: "The environment configuration serializer for the Powerlines application.",
269
- get children() {
270
- return [
271
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://deepkit.io/docs/serialization/serializers` }),
272
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918` }),
273
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This serializer is used to serialize and deserialize the Powerlines environment configuration.` })
274
- ];
275
- }
276
- }),
277
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ClassDeclaration, {
278
- refkey: envSerializerRefkey,
279
- name: "EnvSerializer",
280
- "extends": "Serializer",
281
- "export": true,
282
- get children() {
283
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ClassMethod, {
284
- name: "constructor",
285
- "public": true,
286
- doc: "Initializes a new instance of the `EnvSerializer` class.",
287
- children: __alloy_js_core.code`
288
- super("env");
289
-
290
- this.deserializeRegistry.register(
291
- ReflectionKind.boolean,
292
- (type: Type, state: TemplateState) => {
293
- state.addSetter(
294
- \`typeof \${state.accessor.toString()} !== "boolean" ? \${state.accessor.toString()} === 1 || \${state.accessor.toString()} === "1" || \${state.accessor.toString()}.toLowerCase() === "t" || \${state.accessor.toString()}.toLowerCase() === "true" || \${state.accessor.toString()}.toLowerCase() === "y" || \${state.accessor.toString()}.toLowerCase() === "yes" : \${state.accessor.toString()}\`
295
- );
296
- }
297
- );
298
- `
299
- });
300
- }
301
- }),
302
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
303
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
304
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
305
- heading: "A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.",
306
- get children() {
307
- return [
308
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://deepkit.io/docs/serialization/serializers` }),
309
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: `https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918` }),
310
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This serializer is used to serialize and deserialize the Powerlines environment configuration.` })
311
- ];
312
- }
313
- }),
314
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
315
- name: "envSerializer",
316
- "export": false,
317
- "const": true,
318
- get initializer() {
319
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.NewExpression, {
320
- args: [],
321
- target: "EnvSerializer"
322
- });
323
- }
324
- }),
325
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
326
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
327
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
328
- heading: "Serialize a environment configuration object to JSON data objects (not a JSON string).",
329
- get children() {
330
- return [
331
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The resulting JSON object can be stringified using \`JSON.stringify()\`.` }),
332
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocExample, { children: `const json = serializeEnv(env);` }),
333
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocThrows, { children: `ValidationError when serialization or validation fails.` })
334
- ];
335
- }
336
- }),
337
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
338
- name: "serializeEnv",
339
- "export": true,
340
- "const": true,
341
- initializer: "serializeFunction<EnvBase>(envSerializer)"
342
- }),
343
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
344
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
345
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
346
- heading: "Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.",
347
- get children() {
348
- return [
349
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `Types that are already correct will be used as-is.` }),
350
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocExample, { children: `const env = deserializeEnv(json);` }),
351
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocThrows, { children: `ValidationError when deserialization fails.` })
352
- ];
353
- }
354
- }),
355
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
356
- name: "deserializeEnv",
357
- "export": true,
358
- "const": true,
359
- initializer: "deserializeFunction<EnvBase>(envSerializer)"
360
- }),
361
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
362
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
363
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
364
- heading: "Initializes the Powerlines environment configuration module.",
365
- get children() {
366
- return [
367
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This function initializes the Powerlines environment configuration object.` }),
368
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
369
- name: "environmentConfig",
370
- children: `The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`
371
- }),
372
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `The initialized Powerlines configuration object.` })
373
- ];
374
- }
375
- }),
376
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
377
- get when() {
378
- return Boolean(context?.entryPath);
379
- },
380
- get children() {
381
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.FunctionDeclaration, {
382
- refkey: createEnvRefkey,
383
- async: false,
384
- "export": true,
385
- name: "createEnv",
386
- parameters: [{
387
- name: "environmentConfig",
388
- type: `Partial<Env>`,
389
- optional: false,
390
- default: "{}"
391
- }],
392
- returnType: "Env",
393
- get children() {
394
- return [
395
- __alloy_js_core.code`
396
- return new Proxy<Env>(
397
- deserializeEnv({
398
- ...initialEnv,
399
- ...environmentConfig
400
- }) as Env,
401
- {
402
- get: (target: EnvBase, propertyName: string) => { `,
403
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
404
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
405
- each: reflectionGetProperties,
406
- children: (property, index) => (0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertyGet, {
407
- index,
408
- context,
409
- property
410
- })
411
- }),
412
- __alloy_js_core.code`
413
- return undefined;
414
- }, `,
415
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
416
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
417
- __alloy_js_core.code` set: (target: EnvBase, propertyName: string, newValue: any) => { `,
418
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
419
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
420
- each: reflectionSetProperties,
421
- ender: __alloy_js_core.code` else `,
422
- children: (property, index) => (0, __alloy_js_core_jsx_runtime.createComponent)(ConfigPropertySet, {
423
- index,
424
- context,
425
- property
426
- })
427
- }),
428
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
429
- __alloy_js_core.code`return false;
430
- }
431
- }
432
- );
433
- `
434
- ];
435
- }
436
- });
437
- }
438
- }),
439
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
440
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
441
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
442
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
443
- heading: "The environment configuration object.",
444
- get children() {
445
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This object provides access to the environment configuration parameters in the application runtime.` });
446
- }
447
- }),
448
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
449
- refkey: envRefkey,
450
- name: "env",
451
- type: "Env",
452
- "export": true,
453
- "const": true,
454
- get initializer() {
455
- return [__alloy_js_core.code`createEnv(${defaultConfig || "{}"} as Partial<Env>);`];
456
- }
457
- }),
458
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
459
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
460
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
461
- "export": true,
462
- "const": true,
463
- name: "isCI",
464
- doc: "Detect if the application is running in a continuous integration (CI) environment.",
465
- initializer: __alloy_js_core.code`Boolean(
466
- env.CI ||
467
- env.RUN_ID ||
468
- env.AGOLA_GIT_REF ||
469
- env.AC_APPCIRCLE ||
470
- env.APPVEYOR ||
471
- env.CODEBUILD ||
472
- env.TF_BUILD ||
473
- env.bamboo_planKey ||
474
- env.BITBUCKET_COMMIT ||
475
- env.BITRISE_IO ||
476
- env.BUDDY_WORKSPACE_ID ||
477
- env.BUILDKITE ||
478
- env.CIRCLECI ||
479
- env.CIRRUS_CI ||
480
- env.CF_BUILD_ID ||
481
- env.CM_BUILD_ID ||
482
- env.CI_NAME ||
483
- env.DRONE ||
484
- env.DSARI ||
485
- env.EARTHLY_CI ||
486
- env.EAS_BUILD ||
487
- env.GERRIT_PROJECT ||
488
- env.GITEA_ACTIONS ||
489
- env.GITHUB_ACTIONS ||
490
- env.GITLAB_CI ||
491
- env.GOCD ||
492
- env.BUILDER_OUTPUT ||
493
- env.HARNESS_BUILD_ID ||
494
- env.JENKINS_URL ||
495
- env.LAYERCI ||
496
- env.MAGNUM ||
497
- env.NETLIFY ||
498
- env.NEVERCODE ||
499
- env.PROW_JOB_ID ||
500
- env.RELEASE_BUILD_ID ||
501
- env.RENDER ||
502
- env.SAILCI ||
503
- env.HUDSON ||
504
- env.SCREWDRIVER ||
505
- env.SEMAPHORE ||
506
- env.SOURCEHUT ||
507
- env.STRIDER ||
508
- env.TASK_ID ||
509
- env.RUN_ID ||
510
- env.TEAMCITY_VERSION ||
511
- env.TRAVIS ||
512
- env.VELA ||
513
- env.NOW_BUILDER ||
514
- env.APPCENTER_BUILD_ID ||
515
- env.CI_XCODE_PROJECT ||
516
- env.XCS || false
517
- );
518
- `
519
- }),
520
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
521
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
522
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
523
- heading: "Detect the \\`mode\\` of the current runtime environment.",
524
- get children() {
525
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: __alloy_js_core.code`The \`mode\` is determined by the \`MODE\` environment variable, or falls back to the \`NEXT_PUBLIC_VERCEL_ENV\`, \`NODE_ENV\`, or defaults to \`production\`. While the value can potentially be any string, it is generally recommended to only allow a value in the following list:
526
- - \`production\`
527
- - \`test\`
528
- - \`development\`
529
- ` });
530
- }
531
- }),
532
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
533
- "export": true,
534
- "const": true,
535
- name: "mode",
536
- initializer: __alloy_js_core.code`String(env.MODE) || "production"; `
537
- }),
538
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
539
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
540
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
541
- "export": true,
542
- "const": true,
543
- name: "isProduction",
544
- doc: "Detect if the application is running in `\"production\"` mode",
545
- initializer: __alloy_js_core.code`["prd", "prod", "production"].includes(mode.toLowerCase()); `
546
- }),
547
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
548
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
549
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
550
- "export": true,
551
- "const": true,
552
- name: "isTest",
553
- doc: "Detect if the application is running in `\"test\"` mode",
554
- initializer: __alloy_js_core.code`["tst", "test", "testing", "stg", "stage", "staging"].includes(mode.toLowerCase()) || env.TEST; `
555
- }),
556
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
557
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
558
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
559
- "export": true,
560
- "const": true,
561
- name: "isDevelopment",
562
- doc: "Detect if the application is running in `\"development\"` mode",
563
- initializer: __alloy_js_core.code`["dev", "development"].includes(mode.toLowerCase()); `
564
- }),
565
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
566
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
567
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
568
- "export": true,
569
- "const": true,
570
- name: "isDebug",
571
- doc: "Detect if the application is currently being debugged",
572
- initializer: __alloy_js_core.code`Boolean(isDevelopment && env.DEBUG); `
573
- }),
574
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
575
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
576
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
577
- get when() {
578
- return Boolean(children);
579
- },
580
- children
581
- })
582
- ];
583
- }
584
- }));
585
- }
586
-
587
- //#endregion
588
- exports.EnvBuiltin = EnvBuiltin;
589
- exports.EnvTypeDefinition = EnvTypeDefinition;
13
+ exports.EnvBuiltin = require_env.EnvBuiltin;
14
+ exports.EnvTypeDefinition = require_env.EnvTypeDefinition;
@@ -1,20 +1,2 @@
1
- import { Children } from "@alloy-js/core";
2
- import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
3
- import { TypeScriptInterfaceProps } from "@powerlines/plugin-alloy/typescript/components/typescript-interface";
4
-
5
- //#region src/components/env.d.ts
6
-
7
- /**
8
- * Generates the environment configuration typescript definition for the Powerlines project.
9
- */
10
- declare function EnvTypeDefinition(props: Omit<TypeScriptInterfaceProps, "name">): Children;
11
- interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
12
- defaultConfig?: Children;
13
- }
14
- /**
15
- * Generates the environment configuration module for the Powerlines project.
16
- */
17
- declare function EnvBuiltin(props: EnvBuiltinProps): Children;
18
- declare type __ΩEnvBuiltinProps = any[];
19
- //#endregion
1
+ import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-BIyd8CTA.cjs";
20
2
  export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps };
@@ -1,20 +1,2 @@
1
- import { Children } from "@alloy-js/core";
2
- import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
3
- import { TypeScriptInterfaceProps } from "@powerlines/plugin-alloy/typescript/components/typescript-interface";
4
-
5
- //#region src/components/env.d.ts
6
-
7
- /**
8
- * Generates the environment configuration typescript definition for the Powerlines project.
9
- */
10
- declare function EnvTypeDefinition(props: Omit<TypeScriptInterfaceProps, "name">): Children;
11
- interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
12
- defaultConfig?: Children;
13
- }
14
- /**
15
- * Generates the environment configuration module for the Powerlines project.
16
- */
17
- declare function EnvBuiltin(props: EnvBuiltinProps): Children;
18
- declare type __ΩEnvBuiltinProps = any[];
19
- //#endregion
1
+ import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-BKmI7DyR.mjs";
20
2
  export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps };