@powerlines/plugin-env 0.13.53 → 0.13.54

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 (198) hide show
  1. package/dist/babel/index.cjs +1 -1
  2. package/dist/babel/index.d.cts +17 -31
  3. package/dist/babel/index.d.mts +17 -0
  4. package/dist/babel/index.mjs +1 -0
  5. package/dist/babel/plugin.cjs +1 -19
  6. package/dist/babel/plugin.d.cts +17 -34
  7. package/dist/babel/plugin.d.mts +17 -0
  8. package/dist/babel/plugin.mjs +1 -0
  9. package/dist/babel-CE47sTzg.mjs +1 -0
  10. package/dist/chunk-CbqXBSoN.mjs +1 -0
  11. package/dist/chunk-DT2f8AgL.cjs +1 -0
  12. package/dist/components/docs.cjs +1 -0
  13. package/dist/components/docs.d.cts +2 -0
  14. package/dist/components/docs.d.mts +2 -0
  15. package/dist/components/docs.mjs +1 -0
  16. package/dist/components/env.cjs +1 -40
  17. package/dist/components/env.d.cts +4 -105
  18. package/dist/components/env.d.mts +4 -0
  19. package/dist/components/env.mjs +1 -0
  20. package/dist/components/index.cjs +1 -1
  21. package/dist/components/index.d.cts +6 -8
  22. package/dist/components/index.d.mts +6 -0
  23. package/dist/components/index.mjs +1 -0
  24. package/dist/components-LyHNrcZE.mjs +1 -0
  25. package/dist/config-D2esSp2r.d.mts +1681 -0
  26. package/dist/config-D2esSp2r.d.mts.map +1 -0
  27. package/dist/config-Dli3ofDp.d.cts +1680 -0
  28. package/dist/config-Dli3ofDp.d.cts.map +1 -0
  29. package/dist/create-reflection-resource-CQHJrkQi.cjs +1 -0
  30. package/dist/create-reflection-resource-D7go0-VG.d.mts +16 -0
  31. package/dist/create-reflection-resource-D7go0-VG.d.mts.map +1 -0
  32. package/dist/create-reflection-resource-DOZmUtSi.d.cts +16 -0
  33. package/dist/create-reflection-resource-DOZmUtSi.d.cts.map +1 -0
  34. package/dist/create-reflection-resource-UtOwX4Ml.mjs +2 -0
  35. package/dist/create-reflection-resource-UtOwX4Ml.mjs.map +1 -0
  36. package/dist/docs-BDiEhcDa.mjs +2 -0
  37. package/dist/docs-BDiEhcDa.mjs.map +1 -0
  38. package/dist/docs-Bhi9smBO.cjs +1 -0
  39. package/dist/docs-BoZkRBO4.d.cts +10 -0
  40. package/dist/docs-BoZkRBO4.d.cts.map +1 -0
  41. package/dist/docs-BwK6pC_c.d.mts +10 -0
  42. package/dist/docs-BwK6pC_c.d.mts.map +1 -0
  43. package/dist/env-0C9Vc_CF.cjs +34 -0
  44. package/dist/env-BQWQzimx.d.cts +113 -0
  45. package/dist/env-BQWQzimx.d.cts.map +1 -0
  46. package/dist/env-D4MK9BWK.mjs +32 -0
  47. package/dist/env-D4MK9BWK.mjs.map +1 -0
  48. package/dist/env-DMqCnKB2.d.mts +113 -0
  49. package/dist/env-DMqCnKB2.d.mts.map +1 -0
  50. package/dist/helpers/create-reflection-resource.cjs +1 -0
  51. package/dist/helpers/create-reflection-resource.d.cts +6 -0
  52. package/dist/helpers/create-reflection-resource.d.mts +6 -0
  53. package/dist/helpers/create-reflection-resource.mjs +1 -0
  54. package/dist/helpers/index.cjs +1 -1
  55. package/dist/helpers/index.d.cts +12 -35
  56. package/dist/helpers/index.d.mts +12 -0
  57. package/dist/helpers/index.mjs +1 -0
  58. package/dist/helpers/load.cjs +1 -7
  59. package/dist/helpers/load.d.cts +6 -60
  60. package/dist/helpers/load.d.mts +6 -0
  61. package/dist/helpers/load.mjs +1 -0
  62. package/dist/helpers/persistence.cjs +1 -7
  63. package/dist/helpers/persistence.d.cts +6 -108
  64. package/dist/helpers/persistence.d.mts +6 -0
  65. package/dist/helpers/persistence.mjs +1 -0
  66. package/dist/helpers/reflect.cjs +1 -7
  67. package/dist/helpers/reflect.d.cts +6 -72
  68. package/dist/helpers/reflect.d.mts +6 -0
  69. package/dist/helpers/reflect.mjs +1 -0
  70. package/dist/helpers/source-file-env.cjs +1 -7
  71. package/dist/helpers/source-file-env.d.cts +2 -7
  72. package/dist/helpers/source-file-env.d.mts +2 -0
  73. package/dist/helpers/source-file-env.mjs +1 -0
  74. package/dist/helpers/template-helpers.cjs +1 -7
  75. package/dist/helpers/template-helpers.d.cts +6 -41
  76. package/dist/helpers/template-helpers.d.mts +6 -0
  77. package/dist/helpers/template-helpers.mjs +1 -0
  78. package/dist/helpers-DfMThUgD.mjs +1 -0
  79. package/dist/helpers-YGhXHw5G.cjs +0 -0
  80. package/dist/index-B3G-X5Fc.d.mts +42 -0
  81. package/dist/index-B3G-X5Fc.d.mts.map +1 -0
  82. package/dist/index-BRBK9zG-.d.cts +1 -0
  83. package/dist/index-Bt4QNofW.d.mts +1 -0
  84. package/dist/index-CRo77wc3.d.mts +1 -0
  85. package/dist/index-CspKFJM1.d.cts +1 -0
  86. package/dist/index-Dpmi5zcN.d.cts +1 -0
  87. package/dist/index-E1euY2F8.d.cts +42 -0
  88. package/dist/index-E1euY2F8.d.cts.map +1 -0
  89. package/dist/index-Wc1llEvP.d.mts +1 -0
  90. package/dist/index.cjs +5 -10
  91. package/dist/index.d.cts +17 -71
  92. package/dist/index.d.mts +17 -0
  93. package/dist/index.mjs +18 -0
  94. package/dist/index.mjs.map +1 -0
  95. package/dist/load-BZTlThWg.mjs +2 -0
  96. package/dist/load-BZTlThWg.mjs.map +1 -0
  97. package/dist/load-CWOZ3u-s.d.cts +36 -0
  98. package/dist/load-CWOZ3u-s.d.cts.map +1 -0
  99. package/dist/load-Dzf30s_a.d.mts +39 -0
  100. package/dist/load-Dzf30s_a.d.mts.map +1 -0
  101. package/dist/load-nUlit5lR.cjs +1 -0
  102. package/dist/{helpers/persistence.d.ts → persistence-BSorOnu8.d.cts} +15 -38
  103. package/dist/persistence-BSorOnu8.d.cts.map +1 -0
  104. package/dist/persistence-Br-YMVb1.mjs +15 -0
  105. package/dist/persistence-Br-YMVb1.mjs.map +1 -0
  106. package/dist/persistence-KaP3-ka1.cjs +14 -0
  107. package/dist/persistence-sVp1g7Mp.d.mts +85 -0
  108. package/dist/persistence-sVp1g7Mp.d.mts.map +1 -0
  109. package/dist/plugin-CRYQ682C.cjs +0 -0
  110. package/dist/plugin-Cl-yPswT.d.cts +1716 -0
  111. package/dist/plugin-Cl-yPswT.d.cts.map +1 -0
  112. package/dist/plugin-Cx61c9gw.mjs +6 -0
  113. package/dist/plugin-Cx61c9gw.mjs.map +1 -0
  114. package/dist/plugin-DrnPbdzR.mjs +1 -0
  115. package/dist/plugin-VRahDLZZ.d.mts +1716 -0
  116. package/dist/plugin-VRahDLZZ.d.mts.map +1 -0
  117. package/dist/plugin-v-FJGggy.cjs +5 -0
  118. package/dist/reflect-C1joiXZ1.d.mts +47 -0
  119. package/dist/reflect-C1joiXZ1.d.mts.map +1 -0
  120. package/dist/reflect-CFNlkro0.d.cts +47 -0
  121. package/dist/reflect-CFNlkro0.d.cts.map +1 -0
  122. package/dist/runtime-BaZivi6m.cjs +0 -0
  123. package/dist/runtime-CIWxfv47.d.cts +795 -0
  124. package/dist/runtime-CIWxfv47.d.cts.map +1 -0
  125. package/dist/runtime-ChZa5p23.d.mts +795 -0
  126. package/dist/runtime-ChZa5p23.d.mts.map +1 -0
  127. package/dist/runtime-DqCYc37d.mjs +1 -0
  128. package/dist/source-file-CLCTB4C7.cjs +1 -0
  129. package/dist/source-file-CjFSCK1w.mjs +2 -0
  130. package/dist/source-file-CjFSCK1w.mjs.map +1 -0
  131. package/dist/source-file-env-BDFTs5WJ.mjs +2 -0
  132. package/dist/source-file-env-BDFTs5WJ.mjs.map +1 -0
  133. package/dist/source-file-env-C6uYyxww.cjs +1 -0
  134. package/dist/{helpers/source-file-env.d.ts → source-file-env-DonDJDV1.d.cts} +5 -3
  135. package/dist/source-file-env-DonDJDV1.d.cts.map +1 -0
  136. package/dist/source-file-env-DzpWKluw.d.mts +9 -0
  137. package/dist/source-file-env-DzpWKluw.d.mts.map +1 -0
  138. package/dist/template-helpers-BDDg5jaw.d.cts +16 -0
  139. package/dist/template-helpers-BDDg5jaw.d.cts.map +1 -0
  140. package/dist/template-helpers-BSbamu0U.cjs +1 -0
  141. package/dist/template-helpers-CLrM_TtO.mjs +2 -0
  142. package/dist/template-helpers-CLrM_TtO.mjs.map +1 -0
  143. package/dist/template-helpers-DmfAtQIT.d.mts +16 -0
  144. package/dist/template-helpers-DmfAtQIT.d.mts.map +1 -0
  145. package/dist/type-CnPIyotQ.d.mts +4 -0
  146. package/dist/type-CnPIyotQ.d.mts.map +1 -0
  147. package/dist/type-D6dRgWJT.d.cts +4 -0
  148. package/dist/type-D6dRgWJT.d.cts.map +1 -0
  149. package/dist/types/index.cjs +1 -1
  150. package/dist/types/index.d.cts +6 -30
  151. package/dist/types/index.d.mts +6 -0
  152. package/dist/types/index.mjs +1 -0
  153. package/dist/types/plugin.cjs +1 -1
  154. package/dist/types/plugin.d.cts +5 -1733
  155. package/dist/types/plugin.d.mts +5 -0
  156. package/dist/types/plugin.mjs +1 -0
  157. package/dist/types/runtime.cjs +1 -1
  158. package/dist/types/runtime.d.cts +3 -25
  159. package/dist/types/runtime.d.mts +3 -0
  160. package/dist/types/runtime.mjs +1 -0
  161. package/dist/types-BCto_Rzj.mjs +1 -0
  162. package/dist/types-DS7T32tb.cjs +0 -0
  163. package/dist/utilities-4S--uN0L.mjs +2 -0
  164. package/dist/utilities-4S--uN0L.mjs.map +1 -0
  165. package/dist/utilities-CxyT2chk.cjs +1 -0
  166. package/package.json +66 -55
  167. package/dist/babel/index.d.ts +0 -31
  168. package/dist/babel/index.js +0 -1
  169. package/dist/babel/plugin.d.ts +0 -34
  170. package/dist/babel/plugin.js +0 -19
  171. package/dist/chunk-FBBMZ4NC.cjs +0 -7
  172. package/dist/chunk-UCUR73HG.js +0 -7
  173. package/dist/components/env.d.ts +0 -105
  174. package/dist/components/env.js +0 -40
  175. package/dist/components/index.d.ts +0 -8
  176. package/dist/components/index.js +0 -1
  177. package/dist/fs-ECFlqnPg.d.cts +0 -378
  178. package/dist/fs-ECFlqnPg.d.ts +0 -378
  179. package/dist/helpers/index.d.ts +0 -35
  180. package/dist/helpers/index.js +0 -1
  181. package/dist/helpers/load.d.ts +0 -60
  182. package/dist/helpers/load.js +0 -7
  183. package/dist/helpers/persistence.js +0 -7
  184. package/dist/helpers/reflect.d.ts +0 -72
  185. package/dist/helpers/reflect.js +0 -7
  186. package/dist/helpers/source-file-env.js +0 -7
  187. package/dist/helpers/template-helpers.d.ts +0 -41
  188. package/dist/helpers/template-helpers.js +0 -7
  189. package/dist/index.d.ts +0 -71
  190. package/dist/index.js +0 -22
  191. package/dist/runtime-B75FziIk.d.ts +0 -2011
  192. package/dist/runtime-DqYFxAEo.d.cts +0 -2011
  193. package/dist/types/index.d.ts +0 -30
  194. package/dist/types/index.js +0 -1
  195. package/dist/types/plugin.d.ts +0 -1733
  196. package/dist/types/runtime.d.ts +0 -25
  197. /package/dist/{types/plugin.js → babel-Bmzkjy1p.cjs} +0 -0
  198. /package/dist/{types/runtime.js → components-BWruXLSx.cjs} +0 -0
