@powerlines/plugin-env 0.15.4 → 0.15.6

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 (264) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +29 -0
  2. package/dist/babel/index.cjs +1 -0
  3. package/dist/babel/index.d.cts +1 -0
  4. package/dist/babel/index.d.mts +1 -0
  5. package/dist/babel/index.mjs +3 -0
  6. package/dist/babel/plugin.cjs +200 -0
  7. package/dist/babel/plugin.d.cts +8 -0
  8. package/dist/babel/plugin.d.mts +9 -0
  9. package/dist/babel/plugin.mjs +198 -0
  10. package/dist/components/docs.cjs +70 -3
  11. package/dist/components/docs.d.cts +8 -1
  12. package/dist/components/docs.d.mts +8 -1
  13. package/dist/components/docs.mjs +68 -2
  14. package/dist/components/env.cjs +574 -4
  15. package/dist/components/env.d.cts +19 -2
  16. package/dist/components/env.d.mts +19 -3
  17. package/dist/components/env.mjs +570 -2
  18. package/dist/components/index.cjs +5 -7
  19. package/dist/components/index.d.cts +2 -4
  20. package/dist/components/index.d.mts +2 -5
  21. package/dist/components/index.mjs +2 -4
  22. package/dist/deepkit/schemas/reflection.cjs +5368 -0
  23. package/dist/{plugin-BwuEBScL.d.cts → deepkit/schemas/reflection.d.cts} +1 -268
  24. package/dist/{plugin-BaInAuAh.d.mts → deepkit/schemas/reflection.d.mts} +59 -326
  25. package/dist/deepkit/schemas/reflection.mjs +5365 -0
  26. package/dist/deepkit/schemas/reflection2.cjs +4112 -0
  27. package/dist/deepkit/schemas/reflection2.mjs +4110 -0
  28. package/dist/deepkit/src/capnp.cjs +1692 -0
  29. package/dist/deepkit/src/capnp.mjs +1690 -0
  30. package/dist/deepkit/src/esbuild-plugin.cjs +99 -0
  31. package/dist/deepkit/src/esbuild-plugin.mjs +98 -0
  32. package/dist/deepkit/src/reflect-type.cjs +40 -0
  33. package/dist/deepkit/src/reflect-type.mjs +38 -0
  34. package/dist/deepkit/src/resolve-reflections.cjs +23 -0
  35. package/dist/deepkit/src/resolve-reflections.mjs +22 -0
  36. package/dist/deepkit/src/transformer.cjs +92 -0
  37. package/dist/deepkit/src/transformer.mjs +89 -0
  38. package/dist/deepkit/src/transpile.cjs +39 -0
  39. package/dist/deepkit/src/transpile.mjs +37 -0
  40. package/dist/deepkit/src/types.cjs +22 -0
  41. package/dist/deepkit/src/types.d.cts +10 -0
  42. package/dist/deepkit/src/types.d.mts +10 -0
  43. package/dist/deepkit/src/types.mjs +21 -0
  44. package/dist/deepkit/src/utilities.cjs +182 -0
  45. package/dist/deepkit/src/utilities.mjs +181 -0
  46. package/dist/helpers/automd-generator.cjs +32 -0
  47. package/dist/helpers/automd-generator.mjs +31 -0
  48. package/dist/helpers/create-reflection-resource.cjs +98 -0
  49. package/dist/helpers/create-reflection-resource.d.cts +15 -0
  50. package/dist/helpers/create-reflection-resource.d.mts +15 -0
  51. package/dist/helpers/create-reflection-resource.mjs +97 -0
  52. package/dist/helpers/index.cjs +6 -0
  53. package/dist/helpers/index.d.cts +6 -0
  54. package/dist/helpers/index.d.mts +6 -0
  55. package/dist/helpers/index.mjs +8 -0
  56. package/dist/helpers/load.cjs +134 -0
  57. package/dist/helpers/load.d.cts +35 -0
  58. package/dist/helpers/load.d.mts +36 -0
  59. package/dist/helpers/load.mjs +131 -0
  60. package/dist/helpers/persistence.cjs +320 -0
  61. package/dist/helpers/persistence.d.cts +84 -0
  62. package/dist/helpers/persistence.d.mts +84 -0
  63. package/dist/helpers/persistence.mjs +308 -0
  64. package/dist/helpers/reflect.cjs +263 -0
  65. package/dist/helpers/reflect.d.cts +46 -0
  66. package/dist/helpers/reflect.d.mts +46 -0
  67. package/dist/helpers/reflect.mjs +254 -0
  68. package/dist/helpers/source-file-env.cjs +58 -0
  69. package/dist/helpers/source-file-env.d.cts +8 -0
  70. package/dist/helpers/source-file-env.d.mts +8 -0
  71. package/dist/helpers/source-file-env.mjs +56 -0
  72. package/dist/helpers/template-helpers.cjs +70 -0
  73. package/dist/helpers/template-helpers.d.cts +15 -0
  74. package/dist/helpers/template-helpers.d.mts +15 -0
  75. package/dist/helpers/template-helpers.mjs +69 -0
  76. package/dist/index.cjs +82 -696
  77. package/dist/index.d.cts +16 -185
  78. package/dist/index.d.mts +17 -190
  79. package/dist/index.mjs +31 -648
  80. package/dist/plugin-alloy/src/core/components/output.cjs +45 -0
  81. package/dist/plugin-alloy/src/core/components/output.mjs +44 -0
  82. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +22 -0
  83. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +21 -0
  84. package/dist/plugin-alloy/src/core/components/source-file.cjs +64 -0
  85. package/dist/plugin-alloy/src/core/components/source-file.d.cts +23 -0
  86. package/dist/plugin-alloy/src/core/components/source-file.d.mts +23 -0
  87. package/dist/plugin-alloy/src/core/components/source-file.mjs +62 -0
  88. package/dist/plugin-alloy/src/core/contexts/context.cjs +136 -0
  89. package/dist/plugin-alloy/src/core/contexts/context.mjs +128 -0
  90. package/dist/plugin-alloy/src/core/contexts/index.cjs +2 -0
  91. package/dist/plugin-alloy/src/core/contexts/index.mjs +4 -0
  92. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +110 -0
  93. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +101 -0
  94. package/dist/plugin-alloy/src/helpers/refkey.cjs +23 -0
  95. package/dist/plugin-alloy/src/helpers/refkey.mjs +22 -0
  96. package/dist/plugin-alloy/src/index.cjs +93 -0
  97. package/dist/plugin-alloy/src/index.mjs +91 -0
  98. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +115 -0
  99. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +114 -0
  100. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +39 -0
  101. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +38 -0
  102. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +72 -0
  103. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +71 -0
  104. package/dist/plugin-alloy/src/types/components.cjs +22 -0
  105. package/dist/plugin-alloy/src/types/components.d.cts +22 -0
  106. package/dist/{components-8W0Zgj0y.d.mts → plugin-alloy/src/types/components.d.mts} +2 -1
  107. package/dist/plugin-alloy/src/types/components.mjs +21 -0
  108. package/dist/plugin-alloy/src/types/index.d.mts +2 -0
  109. package/dist/plugin-alloy/src/types/plugin.cjs +55 -0
  110. package/dist/plugin-alloy/src/types/plugin.d.cts +37 -0
  111. package/dist/plugin-alloy/src/types/plugin.d.mts +37 -0
  112. package/dist/plugin-alloy/src/types/plugin.mjs +52 -0
  113. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +57 -0
  114. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +25 -0
  115. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +26 -0
  116. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +56 -0
  117. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +126 -0
  118. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +124 -0
  119. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +442 -0
  120. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +27 -0
  121. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +28 -0
  122. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +433 -0
  123. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +194 -0
  124. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +14 -0
  125. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +15 -0
  126. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +191 -0
  127. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +68 -0
  128. package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.cts +11 -0
  129. package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +12 -0
  130. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +67 -0
  131. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +124 -0
  132. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +123 -0
  133. package/dist/plugin-automd/src/index.cjs +127 -0
  134. package/dist/plugin-automd/src/index.mjs +124 -0
  135. package/dist/plugin-automd/src/types/plugin.cjs +47 -0
  136. package/dist/plugin-automd/src/types/plugin.d.cts +38 -0
  137. package/dist/plugin-automd/src/types/plugin.d.mts +40 -0
  138. package/dist/plugin-automd/src/types/plugin.mjs +47 -0
  139. package/dist/plugin-automd/src/types/toc.cjs +26 -0
  140. package/dist/plugin-automd/src/types/toc.d.cts +33 -0
  141. package/dist/plugin-automd/src/types/toc.d.mts +33 -0
  142. package/dist/plugin-automd/src/types/toc.mjs +25 -0
  143. package/dist/plugin-babel/src/helpers/ast-utils.cjs +74 -0
  144. package/dist/plugin-babel/src/helpers/ast-utils.mjs +70 -0
  145. package/dist/plugin-babel/src/helpers/create-plugin.cjs +71 -0
  146. package/dist/plugin-babel/src/helpers/create-plugin.mjs +69 -0
  147. package/dist/plugin-babel/src/helpers/filters.cjs +158 -0
  148. package/dist/plugin-babel/src/helpers/filters.mjs +154 -0
  149. package/dist/plugin-babel/src/helpers/index.cjs +5 -0
  150. package/dist/plugin-babel/src/helpers/index.mjs +7 -0
  151. package/dist/plugin-babel/src/helpers/module-helpers.cjs +200 -0
  152. package/dist/plugin-babel/src/helpers/module-helpers.mjs +192 -0
  153. package/dist/plugin-babel/src/helpers/options.cjs +74 -0
  154. package/dist/plugin-babel/src/helpers/options.mjs +71 -0
  155. package/dist/plugin-babel/src/index.cjs +134 -0
  156. package/dist/plugin-babel/src/index.mjs +132 -0
  157. package/dist/plugin-babel/src/types/index.d.mts +1 -0
  158. package/dist/plugin-babel/src/types/plugin.cjs +42 -0
  159. package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
  160. package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
  161. package/dist/plugin-babel/src/types/plugin.mjs +39 -0
  162. package/dist/powerlines/schemas/fs.d.mts +1 -0
  163. package/dist/powerlines/src/api.d.mts +7 -0
  164. package/dist/powerlines/src/index.d.mts +12 -0
  165. package/dist/powerlines/src/internal/helpers/hooks.cjs +119 -0
  166. package/dist/powerlines/src/internal/helpers/hooks.d.mts +5 -0
  167. package/dist/powerlines/src/internal/helpers/hooks.mjs +118 -0
  168. package/dist/powerlines/src/lib/build/esbuild.cjs +161 -0
  169. package/dist/powerlines/src/lib/build/esbuild.mjs +159 -0
  170. package/dist/powerlines/src/lib/entry.cjs +203 -0
  171. package/dist/powerlines/src/lib/entry.mjs +201 -0
  172. package/dist/powerlines/src/lib/logger.cjs +108 -0
  173. package/dist/powerlines/src/lib/logger.mjs +106 -0
  174. package/dist/powerlines/src/lib/utilities/bundle.cjs +67 -0
  175. package/dist/powerlines/src/lib/utilities/bundle.mjs +66 -0
  176. package/dist/powerlines/src/lib/utilities/resolve.cjs +49 -0
  177. package/dist/powerlines/src/lib/utilities/resolve.mjs +48 -0
  178. package/dist/powerlines/src/plugin-utils/paths.cjs +46 -0
  179. package/dist/powerlines/src/plugin-utils/paths.mjs +45 -0
  180. package/dist/powerlines/src/types/api.cjs +1 -0
  181. package/dist/powerlines/src/types/api.d.mts +5 -0
  182. package/dist/powerlines/src/types/api.mjs +3 -0
  183. package/dist/powerlines/src/types/babel.cjs +156 -0
  184. package/dist/powerlines/src/types/babel.d.cts +23 -0
  185. package/dist/powerlines/src/types/babel.d.mts +23 -0
  186. package/dist/powerlines/src/types/babel.mjs +147 -0
  187. package/dist/powerlines/src/types/build.cjs +105 -0
  188. package/dist/powerlines/src/types/build.d.cts +145 -0
  189. package/dist/powerlines/src/types/build.d.mts +147 -0
  190. package/dist/powerlines/src/types/build.mjs +101 -0
  191. package/dist/powerlines/src/types/commands.cjs +16 -0
  192. package/dist/powerlines/src/types/commands.d.cts +8 -0
  193. package/dist/powerlines/src/types/commands.d.mts +9 -0
  194. package/dist/powerlines/src/types/commands.mjs +15 -0
  195. package/dist/powerlines/src/types/config.cjs +306 -0
  196. package/dist/powerlines/src/types/config.d.cts +387 -0
  197. package/dist/powerlines/src/types/config.d.mts +388 -0
  198. package/dist/powerlines/src/types/config.mjs +293 -0
  199. package/dist/powerlines/src/types/context.cjs +324 -0
  200. package/dist/powerlines/src/types/context.d.cts +414 -0
  201. package/dist/powerlines/src/types/context.d.mts +416 -0
  202. package/dist/powerlines/src/types/context.mjs +311 -0
  203. package/dist/powerlines/src/types/fs.cjs +78 -0
  204. package/dist/powerlines/src/types/fs.d.cts +486 -0
  205. package/dist/powerlines/src/types/fs.d.mts +486 -0
  206. package/dist/powerlines/src/types/fs.mjs +75 -0
  207. package/dist/powerlines/src/types/hooks.cjs +52 -0
  208. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  209. package/dist/powerlines/src/types/hooks.mjs +48 -0
  210. package/dist/powerlines/src/types/index.cjs +11 -0
  211. package/dist/powerlines/src/types/index.d.mts +12 -0
  212. package/dist/powerlines/src/types/index.mjs +13 -0
  213. package/dist/powerlines/src/types/plugin.cjs +249 -0
  214. package/dist/powerlines/src/types/plugin.d.cts +231 -0
  215. package/dist/powerlines/src/types/plugin.d.mts +231 -0
  216. package/dist/powerlines/src/types/plugin.mjs +240 -0
  217. package/dist/powerlines/src/types/resolved.cjs +153 -0
  218. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  219. package/dist/powerlines/src/types/resolved.d.mts +83 -0
  220. package/dist/powerlines/src/types/resolved.mjs +148 -0
  221. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  222. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  223. package/dist/powerlines/src/types/unplugin.cjs +1 -0
  224. package/dist/powerlines/src/types/unplugin.d.mts +7 -0
  225. package/dist/powerlines/src/types/unplugin.mjs +3 -0
  226. package/dist/types/index.cjs +10 -3
  227. package/dist/types/index.d.cts +2 -4
  228. package/dist/types/index.d.mts +2 -5
  229. package/dist/types/index.mjs +3 -4
  230. package/dist/types/plugin.cjs +133 -1
  231. package/dist/types/plugin.d.cts +156 -3
  232. package/dist/types/plugin.d.mts +158 -4
  233. package/dist/types/plugin.mjs +128 -2
  234. package/dist/types/runtime.cjs +242 -1
  235. package/dist/types/runtime.d.cts +793 -2
  236. package/dist/types/runtime.d.mts +793 -2
  237. package/dist/types/runtime.mjs +240 -2
  238. package/package.json +13 -9
  239. package/dist/components-C9bYrQVK.cjs +0 -0
  240. package/dist/components-CNIQFfeK.mjs +0 -1
  241. package/dist/create-reflection-resource-BNYxBgW2.mjs +0 -9846
  242. package/dist/create-reflection-resource-BWYhmX7O.cjs +0 -10085
  243. package/dist/docs-5r844zC1.d.mts +0 -9
  244. package/dist/docs-B66b9li3.mjs +0 -219
  245. package/dist/docs-_MmTNBQX.d.cts +0 -9
  246. package/dist/docs-hBlKCRWK.cjs +0 -224
  247. package/dist/env-BPodCdD1.d.cts +0 -116
  248. package/dist/env-IQvgnabX.mjs +0 -1578
  249. package/dist/env-cO4BUDn1.cjs +0 -1596
  250. package/dist/env-zhzvpUI5.d.mts +0 -98
  251. package/dist/index-BXxhKmeA.d.mts +0 -1
  252. package/dist/index-Cc7fCJU9.d.mts +0 -1
  253. package/dist/index-CqdNToYT.d.cts +0 -1
  254. package/dist/index-DWPDThxu.d.cts +0 -1
  255. package/dist/plugin-D3B5E_Hg.mjs +0 -1
  256. package/dist/plugin-D5qyQPqC.cjs +0 -0
  257. package/dist/resolved-BZG2cwRG.d.cts +0 -1789
  258. package/dist/resolved-V5COsfDu.d.mts +0 -1791
  259. package/dist/runtime-Bisl_1Ja.cjs +0 -0
  260. package/dist/runtime-Q8Ni8SeN.d.cts +0 -794
  261. package/dist/runtime-azNoeKr-.mjs +0 -1
  262. package/dist/runtime-qZ0Z2kEd.d.mts +0 -794
  263. package/dist/types-DwElXV6q.mjs +0 -1
  264. package/dist/types-MYBaygjr.cjs +0 -0