@@ -1,108 +1,6 @@
1
- import { ReflectionClass } from '@deepkit/type';
2
- import { TypeDefinition } from '@stryke/types/configuration';
3
- import { U as UnresolvedContext, C as Context } from '../runtime-DqYFxAEo.cjs';
4
- import { EnvPluginResolvedConfig, EnvType, EnvPluginContext } from '../types/plugin.cjs';
5
- import '@stryke/env/get-env-paths';
6
- import '@stryke/http/fetch';
7
- import '@stryke/types/base';
8
- import '@stryke/types/package-json';
9
- import 'jiti';
10
- import 'magic-string';
11
- import 'oxc-parser';
12
- import 'semver';
13
- import 'ts-morph';
14
- import 'undici';
15
- import 'unplugin';
16
- import '@babel/core';
17
- import '@storm-software/build-tools/types';
18
- import '@storm-software/config-tools/types';
19
- import '@storm-software/config/types';
20
- import '@stryke/types/file';
21
- import 'vite';
22
- import '@babel/helper-plugin-utils';
23
- import '../fs-ECFlqnPg.cjs';
24
- import '@stryke/fs/resolve';
25
- import '@stryke/types/array';
26
- import '@stryke/types/tsconfig';
27
- import 'typescript';
28
- import '@alloy-js/core/jsx-runtime';
29
- import '@stryke/capnp';
30
- import '@stryke/env/types';
31
-
32
- /**
33
- * Resolves the runtime type definition file for the environment variables.
34
- *
35
- * @param context - The plugin context.
36
- * @returns The runtime type definition file for the environment variables.
37
- */
38
- declare function resolveRuntimeTypeFile(context: UnresolvedContext<EnvPluginResolvedConfig>): Promise<string>;
39
- /**
40
- * Gets the default type definition for the environment variables.
41
- *
42
- * @param context - The plugin context.
43
- * @returns The default type definition for the environment variables.
44
- */
45
- declare function getEnvDefaultTypeDefinition(context: UnresolvedContext<EnvPluginResolvedConfig>): Promise<TypeDefinition>;
46
- /** Gets the default type definition for the environment secrets.
47
- *
48
- * @param context - The plugin context.
49
- * @returns The default type definition for the environment secrets.
50
- */
51
- declare function getSecretsDefaultTypeDefinition(context: UnresolvedContext<EnvPluginResolvedConfig>): Promise<TypeDefinition>;
52
- /**
53
- * Gets the path to the environment type reflections.
54
- *
55
- * @param context - The plugin context.
56
- * @param name - The name of the type reflections.
57
- * @returns The path to the environment type reflections.
58
- */
59
- declare function getEnvTypeReflectionsPath(context: Context<EnvPluginResolvedConfig>, name?: EnvType): string;
60
- /**
61
- * Reads the environment type reflection from the file system.
62
- *
63
- * @param context - The plugin context.
64
- * @param name - The name of the type reflections.
65
- * @returns The environment type reflection.
66
- */
67
- declare function readEnvTypeReflection(context: EnvPluginContext, name?: EnvType): Promise<ReflectionClass<any>>;
68
- /**
69
- * Writes the environment type reflection to the file system.
70
- *
71
- * @param context - The plugin context.
72
- * @param reflection - The environment type reflection to write.
73
- * @param name - The name of the type reflections.
74
- */
75
- declare function writeEnvTypeReflection(context: EnvPluginContext, reflection: ReflectionClass<any>, name?: EnvType): Promise<void>;
76
- declare function getEnvReflectionsPath(context: EnvPluginContext, name: EnvType): string;
77
- /**
78
- * Reads the environment reflection data from the file system.
79
- *
80
- * @param context - The plugin context.
81
- * @returns The environment reflection data.
82
- */
83
- declare function readEnvReflection(context: EnvPluginContext): Promise<ReflectionClass<any>>;
84
- /**
85
- * Reads the secret environment reflection data from the file system.
86
- *
87
- * @param context - The plugin context.
88
- * @returns The environment reflection data.
89
- */
90
- declare function readSecretsReflection(context: EnvPluginContext): Promise<ReflectionClass<any>>;
91
- /**
92
- * Writes the environment reflection data to the file system.
93
- *
94
- * @param context - The plugin context.
95
- * @param reflection - The reflection data to write.
96
- * @param name - The name of the reflection (either "env" or "secrets").
97
- */
98
- declare function writeEnvReflection(context: EnvPluginContext, reflection: ReflectionClass<any>, name?: EnvType): Promise<void>;
99
- /**
100
- * Writes the environment reflection data to the file system.
101
- *
102
- * @param context - The plugin context.
103
- * @param reflection - The reflection data to write.
104
- * @param name - The name of the reflection (either "env" or "secrets").
105
- */
106
- declare function writeEnvReflectionSync(context: EnvPluginContext, reflection: ReflectionClass<any>, name?: EnvType): void;
107
-
108
- export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
1
+ import "../type-D6dRgWJT.cjs";
2
+ import "../plugin-Cl-yPswT.cjs";
3
+ import "../config-Dli3ofDp.cjs";
4
+ import "../runtime-CIWxfv47.cjs";
5
+ import { a as readEnvReflection, c as resolveRuntimeTypeFile, d as writeEnvTypeReflection, i as getSecretsDefaultTypeDefinition, l as writeEnvReflection, n as getEnvReflectionsPath, o as readEnvTypeReflection, r as getEnvTypeReflectionsPath, s as readSecretsReflection, t as getEnvDefaultTypeDefinition, u as writeEnvReflectionSync } from "../persistence-BSorOnu8.cjs";
6
+ export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
@@ -0,0 +1,6 @@
1
+ import "../type-CnPIyotQ.mjs";
2
+ import "../plugin-VRahDLZZ.mjs";
3
+ import "../config-D2esSp2r.mjs";
4
+ import "../runtime-ChZa5p23.mjs";
5
+ import { a as readEnvReflection, c as resolveRuntimeTypeFile, d as writeEnvTypeReflection, i as getSecretsDefaultTypeDefinition, l as writeEnvReflection, n as getEnvReflectionsPath, o as readEnvTypeReflection, r as getEnvTypeReflectionsPath, s as readSecretsReflection, t as getEnvDefaultTypeDefinition, u as writeEnvReflectionSync } from "../persistence-sVp1g7Mp.mjs";
6
+ export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
@@ -0,0 +1 @@
1
+ import{a as e,c as t,d as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"../persistence-Br-YMVb1.mjs";export{l as getEnvDefaultTypeDefinition,a as getEnvReflectionsPath,s as getEnvTypeReflectionsPath,r as getSecretsDefaultTypeDefinition,e as readEnvReflection,o as readEnvTypeReflection,c as readSecretsReflection,t as resolveRuntimeTypeFile,i as writeEnvReflection,u as writeEnvReflectionSync,n as writeEnvTypeReflection};
@@ -1,7 +1 @@
1
- 'use strict';var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),reflectType=require('@powerlines/deepkit/reflect-type'),type=require('@powerlines/deepkit/vendor/type'),isParentPath=require('@stryke/path/is-parent-path'),joinPaths=require('@stryke/path/join-paths'),titleCase=require('@stryke/string-format/title-case'),persistence=require('./persistence');/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- function T(e,n){return O(e,{type:type.merge(n.map(t=>t.type))})}chunkFBBMZ4NC_cjs.a(T,"mergeEnvReflections");function v(e,n){return L(e,{type:type.merge(n.map(t=>t.type))})}chunkFBBMZ4NC_cjs.a(v,"mergeSecretsReflections");class b{static{chunkFBBMZ4NC_cjs.a(this,"BaseEnv");}APP_NAME;APP_VERSION;BUILD_ID;BUILD_TIMESTAMP;BUILD_CHECKSUM;RELEASE_ID;RELEASE_TAG;ORGANIZATION;PLATFORM="neutral";MODE="production";ENVIRONMENT;DEBUG=false;TEST=false;MINIMAL=false;NO_COLOR=false;FORCE_COLOR=false;FORCE_HYPERLINK=false;STACKTRACE=false;INCLUDE_ERROR_DATA=false;ERROR_URL;DEFAULT_TIMEZONE;DEFAULT_LOCALE;CI=false}class I{static{chunkFBBMZ4NC_cjs.a(this,"BaseSecrets");}ENCRYPTION_KEY}function O(e,n={}){const i=n.superReflection??new type.ReflectionClass({kind:type.ReflectionKind.class,description:`The base environment configuration definition for the ${titleCase.titleCase(e.config.name)} project.`,classType:b,types:[],implements:[{kind:type.ReflectionKind.objectLiteral,typeName:"EnvInterface",description:`The environment configuration interface definition for the ${titleCase.titleCase(e.config.name)} project.`,types:[]}]});i.name="Env";const t=new type.ReflectionClass(n.type??{kind:type.ReflectionKind.objectLiteral,typeName:"Env",description:`A schema describing the list of available environment variables that can be used by the ${e.config.name?`${titleCase.titleCase(e.config.name)} application`:"application"}.`,types:[]},i);return t.name="Env",t}chunkFBBMZ4NC_cjs.a(O,"createEnvReflection");function L(e,n={}){const i=n.superReflection??new type.ReflectionClass({kind:type.ReflectionKind.class,description:`The base secrets configuration definition for the ${titleCase.titleCase(e.config.name)} project.`,classType:I,types:[],implements:[{kind:type.ReflectionKind.objectLiteral,typeName:"SecretsInterface",description:`The secrets configuration interface definition for the ${titleCase.titleCase(e.config.name)} project.`,types:[]}]});i.name="Secrets";const t=new type.ReflectionClass(n.type??{kind:type.ReflectionKind.objectLiteral,typeName:"Secrets",description:`A schema describing the list of available environment secrets that can be used by the ${e.config.name?`${titleCase.titleCase(e.config.name)} application`:"application"}.`,types:[]},i);return t.name="Secrets",t}chunkFBBMZ4NC_cjs.a(L,"createSecretsReflection");async function F(e,n,i){let t;if(n){const m=await reflectType.reflectType(e,{file:isParentPath.isParentPath(n,e.workspaceConfig.workspaceRoot)?n:joinPaths.joinPaths(e.workspaceConfig.workspaceRoot,n),name:i},{skipNodeModulesBundle:true});t=type.resolveClassType(m);}const f=await reflectType.reflectType(e,await persistence.getEnvDefaultTypeDefinition(e)),p=await persistence.readEnvTypeReflection(e,"env");return T(e,[p,t,type.resolveClassType(f)].filter(Boolean))}chunkFBBMZ4NC_cjs.a(F,"reflectEnv");async function K(e,n,i){let t;if(n){const m=await reflectType.reflectType(e,{file:isParentPath.isParentPath(n,e.workspaceConfig.workspaceRoot)?n:joinPaths.joinPaths(e.workspaceConfig.workspaceRoot,n),name:i},{skipNodeModulesBundle:true});t=type.resolveClassType(m);}const f=await reflectType.reflectType(e,await persistence.getSecretsDefaultTypeDefinition(e)),p=await persistence.readSecretsReflection(e);return v(e,[p,t,type.resolveClassType(f)].filter(Boolean))}chunkFBBMZ4NC_cjs.a(K,"reflectSecrets");exports.BaseEnv=b;exports.BaseSecrets=I;exports.createEnvReflection=O;exports.createSecretsReflection=L;exports.mergeEnvReflections=T;exports.mergeSecretsReflections=v;exports.reflectEnv=F;exports.reflectSecrets=K;
1
+ const e=require(`../persistence-KaP3-ka1.cjs`);exports.BaseEnv=e.f,exports.BaseSecrets=e.p,exports.createEnvReflection=e.m,exports.createSecretsReflection=e.h,exports.mergeEnvReflections=e.g,exports.mergeSecretsReflections=e._,exports.reflectEnv=e.v,exports.reflectSecrets=e.y;
@@ -1,72 +1,6 @@
1
- import { ReflectionClass, TypeObjectLiteral, TypeClass } from '@deepkit/type';
2
- import { EnvPluginContext } from '../types/plugin.cjs';
3
- import { E as EnvInterface, S as SecretsInterface } from '../runtime-DqYFxAEo.cjs';
4
- import '@alloy-js/core/jsx-runtime';
5
- import '@stryke/capnp';
6
- import '@stryke/env/types';
7
- import '@stryke/types/configuration';
8
- import '@stryke/env/get-env-paths';
9
- import '@stryke/http/fetch';
10
- import '@stryke/types/base';
11
- import '@stryke/types/package-json';
12
- import 'jiti';
13
- import 'magic-string';
14
- import 'oxc-parser';
15
- import 'semver';
16
- import 'ts-morph';
17
- import 'undici';
18
- import 'unplugin';
19
- import '@babel/core';
20
- import '@storm-software/build-tools/types';
21
- import '@storm-software/config-tools/types';
22
- import '@storm-software/config/types';
23
- import '@stryke/types/file';
24
- import 'vite';
25
- import '@babel/helper-plugin-utils';
26
- import '../fs-ECFlqnPg.cjs';
27
- import '@stryke/fs/resolve';
28
- import '@stryke/types/array';
29
- import '@stryke/types/tsconfig';
30
- import 'typescript';
31
-
32
- declare function mergeEnvReflections(context: EnvPluginContext, reflections: ReflectionClass<any>[]): ReflectionClass<any>;
33
- declare function mergeSecretsReflections(context: EnvPluginContext, reflections: ReflectionClass<any>[]): ReflectionClass<any>;
34
- interface CreateEnvReflectionOptions {
35
- type?: TypeObjectLiteral | TypeClass;
36
- superReflection?: ReflectionClass<any>;
37
- }
38
- declare class BaseEnv implements EnvInterface {
39
- APP_NAME: string;
40
- APP_VERSION: string;
41
- BUILD_ID: string;
42
- BUILD_TIMESTAMP: string;
43
- BUILD_CHECKSUM: string;
44
- RELEASE_ID: string;
45
- RELEASE_TAG: string;
46
- ORGANIZATION: string;
47
- PLATFORM: "node" | "browser" | "neutral";
48
- MODE: "development" | "test" | "production";
49
- ENVIRONMENT: string;
50
- DEBUG: boolean;
51
- TEST: boolean;
52
- MINIMAL: boolean;
53
- NO_COLOR: boolean;
54
- FORCE_COLOR: number | boolean;
55
- FORCE_HYPERLINK: number | boolean;
56
- STACKTRACE: boolean;
57
- INCLUDE_ERROR_DATA: boolean;
58
- ERROR_URL: string;
59
- DEFAULT_TIMEZONE: string;
60
- DEFAULT_LOCALE: string;
61
- CI: boolean;
62
- }
63
- declare class BaseSecrets implements SecretsInterface {
64
- ENCRYPTION_KEY: string;
65
- }
66
- declare function createEnvReflection(context: EnvPluginContext, options?: CreateEnvReflectionOptions): ReflectionClass<any>;
67
- declare function createSecretsReflection(context: EnvPluginContext, options?: CreateEnvReflectionOptions): ReflectionClass<any>;
68
- declare function reflectEnv(context: EnvPluginContext, file?: string, name?: string): Promise<ReflectionClass<any>>;
69
- declare function reflectSecrets(context: EnvPluginContext, file?: string, name?: string): Promise<ReflectionClass<any>>;
70
- declare type __ΩCreateEnvReflectionOptions = any[];
71
-
72
- export { BaseEnv, BaseSecrets, type CreateEnvReflectionOptions, type __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets };
1
+ import "../type-D6dRgWJT.cjs";
2
+ import "../plugin-Cl-yPswT.cjs";
3
+ import "../config-Dli3ofDp.cjs";
4
+ import "../runtime-CIWxfv47.cjs";
5
+ import { a as createEnvReflection, c as mergeSecretsReflections, i as __ΩCreateEnvReflectionOptions, l as reflectEnv, n as BaseSecrets, o as createSecretsReflection, r as CreateEnvReflectionOptions, s as mergeEnvReflections, t as BaseEnv, u as reflectSecrets } from "../reflect-CFNlkro0.cjs";
6
+ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets };
@@ -0,0 +1,6 @@
1
+ import "../type-CnPIyotQ.mjs";
2
+ import "../plugin-VRahDLZZ.mjs";
3
+ import "../config-D2esSp2r.mjs";
4
+ import "../runtime-ChZa5p23.mjs";
5
+ import { a as createEnvReflection, c as mergeSecretsReflections, i as __ΩCreateEnvReflectionOptions, l as reflectEnv, n as BaseSecrets, o as createSecretsReflection, r as CreateEnvReflectionOptions, s as mergeEnvReflections, t as BaseEnv, u as reflectSecrets } from "../reflect-C1joiXZ1.mjs";
6
+ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets };
@@ -0,0 +1 @@
1
+ import{_ as e,f as t,g as n,h as r,m as i,p as a,v as o,y as s}from"../persistence-Br-YMVb1.mjs";export{t as BaseEnv,a as BaseSecrets,i as createEnvReflection,r as createSecretsReflection,n as mergeEnvReflections,e as mergeSecretsReflections,o as reflectEnv,s as reflectSecrets};
@@ -1,7 +1 @@
1
- 'use strict';var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),types=require('@stryke/env/types'),camelCase=require('@stryke/string-format/camel-case'),isString=require('@stryke/type-checks/is-string');/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- function i(r){if(isString.isString(r)){let t=types.ENV_PREFIXES.reduce((e,n)=>(e.startsWith(n)&&(e=e.slice(n.length)),e),r.toUpperCase());for(;t.startsWith("_");)t=t.slice(1);return t}return Object.keys(r).reduce((t,e)=>{const n=i(e);return n&&(t[n]=r[e]),t},{})}chunkFBBMZ4NC_cjs.a(i,"removeEnvPrefix");function T(r){return camelCase.camelCase(i(r))}chunkFBBMZ4NC_cjs.a(T,"formatEnvField");exports.formatEnvField=T;exports.removeEnvPrefix=i;
1
+ const e=require(`../source-file-env-C6uYyxww.cjs`);exports.formatEnvField=e.t,exports.removeEnvPrefix=e.n;
@@ -1,7 +1,2 @@
1
- import { DotenvParseOutput } from '@stryke/env/types';
2
-
3
- type TReturned<TEnv> = TEnv extends string ? string : DotenvParseOutput;
4
- declare function removeEnvPrefix<TEnv extends DotenvParseOutput | string>(env: TEnv): TReturned<TEnv>;
5
- declare function formatEnvField(key: string): string;
6
-
7
- export { formatEnvField, removeEnvPrefix };
1
+ import { n as removeEnvPrefix, t as formatEnvField } from "../source-file-env-DonDJDV1.cjs";
2
+ export { formatEnvField, removeEnvPrefix };
@@ -0,0 +1,2 @@
1
+ import { n as removeEnvPrefix, t as formatEnvField } from "../source-file-env-DzpWKluw.mjs";
2
+ export { formatEnvField, removeEnvPrefix };
@@ -0,0 +1 @@
1
+ import{n as e,t}from"../source-file-env-BDFTs5WJ.mjs";export{t as formatEnvField,e as removeEnvPrefix};
@@ -1,7 +1 @@
1
- 'use strict';var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),titleCase=require('@stryke/string-format/title-case'),persistence=require('./persistence');/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- async function P(a,l){const i=await persistence.readEnvTypeReflection(a,l);return i.getProperties().forEach(e=>{e.getAlias().filter(Boolean).forEach(t=>{i.addProperty({name:t,optional:e.isOptional()?true:void 0,readonly:e.isReadonly()?true:void 0,description:e.getDescription(),visibility:e.getVisibility(),type:e.getType(),default:e.getDefaultValue(),tags:{hidden:e.isHidden(),ignore:e.isIgnored(),internal:e.isInternal(),alias:e.getAlias().filter(s=>s!==t).concat(e.name),title:e.getTitle()||titleCase.titleCase(e.name),readonly:e.isReadonly(),permission:e.getPermission(),domain:e.getDomain()}});});}),i}chunkFBBMZ4NC_cjs.a(P,"createTemplateReflection");exports.createTemplateReflection=P;
1
+ require(`../persistence-KaP3-ka1.cjs`);const e=require(`../template-helpers-BSbamu0U.cjs`);exports.createTemplateReflection=e.t;
@@ -1,41 +1,6 @@
1
- import { ReflectionClass } from '@deepkit/type';
2
- import { EnvPluginContext, EnvType } from '../types/plugin.cjs';
3
- import '@alloy-js/core/jsx-runtime';
4
- import '@stryke/capnp';
5
- import '../runtime-DqYFxAEo.cjs';
6
- import '@stryke/env/get-env-paths';
7
- import '@stryke/http/fetch';
8
- import '@stryke/types/base';
9
- import '@stryke/types/package-json';
10
- import 'jiti';
11
- import 'magic-string';
12
- import 'oxc-parser';
13
- import 'semver';
14
- import 'ts-morph';
15
- import 'undici';
16
- import 'unplugin';
17
- import '@babel/core';
18
- import '@storm-software/build-tools/types';
19
- import '@storm-software/config-tools/types';
20
- import '@storm-software/config/types';
21
- import '@stryke/types/configuration';
22
- import '@stryke/types/file';
23
- import 'vite';
24
- import '@babel/helper-plugin-utils';
25
- import '../fs-ECFlqnPg.cjs';
26
- import '@stryke/fs/resolve';
27
- import '@stryke/types/array';
28
- import '@stryke/types/tsconfig';
29
- import 'typescript';
30
- import '@stryke/env/types';
31
-
32
- /**
33
- * Creates the reflection data used when generating runtime template files.
34
- *
35
- * @param context - The context for the configuration plugin.
36
- * @param name - The name of the configuration template.
37
- * @returns The reflection for the specified configuration template.
38
- */
39
- declare function createTemplateReflection(context: EnvPluginContext, name?: EnvType): Promise<ReflectionClass<any>>;
40
-
41
- export { createTemplateReflection };
1
+ import "../type-D6dRgWJT.cjs";
2
+ import "../plugin-Cl-yPswT.cjs";
3
+ import "../config-Dli3ofDp.cjs";
4
+ import "../runtime-CIWxfv47.cjs";
5
+ import { t as createTemplateReflection } from "../template-helpers-BDDg5jaw.cjs";
6
+ export { createTemplateReflection };
@@ -0,0 +1,6 @@
1
+ import "../type-CnPIyotQ.mjs";
2
+ import "../plugin-VRahDLZZ.mjs";
3
+ import "../config-D2esSp2r.mjs";
4
+ import "../runtime-ChZa5p23.mjs";
5
+ import { t as createTemplateReflection } from "../template-helpers-DmfAtQIT.mjs";
6
+ export { createTemplateReflection };
@@ -0,0 +1 @@
1
+ import"../persistence-Br-YMVb1.mjs";import{t as e}from"../template-helpers-CLrM_TtO.mjs";export{e as createTemplateReflection};
@@ -0,0 +1 @@
1
+ export{};
File without changes
@@ -0,0 +1,42 @@
1
+ import { r as EnvPluginResolvedConfig, t as EnvPluginContext } from "./plugin-VRahDLZZ.mjs";
2
+ import { c as Plugin, o as PluginContext, r as DeclareBabelTransformPluginReturn } from "./config-D2esSp2r.mjs";
3
+ import { Children } from "@alloy-js/core/jsx-runtime";
4
+ import { PrintTreeOptions } from "@alloy-js/core";
5
+ import { TypeDefinitionParameter } from "@stryke/types/configuration";
6
+
7
+ //#region ../plugin-plugin/src/types/plugin.d.ts
8
+ type PluginPluginAlloyOptions = Partial<PrintTreeOptions> & {
9
+ /**
10
+ * If true, the Alloy framework is used to generate JSON output files.
11
+ *
12
+ * @defaultValue false
13
+ */
14
+ generatesJson?: boolean;
15
+ /**
16
+ * If true, the Alloy framework is used to generate Markdown output files.
17
+ *
18
+ * @defaultValue false
19
+ */
20
+ generatesMarkdown?: boolean;
21
+ };
22
+ //#endregion
23
+ //#region ../alloy/src/types/plugin.d.ts
24
+ interface AlloyPluginOptions {
25
+ alloy?: PluginPluginAlloyOptions;
26
+ }
27
+ type AlloyPluginBuilderResult<TContext extends PluginContext = PluginContext> = Plugin<TContext> & {
28
+ render: (this: TContext) => Children;
29
+ };
30
+ type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = <T extends TContext>(options: TOptions) => AlloyPluginBuilderResult<T>;
31
+ //#endregion
32
+ //#region src/index.d.ts
33
+ /**
34
+ * A Powerlines plugin to inject environment variables into the source code.
35
+ */
36
+ declare const plugin: <T extends EnvPluginContext<EnvPluginResolvedConfig>>(options: Parameters<AlloyPluginBuilder<EnvPluginContext<EnvPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<T>;
37
+ //#endregion
38
+ //#region src/babel/plugin.d.ts
39
+ declare const envBabelPlugin: DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
40
+ //#endregion
41
+ export { plugin as n, envBabelPlugin as t };
42
+ //# sourceMappingURL=index-B3G-X5Fc.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-B3G-X5Fc.d.mts","names":[],"sources":["../../plugin-plugin/src/types/plugin.ts","../../alloy/src/types/plugin.ts","../src/index.tsx","../src/babel/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;KA4BY,wBAAA,GAA2B,QAAQ;EAAnC;;;;ACLZ;EAIY,aAAA,CAAA,EAAA,OAAA;EACO;;;;;EAEW,iBAAA,CAAA,EAAA,OAAA;CAAQ;;;UAPrB,kBAAA;UACP;;ADIE,KCDA,wBDCwB,CAAA,iBCAjB,aDAoB,GCAJ,aDAW,CAAA,GCC1C,MDD0C,CCCnC,QDDmC,CAAA,GAAA;iBCE7B,aAAa;;KAGlB,oCACO,gBAAgB,4CAEpB,mBAAmB,aAAa,yBAAyB;;;;;ADRxE;cEoCa,mBAAM,iBA8VlB,uBAAA,YA9VkB,WAAA,mBAAA,iBAAA,uBAAA,SAAA,uBAAA,OAAA;;;cCnBN,gBAAc,kCAAA,iBA6R1B,uBAAA,GA7R0B"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,42 @@
1
+ import { r as EnvPluginResolvedConfig, t as EnvPluginContext } from "./plugin-Cl-yPswT.cjs";
2
+ import { c as Plugin, o as PluginContext, r as DeclareBabelTransformPluginReturn } from "./config-Dli3ofDp.cjs";
3
+ import { Children } from "@alloy-js/core/jsx-runtime";
4
+ import { TypeDefinitionParameter } from "@stryke/types/configuration";
5
+ import { PrintTreeOptions } from "@alloy-js/core";
6
+
7
+ //#region ../plugin-plugin/src/types/plugin.d.ts
8
+ type PluginPluginAlloyOptions = Partial<PrintTreeOptions> & {
9
+ /**
10
+ * If true, the Alloy framework is used to generate JSON output files.
11
+ *
12
+ * @defaultValue false
13
+ */
14
+ generatesJson?: boolean;
15
+ /**
16
+ * If true, the Alloy framework is used to generate Markdown output files.
17
+ *
18
+ * @defaultValue false
19
+ */
20
+ generatesMarkdown?: boolean;
21
+ };
22
+ //#endregion
23
+ //#region ../alloy/src/types/plugin.d.ts
24
+ interface AlloyPluginOptions {
25
+ alloy?: PluginPluginAlloyOptions;
26
+ }
27
+ type AlloyPluginBuilderResult<TContext extends PluginContext = PluginContext> = Plugin<TContext> & {
28
+ render: (this: TContext) => Children;
29
+ };
30
+ type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = <T extends TContext>(options: TOptions) => AlloyPluginBuilderResult<T>;
31
+ //#endregion
32
+ //#region src/index.d.ts
33
+ /**
34
+ * A Powerlines plugin to inject environment variables into the source code.
35
+ */
36
+ declare const plugin: <T extends EnvPluginContext<EnvPluginResolvedConfig>>(options: Parameters<AlloyPluginBuilder<EnvPluginContext<EnvPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<T>;
37
+ //#endregion
38
+ //#region src/babel/plugin.d.ts
39
+ declare const envBabelPlugin: DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
40
+ //#endregion
41
+ export { plugin as n, envBabelPlugin as t };
42
+ //# sourceMappingURL=index-E1euY2F8.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-E1euY2F8.d.cts","names":[],"sources":["../../plugin-plugin/src/types/plugin.ts","../../alloy/src/types/plugin.ts","../src/index.tsx","../src/babel/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;KA4BY,wBAAA,GAA2B,QAAQ;EAAnC;;;;ACLZ;EAIY,aAAA,CAAA,EAAA,OAAA;EACO;;;;;EAEW,iBAAA,CAAA,EAAA,OAAA;CAAQ;;;UAPrB,kBAAA;UACP;;ADIE,KCDA,wBDCwB,CAAA,iBCAjB,aDAoB,GCAJ,aDAW,CAAA,GCC1C,MDD0C,CCCnC,QDDmC,CAAA,GAAA;iBCE7B,aAAa;;KAGlB,oCACO,gBAAgB,4CAEpB,mBAAmB,aAAa,yBAAyB;;;;;ADRxE;cEoCa,mBAAM,iBA8VlB,uBAAA,YA9VkB,WAAA,mBAAA,iBAAA,uBAAA,SAAA,uBAAA,OAAA;;;cCnBN,gBAAc,kCAAA,iBA6R1B,uBAAA,GA7R0B"}
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.cjs CHANGED
@@ -1,10 +1,5 @@
1
- 'use strict';Object.defineProperty(exports,'__esModule',{value:true});require('./chunk-FBBMZ4NC.cjs');var jsxRuntime=require('@alloy-js/core/jsx-runtime'),createPlugin=require('@powerlines/alloy/create-plugin'),type=require('@powerlines/deepkit/vendor/type'),A=require('@powerlines/plugin-babel'),types$1=require('@storm-software/config-tools/types'),parseTypeDefinition=require('@stryke/convert/parse-type-definition'),toArray=require('@stryke/convert/to-array'),types$2=require('@stryke/env/types'),exists=require('@stryke/fs/exists'),helpers$1=require('@stryke/fs/helpers'),isParentPath=require('@stryke/path/is-parent-path'),join=require('@stryke/path/join'),constantCase=require('@stryke/string-format/constant-case'),w=require('defu'),plugin=require('./babel/plugin'),env=require('./components/env'),load=require('./helpers/load'),persistence=require('./helpers/persistence'),reflect=require('./helpers/reflect'),babel=require('./babel'),components=require('./components'),helpers=require('./helpers'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var A__default=/*#__PURE__*/_interopDefault(A);var w__default=/*#__PURE__*/_interopDefault(w);/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- const F=createPlugin.createAlloyPlugin((g={})=>({name:"env",dependsOn:[A__default.default(g.babel)],async config(){this.log(types$1.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");const e={env:w__default.default(g,{types:{},prefix:[]}),transform:{babel:{plugins:[plugin.envBabelPlugin]}}};if(e.env.types)e.env.types=parseTypeDefinition.parseTypeDefinition(e.env.types);else {this.log(types$1.LogLevelLabel.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");const t=await persistence.getEnvDefaultTypeDefinition(this);e.env.types=parseTypeDefinition.parseTypeDefinition(`${t.file}#${t.name}`);}if(e.env.secrets)e.env.secrets=parseTypeDefinition.parseTypeDefinition(e.env.secrets);else {const t=await persistence.getSecretsDefaultTypeDefinition(this);e.env.secrets=parseTypeDefinition.parseTypeDefinition(`${t.file}#${t.name}`);}return e.env.prefix=toArray.toArray(e.env.prefix??[]).reduce((t,n)=>{const i=constantCase.constantCase(n);return t.includes(i)||t.push(i),t},[...types$2.ENV_PREFIXES,"POWERLINES_"]),e.env.prefix=e.env.prefix.reduce((t,n)=>(t.includes(n.replace(/_$/g,""))||t.push(n.replace(/_$/g,"")),t),[]),e},async configResolved(){if(this.log(types$1.LogLevelLabel.TRACE,"Environment plugin configuration has been resolved for the Powerlines project."),this.config.env.inject??=this.config.projectType==="application",this.env=w__default.default({parsed:await load.loadEnv(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!=="prepare"&&this.persistedMeta?.checksum===this.meta.checksum&&exists.existsSync(persistence.getEnvTypeReflectionsPath(this,"env")))this.log(types$1.LogLevelLabel.TRACE,"Skipping reflection initialization as the meta checksum has not changed."),this.env.types.env=await persistence.readEnvTypeReflection(this,"env"),exists.existsSync(persistence.getEnvReflectionsPath(this,"env"))&&(this.env.used.env=await persistence.readEnvReflection(this)),exists.existsSync(persistence.getEnvTypeReflectionsPath(this,"secrets"))&&(this.env.types.secrets=await persistence.readEnvTypeReflection(this,"secrets")),exists.existsSync(persistence.getEnvReflectionsPath(this,"secrets"))&&(this.env.used.secrets=await persistence.readSecretsReflection(this));else {if(this.env.types.env=await reflect.reflectEnv(this,this.config.env.types?.file?isParentPath.isParentPath(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:join.joinPaths(this.config.projectRoot,this.config.env.types?.file):void 0,this.config.env.types?.name),!this.env.types.env)throw new Error("Failed to find the environment configuration type reflection in the context.");if(await persistence.writeEnvTypeReflection(this,this.env.types.env,"env"),this.env.types.secrets=await reflect.reflectSecrets(this,this.config.env.secrets?.file?isParentPath.isParentPath(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:join.joinPaths(this.config.projectRoot,this.config.env.secrets?.file):void 0,this.config.env.secrets?.name),!this.env.types.secrets)throw new Error("Failed to find the secrets configuration type reflection in the context.");await persistence.writeEnvTypeReflection(this,this.env.types.secrets,"secrets"),this.log(types$1.LogLevelLabel.TRACE,`Resolved ${this.env.types.env.getProperties().length??0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length??0} secret configuration parameters`);const e=this.env.types.env.getProperties().filter(t=>t.getAlias().length>0);Object.entries(await load.loadEnv(this,this.config.env)).forEach(([t,n])=>{const i=this.config.env.prefix.reduce((f,m)=>t.replace(/_$/g,"").startsWith(m)?t.replace(/_$/g,"").slice(m.length):f,t),c=e.find(f=>f?.getAlias().reverse().includes(i));(this.env.types.env?.hasProperty(i)||c)&&this.env.types.env.getProperty(i).setDefaultValue(n);}),this.env.used.env=new type.ReflectionClass({kind:type.ReflectionKind.objectLiteral,typeName:"Env",description:`An object containing the environment configuration parameters used by the ${this.config.name?`${this.config.name} application`:"application"}.`,types:[]},this.env.types.env),await persistence.writeEnvReflection(this,this.env.used.env,"env"),this.env.types.secrets&&(await persistence.writeEnvTypeReflection(this,this.env.types.secrets,"secrets"),this.env.used.secrets=new type.ReflectionClass({kind:type.ReflectionKind.objectLiteral,typeName:"Secrets",description:`An object containing the secret configuration parameters used by the ${this.config.name?`${this.config.name} application`:"application"}.`,types:[]},this.env.types.secrets),await persistence.writeEnvReflection(this,this.env.used.secrets,"secrets"));}},render(){const e=this;return this.log(types$1.LogLevelLabel.TRACE,"Preparing the Environment runtime artifacts for the Powerlines project."),jsxRuntime.createComponent(env.EnvBuiltin,{get defaultConfig(){return e.config.env.defaultConfig}})},async docs(){this.log(types$1.LogLevelLabel.TRACE,"Writing Environment documentation for the Powerlines project artifacts.");const e=join.joinPaths(this.config.projectRoot,"docs","generated");exists.existsSync(e)||await helpers$1.createDirectory(e);const t=await persistence.readEnvTypeReflection(this,"env"),n=join.joinPaths(e,"env.md");this.log(types$1.LogLevelLabel.TRACE,`Documenting environment variables configuration in "${n}"`),await this.fs.write(n,`<!-- Generated by Powerlines -->
1
+ Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./chunk-DT2f8AgL.cjs`),t=require(`./source-file-CLCTB4C7.cjs`),n=require(`./persistence-KaP3-ka1.cjs`),r=require(`./plugin-v-FJGggy.cjs`);require(`./utilities-CxyT2chk.cjs`);const i=require(`./env-0C9Vc_CF.cjs`),a=require(`./source-file-env-C6uYyxww.cjs`),o=require(`./load-nUlit5lR.cjs`),s=require(`./create-reflection-resource-CQHJrkQi.cjs`);require(`./babel-Bmzkjy1p.cjs`);const c=require(`./docs-Bhi9smBO.cjs`);require(`./components-BWruXLSx.cjs`);const l=require(`./template-helpers-BSbamu0U.cjs`);require(`./helpers-YGhXHw5G.cjs`),require(`./plugin-CRYQ682C.cjs`),require(`./runtime-BaZivi6m.cjs`),require(`./types-DS7T32tb.cjs`);let u=require(`@alloy-js/core/jsx-runtime`),d=require(`@alloy-js/core`),f=require(`@storm-software/config-tools/types`),p=require(`@stryke/path/is-parent-path`),m=require(`@stryke/path/replace`),h=require(`@stryke/type-checks/is-set-string`),g=require(`@stryke/type-checks/is-function`),_=require(`@stryke/type-checks/is-set-object`),v=require(`@stryke/type-checks/is-undefined`),y=require(`prettier/doc.js`),b=require(`@babel/core`),x=require(`@stryke/path/file-path-fns`),S=require(`defu`);S=e.n(S),require(`@stryke/type-checks/is-object`);let C=require(`chalk`);C=e.n(C);let w=require(`@stryke/convert/parse-type-definition`),T=require(`@stryke/convert/to-array`),E=require(`@stryke/env/types`),D=require(`@stryke/fs/exists`),O=require(`@stryke/fs/helpers`),k=require(`@stryke/path/join`),A=require(`@stryke/string-format/constant-case`);function j(e){return(0,g.isFunction)(e)||(0,_.isSetObject)(e)&&`handler`in e&&(0,g.isFunction)(e.handler)}function M(e){return(0,_.isSetObject)(e)&&`handler`in e&&(0,g.isFunction)(e.handler)}function N(e){return j(e)||M(e)}function P(e){return(0,g.isFunction)(e)?e:e.handler}function F(e){let[{children:n,context:r,basePath:i},a]=(0,d.splitProps)(e,[`children`,`context`,`basePath`]),o=(0,d.ref)(r),s=(0,d.computed)(()=>i?(0,m.replacePath)(i,o.value.workspaceConfig.workspaceRoot):o.value.workspaceConfig.workspaceRoot);return(0,u.createComponent)(d.Output,(0,u.mergeProps)(a,{get basePath(){return s.value},get children(){return(0,u.createComponent)(t.r.Provider,{value:{ref:o},get children(){return(0,u.createComponent)(d.Show,{get when(){return!!o.value},children:n})}})}}))}function I(e){return t=>{let n=e(t);return{...n,async prepare(){let e=this;if(N(n.prepare)&&n.enforce!==`post`&&(j(n.prepare)||M(n.prepare)&&n.prepare.order!==`post`)&&await Promise.resolve(P(n.prepare).call(this)),N(n.render)){let r=(0,d.renderTree)((0,u.createComponent)(F,{context:e,get basePath(){return e.workspaceConfig.workspaceRoot},get children(){return n.render.call(e)}}));await L(this,r,t?.alloy)}N(n.prepare)&&(n.enforce===`post`||M(n.prepare)&&n.prepare.order===`post`)&&await Promise.resolve(P(n.prepare).call(this))}}}}async function L(e,t,n={}){await(0,d.flushJobsAsync)();let r,i=async(t,a)=>{if(!Array.isArray(a))return;let o=async e=>{for(let t of a)await i(e,t)},s=(0,d.getContextForRenderNode)(a);if(!s)return o(t);if(s.meta?.directory){let e={kind:`directory`,path:s.meta.directory.path,contents:[]};t?t.contents.push(e):r=e,await o(e)}else if(s.meta?.sourceFile){if(!t)throw Error(`Source file doesn't have parent directory. Make sure you have used the Output component.`);let r;if(s.meta?.builtin){if(!s.meta.builtin.id)throw Error("Built-in runtime module doesn't have an ID. Make sure you have used the `<BuiltinFile />` component.");e.log(f.LogLevelLabel.TRACE,`Rendering built-in runtime module with ID: ${s.meta.builtin.id}`),r={kind:`builtin`,id:s.meta.builtin.id,path:(0,m.replacePath)(s.meta.sourceFile.path,e.builtinsPath),filetype:s.meta.sourceFile.filetype,preset:s.meta.output?.mode,contents:await R(e,a,n)}}else s.meta?.entry||(0,p.isParentPath)(e.entryPath,s.meta.sourceFile.path)?(e.log(f.LogLevelLabel.TRACE,`Rendering entry module at path: ${s.meta.sourceFile.path}`),r={kind:`entry`,typeDefinition:s.meta.entry?.typeDefinition,path:s.meta.sourceFile.path,filetype:s.meta.sourceFile.filetype,preset:s.meta.output?.mode,contents:await R(e,a,n)}):(e.log(f.LogLevelLabel.TRACE,`Rendering source file at path: ${s.meta.sourceFile.path}`),r={kind:`file`,path:s.meta.sourceFile.path,filetype:s.meta.sourceFile.filetype,preset:s.meta.output?.mode,contents:await R(e,a,n)});t.contents.push(r)}else if(s.meta?.copyFile){if(!t)throw Error(`Copy file doesn't have parent directory. Make sure you have used the Output component.`);if(e.log(f.LogLevelLabel.TRACE,`Processing copy file operation from "${s.meta.copyFile.sourcePath}" to "${s.meta.copyFile.path}"`),!s.meta.copyFile.sourcePath)throw Error("Copy file doesn't have a source path. Make sure you have provided a `sourcePath` property to the `meta.copyFile` context.");if(!s.meta.copyFile.path)throw Error("Copy file doesn't have a destination path. Make sure you have provided a `path` property to the `meta.copyFile` context.");t.contents.push({kind:`file`,path:s.meta.copyFile.path,sourcePath:s.meta.copyFile.sourcePath,preset:s.meta.output?.preset})}else await o(t)};await i(void 0,t);let a=async(e,t)=>{for(let n of t.contents)if(n.kind===`directory`)await a(e,n);else if(n.kind===`builtin`)await e.emitBuiltin(n.contents,n.id,n.path);else if(n.kind===`entry`)await e.emitEntry(n.contents,n.path);else if(n.kind===`file`)if(`sourcePath`in n&&n.sourcePath){if(!e.fs.existsSync(n.sourcePath))throw Error(`Source file "${n.sourcePath}" for copy operation does not exist.`);let t=await e.fs.read(n.sourcePath);if(!(0,h.isSetString)(t))throw Error(`Source file "${n.sourcePath}" for copy operation is empty.`);await e.fs.write(n.path,t)}else if(`contents`in n&&(0,h.isSetString)(n.contents))await e.fs.write(n.path,n.contents);else throw Error(`Unexpected output extracted from the render tree: \n\n${JSON.stringify(n,null,2)}`)};await a(e,r)}async function R(e,t,n={}){n.printWidth??=160,n.tabWidth??=2,n.useTabs??=!1,n.insertFinalNewLine??=!0,await(0,d.flushJobsAsync)();let r=y.printer.printDocToString(z(t),n).formatted;return n.insertFinalNewLine&&!r.endsWith(`
2
+ `)?`${r}\n`:r}function z(e){let t=[];for(let n of e)if(typeof n==`string`){let e=n.split(/\r?\n/).flatMap((e,t,n)=>(n.length-1,[e]));t.push(e)}else (0,d.isPrintHook)(n)?t.push(n.print(n.subtree,z)):t.push(z(n));return t}function B(e){return(0,h.isSetString)(e)?e:Array.isArray(e)&&e.length>0?B(e[0]):e.$$name||e.name?e.$$name||e.name:void 0}function V(e,t){return!!(B(t)&&e.some(e=>Array.isArray(e)&&B(e[0])===B(t)))}function H(e,t){try{return Array.isArray(t)&&t.length>0&&t[0]?(0,g.isFunction)(t[0])?t[0](e):t[0]:(0,g.isFunction)(t)?t(e):t}catch{return t[0]}}function U(e,t,n,r){if(Array.isArray(r)&&r.length>0&&r[0]){if(r.length>2&&r[2]&&(0,g.isFunction)(r[2])&&!r[2](t,n)){e.log(f.LogLevelLabel.TRACE,`Skipping filtered Babel plugin ${C.default.bold.cyanBright(B(r)||`unnamed`)} for ${n}`);return}return r.length>2?[H(e,r),r[1],r[2]]:[H(e,r),r[1],null]}return[H(e,r),{},null]}const W=(e={})=>({name:`babel`,config(){if((0,_.isSetObject)(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=(0,S.default)(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(t,n){if((0,p.isParentPath)(n,this.powerlinesPath)||t.includes(`/* @storm-ignore */`)||t.includes(`/* @storm-disable */`))return this.log(f.LogLevelLabel.TRACE,`Skipping Babel transformation for: ${n}`),{code:t,id:n};this.log(f.LogLevelLabel.TRACE,`Babel transforming file: ${n}`);let r=this.config.transform.babel.plugins.map(e=>U(this,t,n,e)).filter((e,t,n)=>e&&!V(n,e)),i=this.config.transform.babel.presets.map(e=>U(this,t,n,e)).filter((e,t,n)=>e&&!V(n,e));if(Array.isArray(r)&&r.length===0&&Array.isArray(i)&&i.length===0)return{code:t,id:n};[`ts`,`cts`,`mts`,`tsx`].includes((0,x.findFileExtensionSafe)(n))&&!V(r,`@babel/plugin-syntax-typescript`)&&!V(i,`@babel/preset-typescript`)&&r.unshift([`@babel/plugin-syntax-typescript`,{isTSX:(0,x.findFileExtension)(n)===`.tsx`}]);let a=await(0,b.transformAsync)(t,{highlightCode:!0,code:!0,ast:!1,cloneInputAst:!1,comments:!0,sourceType:`module`,configFile:!1,babelrc:!1,envName:this.config.mode,caller:{name:this.config.framework},...this.config.transform.babel??{},filename:n,plugins:r.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,S.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:i.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,S.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!a?.code)throw Error(`Powerlines - Babel plugin failed to compile ${n}`);return{code:a.code,id:n}}});var G=W;const K=I((e={})=>({name:`env`,dependsOn:[G(e.babel)],async config(){this.log(f.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");let t={env:(0,S.default)(e,{types:{},prefix:[]}),transform:{babel:{plugins:[r.t]}}};if(t.env.types)t.env.types=(0,w.parseTypeDefinition)(t.env.types);else{this.log(f.LogLevelLabel.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");let e=await n.t(this);t.env.types=(0,w.parseTypeDefinition)(`${e.file}#${e.name}`)}if(t.env.secrets)t.env.secrets=(0,w.parseTypeDefinition)(t.env.secrets);else{let e=await n.i(this);t.env.secrets=(0,w.parseTypeDefinition)(`${e.file}#${e.name}`)}return t.env.prefix=(0,T.toArray)(t.env.prefix??[]).reduce((e,t)=>{let n=(0,A.constantCase)(t);return e.includes(n)||e.push(n),e},[...E.ENV_PREFIXES,`POWERLINES_`]),t.env.prefix=t.env.prefix.reduce((e,t)=>(e.includes(t.replace(/_$/g,``))||e.push(t.replace(/_$/g,``)),e),[]),t},async configResolved(){if(this.log(f.LogLevelLabel.TRACE,`Environment plugin configuration has been resolved for the Powerlines project.`),this.config.env.inject??=this.config.projectType===`application`,this.env=(0,S.default)({parsed:await o.t(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!==`prepare`&&this.persistedMeta?.checksum===this.meta.checksum&&(0,D.existsSync)(n.r(this,`env`)))this.log(f.LogLevelLabel.TRACE,`Skipping reflection initialization as the meta checksum has not changed.`),this.env.types.env=await n.o(this,`env`),(0,D.existsSync)(n.n(this,`env`))&&(this.env.used.env=await n.a(this)),(0,D.existsSync)(n.r(this,`secrets`))&&(this.env.types.secrets=await n.o(this,`secrets`)),(0,D.existsSync)(n.n(this,`secrets`))&&(this.env.used.secrets=await n.s(this));else{if(this.env.types.env=await n.v(this,this.config.env.types?.file?(0,p.isParentPath)(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:(0,k.joinPaths)(this.config.projectRoot,this.config.env.types?.file):void 0,this.config.env.types?.name),!this.env.types.env)throw Error(`Failed to find the environment configuration type reflection in the context.`);if(await n.d(this,this.env.types.env,`env`),this.env.types.secrets=await n.y(this,this.config.env.secrets?.file?(0,p.isParentPath)(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:(0,k.joinPaths)(this.config.projectRoot,this.config.env.secrets?.file):void 0,this.config.env.secrets?.name),!this.env.types.secrets)throw Error(`Failed to find the secrets configuration type reflection in the context.`);await n.d(this,this.env.types.secrets,`secrets`),this.log(f.LogLevelLabel.TRACE,`Resolved ${this.env.types.env.getProperties().length??0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length??0} secret configuration parameters`);let e=this.env.types.env.getProperties().filter(e=>e.getAlias().length>0);Object.entries(await o.t(this,this.config.env)).forEach(([t,n])=>{let r=this.config.env.prefix.reduce((e,n)=>t.replace(/_$/g,``).startsWith(n)?t.replace(/_$/g,``).slice(n.length):e,t),i=e.find(e=>e?.getAlias().reverse().includes(r));(this.env.types.env?.hasProperty(r)||i)&&this.env.types.env.getProperty(r).setDefaultValue(n)}),this.env.used.env=new n.S.ReflectionClass({kind:n.S.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters used by the ${this.config.name?`${this.config.name} application`:`application`}.`,types:[]},this.env.types.env),await n.l(this,this.env.used.env,`env`),this.env.types.secrets&&(await n.d(this,this.env.types.secrets,`secrets`),this.env.used.secrets=new n.S.ReflectionClass({kind:n.S.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters used by the ${this.config.name?`${this.config.name} application`:`application`}.`,types:[]},this.env.types.secrets),await n.l(this,this.env.used.secrets,`secrets`))}},render(){let e=this;return this.log(f.LogLevelLabel.TRACE,`Preparing the Environment runtime artifacts for the Powerlines project.`),(0,u.createComponent)(i.t,{get defaultConfig(){return e.config.env.defaultConfig}})},async docs(){this.log(f.LogLevelLabel.TRACE,`Writing Environment documentation for the Powerlines project artifacts.`);let e=(0,k.joinPaths)(this.config.projectRoot,`docs`,`generated`);(0,D.existsSync)(e)||await(0,O.createDirectory)(e);let t=await n.o(this,`env`),r=(0,k.joinPaths)(e,`env.md`);this.log(f.LogLevelLabel.TRACE,`Documenting environment variables configuration in "${r}"`),await this.fs.write(r,`<!-- Generated by Powerlines -->
8
3
 
9
4
  # Environment variables configuration
10
5
 
@@ -16,7 +11,7 @@ const F=createPlugin.createAlloyPlugin((g={})=>({name:"env",dependsOn:[A__defaul
16
11
 
17
12
  | Name | Description | Type | Default Value | Required |
18
13
  | ---- | ----------- | ---- | ------------- | :------: |
19
- ${t.getProperties().filter(i=>i.getNameAsString()!=="__STORM_INJECTED__").sort((i,c)=>i.getNameAsString().localeCompare(c.getNameAsString())).map(i=>`| ${i.getNameAsString().trim()} | ${(i.getDescription()?.replaceAll("\r","")?.replaceAll(`
20
- `,"")??"").trim()} | ${type.stringifyType(i.getType()).trim().replaceAll(" | ",", or ")} | ${i.hasDefault()?String(i.getDefaultValue())?.includes('"')?i.getDefaultValue():`\`${i.getDefaultValue()}\``:""} | ${i.isValueRequired()?"":"\u2714"} |`).join(`
14
+ ${t.getProperties().filter(e=>e.getNameAsString()!==`__STORM_INJECTED__`).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString())).map(e=>`| ${e.getNameAsString().trim()} | ${(e.getDescription()?.replaceAll(`\r`,``)?.replaceAll(`
15
+ `,``)??``).trim()} | ${(0,n.S.stringifyType)(e.getType()).trim().replaceAll(` | `,`, or `)} | ${e.hasDefault()?String(e.getDefaultValue())?.includes(`"`)?e.getDefaultValue():`\`${e.getDefaultValue()}\``:``} | ${e.isValueRequired()?``:`✔`} |`).join(`
21
16
  `)}
22
- `);},async buildEnd(){const e=persistence.getEnvReflectionsPath(this,"env");this.log(types$1.LogLevelLabel.TRACE,`Writing env reflection types to ${e}.`),await persistence.writeEnvReflection(this,this.env.used.env,"env");}}));var oe=F;exports.default=oe;exports.plugin=F;Object.keys(babel).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return babel[k]}})});Object.keys(components).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return components[k]}})});Object.keys(helpers).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return helpers[k]}})});Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
17
+ `)},async buildEnd(){let e=n.n(this,`env`);this.log(f.LogLevelLabel.TRACE,`Writing env reflection types to ${e}.`),await n.l(this,this.env.used.env,`env`)}}));var q=K;exports.BaseEnv=n.f,exports.BaseSecrets=n.p,exports.EnvBuiltin=i.t,exports.EnvDocs=c.t,exports.EnvTypeDefinition=i.n,exports.createEnvReflection=n.m,exports.createReflectionResource=s.t,exports.createSecretsReflection=n.h,exports.createTemplateReflection=l.t,exports.default=q,exports.envBabelPlugin=r.t,exports.formatEnvField=a.t,exports.getEnvDefaultTypeDefinition=n.t,exports.getEnvReflectionsPath=n.n,exports.getEnvTypeReflectionsPath=n.r,exports.getSecretsDefaultTypeDefinition=n.i,exports.loadEnv=o.t,exports.loadEnvFromContext=o.n,exports.mergeEnvReflections=n.g,exports.mergeSecretsReflections=n._,exports.plugin=K,exports.readEnvReflection=n.a,exports.readEnvTypeReflection=n.o,exports.readSecretsReflection=n.s,exports.reflectEnv=n.v,exports.reflectSecrets=n.y,exports.removeEnvPrefix=a.n,exports.resolveRuntimeTypeFile=n.c,exports.writeEnvReflection=n.l,exports.writeEnvReflectionSync=n.u,exports.writeEnvTypeReflection=n.d;