@@ -0,0 +1,263 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_types_runtime = require('../types/runtime.cjs');
3
+ const require_types_plugin = require('../types/plugin.cjs');
4
+ const require_reflect_type = require('../deepkit/src/reflect-type.cjs');
5
+ const require_persistence = require('./persistence.cjs');
6
+ let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
7
+ let __stryke_path_join_paths = require("@stryke/path/join-paths");
8
+ let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
9
+ let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
10
+
11
+ //#region src/helpers/reflect.ts
12
+ function __assignType(fn, args) {
13
+ fn.__type = args;
14
+ return fn;
15
+ }
16
+ function mergeEnvReflections(context, reflections) {
17
+ return createEnvReflection(context, { type: (0, __powerlines_deepkit_vendor_type.merge)(reflections.map(__assignType((reflection) => reflection.type, [
18
+ "reflection",
19
+ "",
20
+ "P\"2!\"/\""
21
+ ]))) });
22
+ }
23
+ mergeEnvReflections.__type = [
24
+ () => require_types_plugin.__ΩEnvPluginContext,
25
+ "context",
26
+ () => __powerlines_deepkit_vendor_type.ReflectionClass,
27
+ "reflections",
28
+ () => __powerlines_deepkit_vendor_type.ReflectionClass,
29
+ "mergeEnvReflections",
30
+ "Pn!2\"P\"7#F2$P\"7%/&"
31
+ ];
32
+ function mergeSecretsReflections(context, reflections) {
33
+ return createSecretsReflection(context, { type: (0, __powerlines_deepkit_vendor_type.merge)(reflections.map(__assignType((reflection) => reflection.type, [
34
+ "reflection",
35
+ "",
36
+ "P\"2!\"/\""
37
+ ]))) });
38
+ }
39
+ mergeSecretsReflections.__type = [
40
+ () => require_types_plugin.__ΩEnvPluginContext,
41
+ "context",
42
+ () => __powerlines_deepkit_vendor_type.ReflectionClass,
43
+ "reflections",
44
+ () => __powerlines_deepkit_vendor_type.ReflectionClass,
45
+ "mergeSecretsReflections",
46
+ "Pn!2\"P\"7#F2$P\"7%/&"
47
+ ];
48
+ const __ΩCreateEnvReflectionOptions = [
49
+ () => __powerlines_deepkit_vendor_type.__ΩTypeObjectLiteral,
50
+ () => __powerlines_deepkit_vendor_type.__ΩTypeClass,
51
+ "type",
52
+ () => __powerlines_deepkit_vendor_type.ReflectionClass,
53
+ "superReflection",
54
+ "CreateEnvReflectionOptions",
55
+ "PPn!n\"J4#8P\"7$4%8Mw&y"
56
+ ];
57
+ var BaseEnv = class {
58
+ PLATFORM = "neutral";
59
+ MODE = "production";
60
+ DEBUG = false;
61
+ TEST = false;
62
+ MINIMAL = false;
63
+ NO_COLOR = false;
64
+ FORCE_COLOR = false;
65
+ FORCE_HYPERLINK = false;
66
+ STACKTRACE = false;
67
+ INCLUDE_ERROR_DATA = false;
68
+ CI = false;
69
+ static __type = [
70
+ "APP_NAME",
71
+ "APP_VERSION",
72
+ "BUILD_ID",
73
+ "BUILD_TIMESTAMP",
74
+ "BUILD_CHECKSUM",
75
+ "RELEASE_ID",
76
+ "RELEASE_TAG",
77
+ "ORGANIZATION",
78
+ "node",
79
+ "browser",
80
+ "neutral",
81
+ "PLATFORM",
82
+ function() {
83
+ return "neutral";
84
+ },
85
+ "development",
86
+ "test",
87
+ "production",
88
+ "MODE",
89
+ function() {
90
+ return "production";
91
+ },
92
+ "ENVIRONMENT",
93
+ "DEBUG",
94
+ function() {
95
+ return false;
96
+ },
97
+ "TEST",
98
+ function() {
99
+ return false;
100
+ },
101
+ "MINIMAL",
102
+ function() {
103
+ return false;
104
+ },
105
+ "NO_COLOR",
106
+ function() {
107
+ return false;
108
+ },
109
+ "FORCE_COLOR",
110
+ function() {
111
+ return false;
112
+ },
113
+ "FORCE_HYPERLINK",
114
+ function() {
115
+ return false;
116
+ },
117
+ "STACKTRACE",
118
+ function() {
119
+ return false;
120
+ },
121
+ "INCLUDE_ERROR_DATA",
122
+ function() {
123
+ return false;
124
+ },
125
+ "ERROR_URL",
126
+ "DEFAULT_TIMEZONE",
127
+ "DEFAULT_LOCALE",
128
+ "CI",
129
+ function() {
130
+ return false;
131
+ },
132
+ () => require_types_runtime.__ΩEnvInterface,
133
+ "BaseEnv",
134
+ "&3!&3\"&3#&3$&3%&3&&3'&3(P.).*.+J3,>-P.../.0J31>2&33)34>5)36>7)38>9)3:>;P')J3<>=P')J3>>?)3@>A)3B>C&3D&3E&3F)3G>H5nIx\"wJ"
135
+ ];
136
+ };
137
+ var BaseSecrets = class {
138
+ static __type = [
139
+ "ENCRYPTION_KEY",
140
+ () => require_types_runtime.__ΩSecretsInterface,
141
+ "BaseSecrets",
142
+ "&3!5n\"x\"w#"
143
+ ];
144
+ };
145
+ function createEnvReflection(context, options = {}) {
146
+ const parent = options.superReflection ?? new __powerlines_deepkit_vendor_type.ReflectionClass({
147
+ kind: __powerlines_deepkit_vendor_type.ReflectionKind.class,
148
+ description: `The base environment configuration definition for the ${(0, __stryke_string_format_title_case.titleCase)(context.config.name)} project.`,
149
+ classType: BaseEnv,
150
+ types: [],
151
+ implements: [{
152
+ kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
153
+ typeName: "EnvInterface",
154
+ description: `The environment configuration interface definition for the ${(0, __stryke_string_format_title_case.titleCase)(context.config.name)} project.`,
155
+ types: []
156
+ }]
157
+ });
158
+ parent.name = "Env";
159
+ const result = new __powerlines_deepkit_vendor_type.ReflectionClass(options.type ?? {
160
+ kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
161
+ typeName: "Env",
162
+ description: `A schema describing the list of available environment variables that can be used by the ${context.config.name ? `${(0, __stryke_string_format_title_case.titleCase)(context.config.name)} application` : "application"}.`,
163
+ types: []
164
+ }, parent);
165
+ result.name = "Env";
166
+ return result;
167
+ }
168
+ createEnvReflection.__type = [
169
+ () => require_types_plugin.__ΩEnvPluginContext,
170
+ "context",
171
+ () => __ΩCreateEnvReflectionOptions,
172
+ "options",
173
+ () => ({}),
174
+ () => __powerlines_deepkit_vendor_type.ReflectionClass,
175
+ "createEnvReflection",
176
+ "Pn!2\"n#2$>%P\"7&/'"
177
+ ];
178
+ function createSecretsReflection(context, options = {}) {
179
+ const parent = options.superReflection ?? new __powerlines_deepkit_vendor_type.ReflectionClass({
180
+ kind: __powerlines_deepkit_vendor_type.ReflectionKind.class,
181
+ description: `The base secrets configuration definition for the ${(0, __stryke_string_format_title_case.titleCase)(context.config.name)} project.`,
182
+ classType: BaseSecrets,
183
+ types: [],
184
+ implements: [{
185
+ kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
186
+ typeName: "SecretsInterface",
187
+ description: `The secrets configuration interface definition for the ${(0, __stryke_string_format_title_case.titleCase)(context.config.name)} project.`,
188
+ types: []
189
+ }]
190
+ });
191
+ parent.name = "Secrets";
192
+ const result = new __powerlines_deepkit_vendor_type.ReflectionClass(options.type ?? {
193
+ kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
194
+ typeName: "Secrets",
195
+ description: `A schema describing the list of available environment secrets that can be used by the ${context.config.name ? `${(0, __stryke_string_format_title_case.titleCase)(context.config.name)} application` : "application"}.`,
196
+ types: []
197
+ }, parent);
198
+ result.name = "Secrets";
199
+ return result;
200
+ }
201
+ createSecretsReflection.__type = [
202
+ () => require_types_plugin.__ΩEnvPluginContext,
203
+ "context",
204
+ () => __ΩCreateEnvReflectionOptions,
205
+ "options",
206
+ () => ({}),
207
+ () => __powerlines_deepkit_vendor_type.ReflectionClass,
208
+ "createSecretsReflection",
209
+ "Pn!2\"n#2$>%P\"7&/'"
210
+ ];
211
+ async function reflectEnv(context, file, name) {
212
+ let config;
213
+ if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
214
+ file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
215
+ name
216
+ }, { skipNodeModulesBundle: true }));
217
+ const defaultConfigType = await require_reflect_type.reflectType(context, await require_persistence.getEnvDefaultTypeDefinition(context));
218
+ return mergeEnvReflections(context, [
219
+ await require_persistence.readEnvTypeReflection(context, "env"),
220
+ config,
221
+ (0, __powerlines_deepkit_vendor_type.resolveClassType)(defaultConfigType)
222
+ ].filter(Boolean));
223
+ }
224
+ reflectEnv.__type = [
225
+ () => require_types_plugin.__ΩEnvPluginContext,
226
+ "context",
227
+ "file",
228
+ "name",
229
+ "reflectEnv",
230
+ "Pn!2\"&2#8&2$8\"/%"
231
+ ];
232
+ async function reflectSecrets(context, file, name) {
233
+ let config;
234
+ if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
235
+ file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
236
+ name
237
+ }, { skipNodeModulesBundle: true }));
238
+ const defaultSecretsType = await require_reflect_type.reflectType(context, await require_persistence.getSecretsDefaultTypeDefinition(context));
239
+ return mergeSecretsReflections(context, [
240
+ await require_persistence.readSecretsReflection(context),
241
+ config,
242
+ (0, __powerlines_deepkit_vendor_type.resolveClassType)(defaultSecretsType)
243
+ ].filter(Boolean));
244
+ }
245
+ reflectSecrets.__type = [
246
+ () => require_types_plugin.__ΩEnvPluginContext,
247
+ "context",
248
+ "file",
249
+ "name",
250
+ "reflectSecrets",
251
+ "Pn!2\"&2#8&2$8\"/%"
252
+ ];
253
+
254
+ //#endregion
255
+ exports.BaseEnv = BaseEnv;
256
+ exports.BaseSecrets = BaseSecrets;
257
+ exports.__ΩCreateEnvReflectionOptions = __ΩCreateEnvReflectionOptions;
258
+ exports.createEnvReflection = createEnvReflection;
259
+ exports.createSecretsReflection = createSecretsReflection;
260
+ exports.mergeEnvReflections = mergeEnvReflections;
261
+ exports.mergeSecretsReflections = mergeSecretsReflections;
262
+ exports.reflectEnv = reflectEnv;
263
+ exports.reflectSecrets = reflectSecrets;
@@ -0,0 +1,46 @@
1
+ import { EnvInterface, SecretsInterface } from "../types/runtime.cjs";
2
+ import { EnvPluginContext } from "../types/plugin.cjs";
3
+ import { ReflectionClass, TypeClass, TypeObjectLiteral } from "@powerlines/deepkit/vendor/type";
4
+
5
+ //#region src/helpers/reflect.d.ts
6
+ declare function mergeEnvReflections(context: EnvPluginContext, reflections: ReflectionClass<any>[]): ReflectionClass<any>;
7
+ declare function mergeSecretsReflections(context: EnvPluginContext, reflections: ReflectionClass<any>[]): ReflectionClass<any>;
8
+ interface CreateEnvReflectionOptions {
9
+ type?: TypeObjectLiteral | TypeClass;
10
+ superReflection?: ReflectionClass<any>;
11
+ }
12
+ declare class BaseEnv implements EnvInterface {
13
+ APP_NAME: string;
14
+ APP_VERSION: string;
15
+ BUILD_ID: string;
16
+ BUILD_TIMESTAMP: string;
17
+ BUILD_CHECKSUM: string;
18
+ RELEASE_ID: string;
19
+ RELEASE_TAG: string;
20
+ ORGANIZATION: string;
21
+ PLATFORM: "node" | "browser" | "neutral";
22
+ MODE: "development" | "test" | "production";
23
+ ENVIRONMENT: string;
24
+ DEBUG: boolean;
25
+ TEST: boolean;
26
+ MINIMAL: boolean;
27
+ NO_COLOR: boolean;
28
+ FORCE_COLOR: number | boolean;
29
+ FORCE_HYPERLINK: number | boolean;
30
+ STACKTRACE: boolean;
31
+ INCLUDE_ERROR_DATA: boolean;
32
+ ERROR_URL: string;
33
+ DEFAULT_TIMEZONE: string;
34
+ DEFAULT_LOCALE: string;
35
+ CI: boolean;
36
+ }
37
+ declare class BaseSecrets implements SecretsInterface {
38
+ ENCRYPTION_KEY: string;
39
+ }
40
+ declare function createEnvReflection(context: EnvPluginContext, options?: CreateEnvReflectionOptions): ReflectionClass<any>;
41
+ declare function createSecretsReflection(context: EnvPluginContext, options?: CreateEnvReflectionOptions): ReflectionClass<any>;
42
+ declare function reflectEnv(context: EnvPluginContext, file?: string, name?: string): Promise<ReflectionClass<any>>;
43
+ declare function reflectSecrets(context: EnvPluginContext, file?: string, name?: string): Promise<ReflectionClass<any>>;
44
+ declare type __ΩCreateEnvReflectionOptions = any[];
45
+ //#endregion
46
+ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets };
@@ -0,0 +1,46 @@
1
+ import { EnvInterface, SecretsInterface } from "../types/runtime.mjs";
2
+ import { EnvPluginContext } from "../types/plugin.mjs";
3
+ import { ReflectionClass, TypeClass, TypeObjectLiteral } from "@powerlines/deepkit/vendor/type";
4
+
5
+ //#region src/helpers/reflect.d.ts
6
+ declare function mergeEnvReflections(context: EnvPluginContext, reflections: ReflectionClass<any>[]): ReflectionClass<any>;
7
+ declare function mergeSecretsReflections(context: EnvPluginContext, reflections: ReflectionClass<any>[]): ReflectionClass<any>;
8
+ interface CreateEnvReflectionOptions {
9
+ type?: TypeObjectLiteral | TypeClass;
10
+ superReflection?: ReflectionClass<any>;
11
+ }
12
+ declare class BaseEnv implements EnvInterface {
13
+ APP_NAME: string;
14
+ APP_VERSION: string;
15
+ BUILD_ID: string;
16
+ BUILD_TIMESTAMP: string;
17
+ BUILD_CHECKSUM: string;
18
+ RELEASE_ID: string;
19
+ RELEASE_TAG: string;
20
+ ORGANIZATION: string;
21
+ PLATFORM: "node" | "browser" | "neutral";
22
+ MODE: "development" | "test" | "production";
23
+ ENVIRONMENT: string;
24
+ DEBUG: boolean;
25
+ TEST: boolean;
26
+ MINIMAL: boolean;
27
+ NO_COLOR: boolean;
28
+ FORCE_COLOR: number | boolean;
29
+ FORCE_HYPERLINK: number | boolean;
30
+ STACKTRACE: boolean;
31
+ INCLUDE_ERROR_DATA: boolean;
32
+ ERROR_URL: string;
33
+ DEFAULT_TIMEZONE: string;
34
+ DEFAULT_LOCALE: string;
35
+ CI: boolean;
36
+ }
37
+ declare class BaseSecrets implements SecretsInterface {
38
+ ENCRYPTION_KEY: string;
39
+ }
40
+ declare function createEnvReflection(context: EnvPluginContext, options?: CreateEnvReflectionOptions): ReflectionClass<any>;
41
+ declare function createSecretsReflection(context: EnvPluginContext, options?: CreateEnvReflectionOptions): ReflectionClass<any>;
42
+ declare function reflectEnv(context: EnvPluginContext, file?: string, name?: string): Promise<ReflectionClass<any>>;
43
+ declare function reflectSecrets(context: EnvPluginContext, file?: string, name?: string): Promise<ReflectionClass<any>>;
44
+ declare type __ΩCreateEnvReflectionOptions = any[];
45
+ //#endregion
46
+ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets };
@@ -0,0 +1,254 @@
1
+ import { __ΩEnvInterface, __ΩSecretsInterface } from "../types/runtime.mjs";
2
+ import { __ΩEnvPluginContext } from "../types/plugin.mjs";
3
+ import { reflectType } from "../deepkit/src/reflect-type.mjs";
4
+ import { getEnvDefaultTypeDefinition, getSecretsDefaultTypeDefinition, readEnvTypeReflection, readSecretsReflection } from "./persistence.mjs";
5
+ import { ReflectionClass, ReflectionKind, __ΩTypeClass, __ΩTypeObjectLiteral, merge, resolveClassType } from "@powerlines/deepkit/vendor/type";
6
+ import { joinPaths } from "@stryke/path/join-paths";
7
+ import { isParentPath } from "@stryke/path/is-parent-path";
8
+ import { titleCase } from "@stryke/string-format/title-case";
9
+
10
+ //#region src/helpers/reflect.ts
11
+ function __assignType(fn, args) {
12
+ fn.__type = args;
13
+ return fn;
14
+ }
15
+ function mergeEnvReflections(context, reflections) {
16
+ return createEnvReflection(context, { type: merge(reflections.map(__assignType((reflection) => reflection.type, [
17
+ "reflection",
18
+ "",
19
+ "P\"2!\"/\""
20
+ ]))) });
21
+ }
22
+ mergeEnvReflections.__type = [
23
+ () => __ΩEnvPluginContext,
24
+ "context",
25
+ () => ReflectionClass,
26
+ "reflections",
27
+ () => ReflectionClass,
28
+ "mergeEnvReflections",
29
+ "Pn!2\"P\"7#F2$P\"7%/&"
30
+ ];
31
+ function mergeSecretsReflections(context, reflections) {
32
+ return createSecretsReflection(context, { type: merge(reflections.map(__assignType((reflection) => reflection.type, [
33
+ "reflection",
34
+ "",
35
+ "P\"2!\"/\""
36
+ ]))) });
37
+ }
38
+ mergeSecretsReflections.__type = [
39
+ () => __ΩEnvPluginContext,
40
+ "context",
41
+ () => ReflectionClass,
42
+ "reflections",
43
+ () => ReflectionClass,
44
+ "mergeSecretsReflections",
45
+ "Pn!2\"P\"7#F2$P\"7%/&"
46
+ ];
47
+ const __ΩCreateEnvReflectionOptions = [
48
+ () => __ΩTypeObjectLiteral,
49
+ () => __ΩTypeClass,
50
+ "type",
51
+ () => ReflectionClass,
52
+ "superReflection",
53
+ "CreateEnvReflectionOptions",
54
+ "PPn!n\"J4#8P\"7$4%8Mw&y"
55
+ ];
56
+ var BaseEnv = class {
57
+ PLATFORM = "neutral";
58
+ MODE = "production";
59
+ DEBUG = false;
60
+ TEST = false;
61
+ MINIMAL = false;
62
+ NO_COLOR = false;
63
+ FORCE_COLOR = false;
64
+ FORCE_HYPERLINK = false;
65
+ STACKTRACE = false;
66
+ INCLUDE_ERROR_DATA = false;
67
+ CI = false;
68
+ static __type = [
69
+ "APP_NAME",
70
+ "APP_VERSION",
71
+ "BUILD_ID",
72
+ "BUILD_TIMESTAMP",
73
+ "BUILD_CHECKSUM",
74
+ "RELEASE_ID",
75
+ "RELEASE_TAG",
76
+ "ORGANIZATION",
77
+ "node",
78
+ "browser",
79
+ "neutral",
80
+ "PLATFORM",
81
+ function() {
82
+ return "neutral";
83
+ },
84
+ "development",
85
+ "test",
86
+ "production",
87
+ "MODE",
88
+ function() {
89
+ return "production";
90
+ },
91
+ "ENVIRONMENT",
92
+ "DEBUG",
93
+ function() {
94
+ return false;
95
+ },
96
+ "TEST",
97
+ function() {
98
+ return false;
99
+ },
100
+ "MINIMAL",
101
+ function() {
102
+ return false;
103
+ },
104
+ "NO_COLOR",
105
+ function() {
106
+ return false;
107
+ },
108
+ "FORCE_COLOR",
109
+ function() {
110
+ return false;
111
+ },
112
+ "FORCE_HYPERLINK",
113
+ function() {
114
+ return false;
115
+ },
116
+ "STACKTRACE",
117
+ function() {
118
+ return false;
119
+ },
120
+ "INCLUDE_ERROR_DATA",
121
+ function() {
122
+ return false;
123
+ },
124
+ "ERROR_URL",
125
+ "DEFAULT_TIMEZONE",
126
+ "DEFAULT_LOCALE",
127
+ "CI",
128
+ function() {
129
+ return false;
130
+ },
131
+ () => __ΩEnvInterface,
132
+ "BaseEnv",
133
+ "&3!&3\"&3#&3$&3%&3&&3'&3(P.).*.+J3,>-P.../.0J31>2&33)34>5)36>7)38>9)3:>;P')J3<>=P')J3>>?)3@>A)3B>C&3D&3E&3F)3G>H5nIx\"wJ"
134
+ ];
135
+ };
136
+ var BaseSecrets = class {
137
+ static __type = [
138
+ "ENCRYPTION_KEY",
139
+ () => __ΩSecretsInterface,
140
+ "BaseSecrets",
141
+ "&3!5n\"x\"w#"
142
+ ];
143
+ };
144
+ function createEnvReflection(context, options = {}) {
145
+ const parent = options.superReflection ?? new ReflectionClass({
146
+ kind: ReflectionKind.class,
147
+ description: `The base environment configuration definition for the ${titleCase(context.config.name)} project.`,
148
+ classType: BaseEnv,
149
+ types: [],
150
+ implements: [{
151
+ kind: ReflectionKind.objectLiteral,
152
+ typeName: "EnvInterface",
153
+ description: `The environment configuration interface definition for the ${titleCase(context.config.name)} project.`,
154
+ types: []
155
+ }]
156
+ });
157
+ parent.name = "Env";
158
+ const result = new ReflectionClass(options.type ?? {
159
+ kind: ReflectionKind.objectLiteral,
160
+ typeName: "Env",
161
+ description: `A schema describing the list of available environment variables that can be used by the ${context.config.name ? `${titleCase(context.config.name)} application` : "application"}.`,
162
+ types: []
163
+ }, parent);
164
+ result.name = "Env";
165
+ return result;
166
+ }
167
+ createEnvReflection.__type = [
168
+ () => __ΩEnvPluginContext,
169
+ "context",
170
+ () => __ΩCreateEnvReflectionOptions,
171
+ "options",
172
+ () => ({}),
173
+ () => ReflectionClass,
174
+ "createEnvReflection",
175
+ "Pn!2\"n#2$>%P\"7&/'"
176
+ ];
177
+ function createSecretsReflection(context, options = {}) {
178
+ const parent = options.superReflection ?? new ReflectionClass({
179
+ kind: ReflectionKind.class,
180
+ description: `The base secrets configuration definition for the ${titleCase(context.config.name)} project.`,
181
+ classType: BaseSecrets,
182
+ types: [],
183
+ implements: [{
184
+ kind: ReflectionKind.objectLiteral,
185
+ typeName: "SecretsInterface",
186
+ description: `The secrets configuration interface definition for the ${titleCase(context.config.name)} project.`,
187
+ types: []
188
+ }]
189
+ });
190
+ parent.name = "Secrets";
191
+ const result = new ReflectionClass(options.type ?? {
192
+ kind: ReflectionKind.objectLiteral,
193
+ typeName: "Secrets",
194
+ description: `A schema describing the list of available environment secrets that can be used by the ${context.config.name ? `${titleCase(context.config.name)} application` : "application"}.`,
195
+ types: []
196
+ }, parent);
197
+ result.name = "Secrets";
198
+ return result;
199
+ }
200
+ createSecretsReflection.__type = [
201
+ () => __ΩEnvPluginContext,
202
+ "context",
203
+ () => __ΩCreateEnvReflectionOptions,
204
+ "options",
205
+ () => ({}),
206
+ () => ReflectionClass,
207
+ "createSecretsReflection",
208
+ "Pn!2\"n#2$>%P\"7&/'"
209
+ ];
210
+ async function reflectEnv(context, file, name) {
211
+ let config;
212
+ if (file) config = resolveClassType(await reflectType(context, {
213
+ file: !isParentPath(file, context.workspaceConfig.workspaceRoot) ? joinPaths(context.workspaceConfig.workspaceRoot, file) : file,
214
+ name
215
+ }, { skipNodeModulesBundle: true }));
216
+ const defaultConfigType = await reflectType(context, await getEnvDefaultTypeDefinition(context));
217
+ return mergeEnvReflections(context, [
218
+ await readEnvTypeReflection(context, "env"),
219
+ config,
220
+ resolveClassType(defaultConfigType)
221
+ ].filter(Boolean));
222
+ }
223
+ reflectEnv.__type = [
224
+ () => __ΩEnvPluginContext,
225
+ "context",
226
+ "file",
227
+ "name",
228
+ "reflectEnv",
229
+ "Pn!2\"&2#8&2$8\"/%"
230
+ ];
231
+ async function reflectSecrets(context, file, name) {
232
+ let config;
233
+ if (file) config = resolveClassType(await reflectType(context, {
234
+ file: !isParentPath(file, context.workspaceConfig.workspaceRoot) ? joinPaths(context.workspaceConfig.workspaceRoot, file) : file,
235
+ name
236
+ }, { skipNodeModulesBundle: true }));
237
+ const defaultSecretsType = await reflectType(context, await getSecretsDefaultTypeDefinition(context));
238
+ return mergeSecretsReflections(context, [
239
+ await readSecretsReflection(context),
240
+ config,
241
+ resolveClassType(defaultSecretsType)
242
+ ].filter(Boolean));
243
+ }
244
+ reflectSecrets.__type = [
245
+ () => __ΩEnvPluginContext,
246
+ "context",
247
+ "file",
248
+ "name",
249
+ "reflectSecrets",
250
+ "Pn!2\"&2#8&2$8\"/%"
251
+ ];
252
+
253
+ //#endregion
254
+ export { BaseEnv, BaseSecrets, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets };
@@ -0,0 +1,58 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
3
+ let __stryke_env_types = require("@stryke/env/types");
4
+ let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
5
+
6
+ //#region src/helpers/source-file-env.ts
7
+ function __assignType(fn, args) {
8
+ fn.__type = args;
9
+ return fn;
10
+ }
11
+ const __ΩTReturned = [
12
+ "TEnv",
13
+ "TReturned",
14
+ "l2&R!RPe#!&qk#%QRb!Pde\"!p'w\"y"
15
+ ];
16
+ function removeEnvPrefix(env) {
17
+ if ((0, __stryke_type_checks_is_string.isString)(env)) {
18
+ let name = __stryke_env_types.ENV_PREFIXES.reduce(__assignType((ret, prefix) => {
19
+ if (ret.startsWith(prefix)) ret = ret.slice(prefix.length);
20
+ return ret;
21
+ }, [
22
+ "ret",
23
+ "prefix",
24
+ "",
25
+ "P\"2!\"2\"\"/#"
26
+ ]), env.toUpperCase());
27
+ while (name.startsWith("_")) name = name.slice(1);
28
+ return name;
29
+ }
30
+ return Object.keys(env).reduce(__assignType((ret, key) => {
31
+ const name = removeEnvPrefix(key);
32
+ if (name) ret[name] = env[key];
33
+ return ret;
34
+ }, [
35
+ "ret",
36
+ "key",
37
+ "",
38
+ "P\"2!\"2\"\"/#"
39
+ ]), {});
40
+ }
41
+ removeEnvPrefix.__type = [
42
+ "env",
43
+ () => __ΩTReturned,
44
+ "removeEnvPrefix",
45
+ "P\"2!\"o\"\"/#"
46
+ ];
47
+ function formatEnvField(key) {
48
+ return (0, __stryke_string_format_camel_case.camelCase)(removeEnvPrefix(key));
49
+ }
50
+ formatEnvField.__type = [
51
+ "key",
52
+ "formatEnvField",
53
+ "P&2!&/\""
54
+ ];
55
+
56
+ //#endregion
57
+ exports.formatEnvField = formatEnvField;
58
+ exports.removeEnvPrefix = removeEnvPrefix;
@@ -0,0 +1,8 @@
1
+ import { DotenvParseOutput } from "@stryke/env/types";
2
+
3
+ //#region src/helpers/source-file-env.d.ts
4
+ type TReturned<TEnv> = TEnv extends string ? string : DotenvParseOutput;
5
+ declare function removeEnvPrefix<TEnv extends DotenvParseOutput | string>(env: TEnv): TReturned<TEnv>;
6
+ declare function formatEnvField(key: string): string;
7
+ //#endregion
8
+ export { formatEnvField, removeEnvPrefix };
@@ -0,0 +1,8 @@
1
+ import { DotenvParseOutput } from "@stryke/env/types";
2
+
3
+ //#region src/helpers/source-file-env.d.ts
4
+ type TReturned<TEnv> = TEnv extends string ? string : DotenvParseOutput;
5
+ declare function removeEnvPrefix<TEnv extends DotenvParseOutput | string>(env: TEnv): TReturned<TEnv>;
6
+ declare function formatEnvField(key: string): string;
7
+ //#endregion
8
+ export { formatEnvField, removeEnvPrefix };