@powerlines/plugin-env 0.15.161 → 0.15.162

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 (346) hide show
  1. package/dist/{chunk-CNVrAnJR.cjs → _virtual/rolldown_runtime.cjs} +3 -18
  2. package/dist/{chunk-CsF2CmBJ.mjs → _virtual/rolldown_runtime.mjs} +1 -1
  3. package/dist/babel/index.cjs +2 -5
  4. package/dist/babel/index.d.cts +1 -14
  5. package/dist/babel/index.d.mts +1 -14
  6. package/dist/babel/index.mjs +1 -4
  7. package/dist/babel/plugin.cjs +140 -4
  8. package/dist/babel/plugin.d.cts +9 -15
  9. package/dist/babel/plugin.d.cts.map +1 -0
  10. package/dist/babel/plugin.d.mts +9 -15
  11. package/dist/babel/plugin.d.mts.map +1 -0
  12. package/dist/babel/plugin.mjs +140 -4
  13. package/dist/babel/plugin.mjs.map +1 -0
  14. package/dist/components/docs.cjs +66 -6
  15. package/dist/components/docs.d.cts +25 -2
  16. package/dist/components/docs.d.cts.map +1 -0
  17. package/dist/components/docs.d.mts +25 -2
  18. package/dist/components/docs.d.mts.map +1 -0
  19. package/dist/components/docs.mjs +66 -6
  20. package/dist/components/docs.mjs.map +1 -0
  21. package/dist/components/env.cjs +582 -11
  22. package/dist/components/env.d.cts +23 -2
  23. package/dist/components/env.d.cts.map +1 -0
  24. package/dist/components/env.d.mts +23 -2
  25. package/dist/components/env.d.mts.map +1 -0
  26. package/dist/components/env.mjs +581 -10
  27. package/dist/components/env.mjs.map +1 -0
  28. package/dist/components/index.cjs +5 -15
  29. package/dist/components/index.d.cts +2 -3
  30. package/dist/components/index.d.mts +2 -3
  31. package/dist/components/index.mjs +2 -12
  32. package/dist/helpers/automd-generator.cjs +31 -3
  33. package/dist/helpers/automd-generator.mjs +31 -3
  34. package/dist/helpers/automd-generator.mjs.map +1 -0
  35. package/dist/helpers/create-reflection-resource.cjs +21 -4
  36. package/dist/helpers/create-reflection-resource.d.cts +14 -4
  37. package/dist/helpers/create-reflection-resource.d.cts.map +1 -0
  38. package/dist/helpers/create-reflection-resource.d.mts +14 -4
  39. package/dist/helpers/create-reflection-resource.d.mts.map +1 -0
  40. package/dist/helpers/create-reflection-resource.mjs +22 -4
  41. package/dist/helpers/create-reflection-resource.mjs.map +1 -0
  42. package/dist/helpers/docs-helper.cjs +22 -5
  43. package/dist/helpers/docs-helper.d.cts +1 -2
  44. package/dist/helpers/docs-helper.d.cts.map +1 -1
  45. package/dist/helpers/docs-helper.d.mts +1 -2
  46. package/dist/helpers/docs-helper.d.mts.map +1 -1
  47. package/dist/helpers/docs-helper.mjs +23 -5
  48. package/dist/helpers/docs-helper.mjs.map +1 -0
  49. package/dist/helpers/index.cjs +32 -38
  50. package/dist/helpers/index.d.cts +6 -9
  51. package/dist/helpers/index.d.mts +6 -9
  52. package/dist/helpers/index.mjs +6 -12
  53. package/dist/helpers/load.cjs +133 -10
  54. package/dist/helpers/load.d.cts +36 -4
  55. package/dist/helpers/load.d.cts.map +1 -0
  56. package/dist/helpers/load.d.mts +36 -4
  57. package/dist/helpers/load.d.mts.map +1 -0
  58. package/dist/helpers/load.mjs +132 -9
  59. package/dist/helpers/load.mjs.map +1 -0
  60. package/dist/helpers/persistence.cjs +321 -15
  61. package/dist/helpers/persistence.d.cts +85 -4
  62. package/dist/helpers/persistence.d.cts.map +1 -0
  63. package/dist/helpers/persistence.d.mts +85 -4
  64. package/dist/helpers/persistence.d.mts.map +1 -0
  65. package/dist/helpers/persistence.mjs +310 -5
  66. package/dist/helpers/persistence.mjs.map +1 -0
  67. package/dist/helpers/reflect.cjs +262 -13
  68. package/dist/helpers/reflect.d.cts +47 -4
  69. package/dist/helpers/reflect.d.cts.map +1 -0
  70. package/dist/helpers/reflect.d.mts +47 -4
  71. package/dist/helpers/reflect.d.mts.map +1 -0
  72. package/dist/helpers/reflect.mjs +254 -5
  73. package/dist/helpers/reflect.mjs.map +1 -0
  74. package/dist/helpers/source-file-env.cjs +57 -3
  75. package/dist/helpers/source-file-env.d.cts +9 -2
  76. package/dist/helpers/source-file-env.d.cts.map +1 -0
  77. package/dist/helpers/source-file-env.d.mts +9 -2
  78. package/dist/helpers/source-file-env.d.mts.map +1 -0
  79. package/dist/helpers/source-file-env.mjs +56 -2
  80. package/dist/helpers/source-file-env.mjs.map +1 -0
  81. package/dist/helpers/template-helpers.cjs +69 -6
  82. package/dist/helpers/template-helpers.d.cts +16 -4
  83. package/dist/helpers/template-helpers.d.cts.map +1 -0
  84. package/dist/helpers/template-helpers.d.mts +16 -4
  85. package/dist/helpers/template-helpers.d.mts.map +1 -0
  86. package/dist/helpers/template-helpers.mjs +69 -6
  87. package/dist/helpers/template-helpers.mjs.map +1 -0
  88. package/dist/index.cjs +98 -258
  89. package/dist/index.d.cts +25 -15
  90. package/dist/index.d.cts.map +1 -0
  91. package/dist/index.d.mts +25 -15
  92. package/dist/index.d.mts.map +1 -0
  93. package/dist/index.mjs +22 -182
  94. package/dist/index.mjs.map +1 -1
  95. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.cjs +37 -0
  96. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs +38 -0
  97. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs.map +1 -0
  98. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.cjs +15 -0
  99. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs +15 -0
  100. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs.map +1 -0
  101. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +15 -0
  102. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +15 -0
  103. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs.map +1 -0
  104. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
  105. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
  106. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
  107. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +7 -0
  108. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs.map +1 -0
  109. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
  110. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
  111. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +19 -0
  112. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +20 -0
  113. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs.map +1 -0
  114. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +63 -0
  115. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +64 -0
  116. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs.map +1 -0
  117. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
  118. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +12 -0
  119. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs.map +1 -0
  120. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +15 -0
  121. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +17 -0
  122. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs.map +1 -0
  123. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.cjs +32 -0
  124. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.mjs +33 -0
  125. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.mjs.map +1 -0
  126. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.cjs +28 -0
  127. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs +29 -0
  128. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs.map +1 -0
  129. package/dist/{join-paths-B0RBTuuw.cjs → node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.cjs} +13 -65
  130. package/dist/{join-paths-Dd9KxuyL.mjs → node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs} +5 -45
  131. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs.map +1 -0
  132. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.cjs +12 -0
  133. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.mjs +9 -0
  134. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.mjs.map +1 -0
  135. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.cjs +15 -0
  136. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.mjs +15 -0
  137. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.mjs.map +1 -0
  138. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +346 -0
  139. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +347 -0
  140. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs.map +1 -0
  141. package/dist/{json5-DEV_07Nb.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs} +1 -1
  142. package/dist/{json5-jq90mF9X.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs} +2 -2
  143. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs.map +1 -0
  144. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +3 -0
  145. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +3 -0
  146. package/dist/{confbox.DA7CpUDY-DShUZ_rW.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs} +2 -2
  147. package/dist/{confbox.DA7CpUDY-r6FXRsI6.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs} +2 -7
  148. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs.map +1 -0
  149. package/dist/{confbox.DnMsyigM-C13n3X-S.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs} +3 -13
  150. package/dist/{confbox.DnMsyigM-V6Wj0LPC.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs} +3 -3
  151. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs.map +1 -0
  152. package/dist/{toml-DvrxV201.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs} +1 -1
  153. package/dist/{toml-uuOYvEAO.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs} +2 -2
  154. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs.map +1 -0
  155. package/dist/{yaml-CQSFMRMS.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs} +1 -1
  156. package/dist/{yaml-CIn2Gddw.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs} +2 -2
  157. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs.map +1 -0
  158. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +43 -0
  159. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +43 -0
  160. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs.map +1 -0
  161. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
  162. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +46 -0
  163. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +1 -0
  164. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +288 -0
  165. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +286 -0
  166. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs.map +1 -0
  167. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +71 -0
  168. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +69 -0
  169. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs.map +1 -0
  170. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
  171. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1008 -0
  172. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +1 -0
  173. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +23 -0
  174. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +14 -0
  175. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +1 -0
  176. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +2698 -0
  177. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2686 -0
  178. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +1 -0
  179. package/dist/{load-CC_Pu2Om.cjs → node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs} +195 -2332
  180. package/dist/{load-EM4edkA2.mjs → node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs} +195 -2319
  181. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +1 -0
  182. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +29 -0
  183. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +30 -0
  184. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +1 -0
  185. package/dist/{multipart-parser-aEF5a4Xf.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs} +8 -5
  186. package/dist/{multipart-parser-D65rtMfY.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs} +4 -3
  187. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +1 -0
  188. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +22 -0
  189. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +18 -0
  190. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +1 -0
  191. package/dist/{node-Co8KdzkZ.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs} +796 -814
  192. package/dist/{node-D9MigVDD.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs} +795 -807
  193. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +1 -0
  194. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +11768 -0
  195. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +11764 -0
  196. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +1 -0
  197. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +25 -0
  198. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +21 -0
  199. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs.map +1 -0
  200. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +20 -0
  201. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +18 -0
  202. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +1 -0
  203. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.cjs +194 -0
  204. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs +192 -0
  205. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs.map +1 -0
  206. package/dist/{dist-BQc8ZRwl.cjs → node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs} +1 -1
  207. package/dist/{dist-mV5Swt78.mjs → node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs} +1 -1
  208. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +1 -0
  209. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +3 -0
  210. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +3 -0
  211. package/dist/{defu-DV5Grr85.mjs → node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs} +8 -43
  212. package/dist/{defu-CrqNIh1A.cjs → node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs} +2 -90
  213. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +1 -0
  214. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +127 -0
  215. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +126 -0
  216. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +1 -0
  217. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +138 -0
  218. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +137 -0
  219. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +1 -0
  220. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +629 -0
  221. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +628 -0
  222. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +1 -0
  223. package/dist/types/index.cjs +9 -10
  224. package/dist/types/index.d.cts +2 -3
  225. package/dist/types/index.d.mts +2 -3
  226. package/dist/types/index.mjs +2 -3
  227. package/dist/types/plugin.cjs +133 -7
  228. package/dist/types/plugin.d.cts +155 -3
  229. package/dist/types/plugin.d.cts.map +1 -0
  230. package/dist/types/plugin.d.mts +155 -3
  231. package/dist/types/plugin.d.mts.map +1 -0
  232. package/dist/types/plugin.mjs +129 -3
  233. package/dist/types/plugin.mjs.map +1 -0
  234. package/dist/types/runtime.cjs +242 -3
  235. package/dist/types/runtime.d.cts +792 -2
  236. package/dist/{runtime-BDzzR4wH.d.cts.map → types/runtime.d.cts.map} +1 -1
  237. package/dist/types/runtime.d.mts +792 -2
  238. package/dist/{runtime-lYSIZdMn.d.mts.map → types/runtime.d.mts.map} +1 -1
  239. package/dist/types/runtime.mjs +241 -2
  240. package/dist/types/runtime.mjs.map +1 -0
  241. package/package.json +9 -9
  242. package/dist/automd-generator-BpvZRK0k.mjs +0 -32
  243. package/dist/automd-generator-BpvZRK0k.mjs.map +0 -1
  244. package/dist/automd-generator-CxG1owAE.cjs +0 -37
  245. package/dist/babel-BZqmdVF4.cjs +0 -0
  246. package/dist/babel-DgietUY3.mjs +0 -1
  247. package/dist/components-BUo6Koax.cjs +0 -0
  248. package/dist/components-DDFmImcI.mjs +0 -1
  249. package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs.map +0 -1
  250. package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs.map +0 -1
  251. package/dist/create-reflection-resource-3svZm2rY.d.cts +0 -14
  252. package/dist/create-reflection-resource-3svZm2rY.d.cts.map +0 -1
  253. package/dist/create-reflection-resource-CCpA76Yq.d.mts +0 -14
  254. package/dist/create-reflection-resource-CCpA76Yq.d.mts.map +0 -1
  255. package/dist/create-reflection-resource-D0QrD1Td.mjs +0 -23
  256. package/dist/create-reflection-resource-D0QrD1Td.mjs.map +0 -1
  257. package/dist/create-reflection-resource-d2zdTyOE.cjs +0 -27
  258. package/dist/defu-DV5Grr85.mjs.map +0 -1
  259. package/dist/dist-C_a6goTt.cjs +0 -15282
  260. package/dist/dist-CjWvISyq.mjs +0 -15271
  261. package/dist/dist-CjWvISyq.mjs.map +0 -1
  262. package/dist/dist-mV5Swt78.mjs.map +0 -1
  263. package/dist/docs-BAKwE4PJ.d.cts +0 -25
  264. package/dist/docs-BAKwE4PJ.d.cts.map +0 -1
  265. package/dist/docs-CVf-w8oz.d.mts +0 -25
  266. package/dist/docs-CVf-w8oz.d.mts.map +0 -1
  267. package/dist/docs-E0aCTO7H.cjs +0 -72
  268. package/dist/docs-WdCIcQmw.mjs +0 -67
  269. package/dist/docs-WdCIcQmw.mjs.map +0 -1
  270. package/dist/docs-helper-BSYSI2cH.mjs +0 -24
  271. package/dist/docs-helper-BSYSI2cH.mjs.map +0 -1
  272. package/dist/docs-helper-BWe1dt1m.cjs +0 -28
  273. package/dist/env-BSCEigpj.cjs +0 -593
  274. package/dist/env-D0KBPuAd.d.mts +0 -23
  275. package/dist/env-D0KBPuAd.d.mts.map +0 -1
  276. package/dist/env-DqI7dwC-.mjs +0 -582
  277. package/dist/env-DqI7dwC-.mjs.map +0 -1
  278. package/dist/env-DwM7pJm7.d.cts +0 -23
  279. package/dist/env-DwM7pJm7.d.cts.map +0 -1
  280. package/dist/helpers-45e1bvAO.mjs +0 -1
  281. package/dist/helpers-DgYP3uej.cjs +0 -0
  282. package/dist/index-BNRXMhlr.d.mts +0 -1
  283. package/dist/index-Bdi8CvaN.d.cts +0 -16
  284. package/dist/index-Bdi8CvaN.d.cts.map +0 -1
  285. package/dist/index-CEDY7cmG.d.cts +0 -1
  286. package/dist/index-CREkvfw9.d.mts +0 -1
  287. package/dist/index-DSiHnMH2.d.cts +0 -1
  288. package/dist/index-Drhzdkqe.d.mts +0 -16
  289. package/dist/index-Drhzdkqe.d.mts.map +0 -1
  290. package/dist/index-dhjtMp5F.d.mts +0 -1
  291. package/dist/index-uTS5iDq_.d.cts +0 -1
  292. package/dist/join-paths-Dd9KxuyL.mjs.map +0 -1
  293. package/dist/json5-jq90mF9X.mjs.map +0 -1
  294. package/dist/jsonc-CBh70baJ.cjs +0 -4
  295. package/dist/jsonc-CDLU6bgi.mjs +0 -4
  296. package/dist/load-EM4edkA2.mjs.map +0 -1
  297. package/dist/load-GpP6cojj.d.mts +0 -36
  298. package/dist/load-GpP6cojj.d.mts.map +0 -1
  299. package/dist/load-PHGmxX_X.d.cts +0 -36
  300. package/dist/load-PHGmxX_X.d.cts.map +0 -1
  301. package/dist/multipart-parser-D65rtMfY.mjs.map +0 -1
  302. package/dist/node-D9MigVDD.mjs.map +0 -1
  303. package/dist/persistence-5S3EirDm.mjs +0 -586
  304. package/dist/persistence-5S3EirDm.mjs.map +0 -1
  305. package/dist/persistence-BR4cUaN6.d.cts +0 -85
  306. package/dist/persistence-BR4cUaN6.d.cts.map +0 -1
  307. package/dist/persistence-DrKQZNCv.d.mts +0 -85
  308. package/dist/persistence-DrKQZNCv.d.mts.map +0 -1
  309. package/dist/persistence-DzS7SzMj.cjs +0 -712
  310. package/dist/plugin-CM1TSv1B.cjs +0 -159
  311. package/dist/plugin-CSVnrdpE.cjs +0 -146
  312. package/dist/plugin-CSe5f2cD.d.cts +0 -155
  313. package/dist/plugin-CSe5f2cD.d.cts.map +0 -1
  314. package/dist/plugin-DMbVjdcQ.d.mts +0 -155
  315. package/dist/plugin-DMbVjdcQ.d.mts.map +0 -1
  316. package/dist/plugin-Vyvy9w9Z.mjs +0 -141
  317. package/dist/plugin-Vyvy9w9Z.mjs.map +0 -1
  318. package/dist/plugin-eBjQJP6x.mjs +0 -130
  319. package/dist/plugin-eBjQJP6x.mjs.map +0 -1
  320. package/dist/reflect-Dm8a3c29.d.cts +0 -47
  321. package/dist/reflect-Dm8a3c29.d.cts.map +0 -1
  322. package/dist/reflect-Dpz8ifa0.d.mts +0 -47
  323. package/dist/reflect-Dpz8ifa0.d.mts.map +0 -1
  324. package/dist/runtime-BDzzR4wH.d.cts +0 -792
  325. package/dist/runtime-C5ukCv3P.mjs +0 -242
  326. package/dist/runtime-C5ukCv3P.mjs.map +0 -1
  327. package/dist/runtime-g0TEIoZK.cjs +0 -253
  328. package/dist/runtime-lYSIZdMn.d.mts +0 -792
  329. package/dist/source-file-env-4Vdtzc5-.cjs +0 -68
  330. package/dist/source-file-env-Brfopjyr.d.cts +0 -9
  331. package/dist/source-file-env-Brfopjyr.d.cts.map +0 -1
  332. package/dist/source-file-env-DWejSP2U.d.mts +0 -9
  333. package/dist/source-file-env-DWejSP2U.d.mts.map +0 -1
  334. package/dist/source-file-env-Tj-6qobx.mjs +0 -57
  335. package/dist/source-file-env-Tj-6qobx.mjs.map +0 -1
  336. package/dist/template-helpers-1SKodHKt.d.mts +0 -16
  337. package/dist/template-helpers-1SKodHKt.d.mts.map +0 -1
  338. package/dist/template-helpers-Cw8aba1r.mjs +0 -70
  339. package/dist/template-helpers-Cw8aba1r.mjs.map +0 -1
  340. package/dist/template-helpers-DoFoTIAC.cjs +0 -75
  341. package/dist/template-helpers-zyitPfMz.d.cts +0 -16
  342. package/dist/template-helpers-zyitPfMz.d.cts.map +0 -1
  343. package/dist/toml-uuOYvEAO.mjs.map +0 -1
  344. package/dist/types-DyPQho_C.mjs +0 -1
  345. package/dist/types-o3zWarRp.cjs +0 -0
  346. package/dist/yaml-CIn2Gddw.mjs.map +0 -1
@@ -1,7 +1,70 @@
1
- import "../runtime-C5ukCv3P.mjs";
2
- import "../plugin-eBjQJP6x.mjs";
3
- import "../join-paths-Dd9KxuyL.mjs";
4
- import "../persistence-5S3EirDm.mjs";
5
- import { t as createTemplateReflection } from "../template-helpers-Cw8aba1r.mjs";
1
+ import { __ΩEnvPluginContext, __ΩEnvType } from "../types/plugin.mjs";
2
+ import { readEnvTypeReflection } from "./persistence.mjs";
3
+ import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
4
+ import { titleCase } from "@stryke/string-format/title-case";
6
5
 
7
- export { createTemplateReflection };
6
+ //#region src/helpers/template-helpers.ts
7
+ function __assignType(fn, args) {
8
+ fn.__type = args;
9
+ return fn;
10
+ }
11
+ /**
12
+ * Creates the reflection data used when generating runtime template files.
13
+ *
14
+ * @param context - The context for the configuration plugin.
15
+ * @param name - The name of the configuration template.
16
+ * @returns The reflection for the specified configuration template.
17
+ */
18
+ async function createTemplateReflection(context, name) {
19
+ const reflection = await readEnvTypeReflection(context, name);
20
+ reflection.getProperties().forEach(__assignType((prop) => {
21
+ prop.getAlias().filter(Boolean).forEach(__assignType((alias) => {
22
+ reflection.addProperty({
23
+ name: alias,
24
+ optional: prop.isOptional() ? true : void 0,
25
+ readonly: prop.isReadonly() ? true : void 0,
26
+ description: prop.getDescription(),
27
+ visibility: prop.getVisibility(),
28
+ type: prop.getType(),
29
+ default: prop.getDefaultValue(),
30
+ tags: {
31
+ hidden: prop.isHidden(),
32
+ ignore: prop.isIgnored(),
33
+ internal: prop.isInternal(),
34
+ alias: prop.getAlias().filter(__assignType((a) => a !== alias, [
35
+ "a",
36
+ "",
37
+ "P\"2!\"/\""
38
+ ])).concat(prop.name),
39
+ title: prop.getTitle() || titleCase(prop.name),
40
+ readonly: prop.isReadonly(),
41
+ permission: prop.getPermission(),
42
+ domain: prop.getDomain()
43
+ }
44
+ });
45
+ }, [
46
+ "alias",
47
+ "",
48
+ "P\"2!\"/\""
49
+ ]));
50
+ }, [
51
+ "prop",
52
+ "",
53
+ "P\"2!\"/\""
54
+ ]));
55
+ return reflection;
56
+ }
57
+ createTemplateReflection.__type = [
58
+ () => __ΩEnvPluginContext,
59
+ "context",
60
+ () => __ΩEnvType,
61
+ "name",
62
+ () => ReflectionClass,
63
+ "createTemplateReflection",
64
+ "Creates the reflection data used when generating runtime template files.",
65
+ "Pn!2\"n#2$8P\"7%`/&?'"
66
+ ];
67
+
68
+ //#endregion
69
+ export { createTemplateReflection };
70
+ //# sourceMappingURL=template-helpers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-helpers.mjs","names":[],"sources":["../../src/helpers/template-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { ReflectionClass } from \"@powerlines/deepkit/vendor/type\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { EnvPluginContext, EnvType } from \"../types/plugin\";\nimport { readEnvTypeReflection } from \"./persistence\";\n\n/**\n * Creates the reflection data used when generating runtime template files.\n *\n * @param context - The context for the configuration plugin.\n * @param name - The name of the configuration template.\n * @returns The reflection for the specified configuration template.\n */\nexport async function createTemplateReflection(\n context: EnvPluginContext,\n name?: EnvType\n): Promise<ReflectionClass<any>> {\n const reflection = await readEnvTypeReflection(context, name);\n\n reflection.getProperties().forEach(prop => {\n const aliases = prop.getAlias();\n aliases.filter(Boolean).forEach(alias => {\n reflection.addProperty({\n name: alias,\n optional: prop.isOptional() ? true : undefined,\n readonly: prop.isReadonly() ? true : undefined,\n description: prop.getDescription(),\n visibility: prop.getVisibility(),\n type: prop.getType(),\n default: prop.getDefaultValue(),\n tags: {\n hidden: prop.isHidden(),\n ignore: prop.isIgnored(),\n internal: prop.isInternal(),\n alias: prop\n .getAlias()\n .filter(a => a !== alias)\n .concat(prop.name),\n title: prop.getTitle() || titleCase(prop.name),\n readonly: prop.isReadonly(),\n permission: prop.getPermission(),\n domain: prop.getDomain()\n }\n });\n });\n });\n\n return reflection;\n}\n"],"mappings":";;;;;;AAIA,SAAS,aAAa,IAAI,MAAM;AAC5B,IAAG,SAAS;AACZ,QAAO;;;;;;;;;;CA8BP,MAAM,aAAa,MAAM,sBAAgB,SAAA,KAAA;AACzC,YAAW,eAAe,CAAC,QAAI,cAAA,SAAA;AAE3B,EADgB,KAAK,UAAU,CACvB,OAAO,QAAM,CAAA,QAAA,cAAA,UAAA;AACjB,cAAO,YAAA;IACH,MAAM;IACN,UAAU,KAAK,YAAY,GAAG,OAAO;IACrC,UAAU,KAAK,YAAW,GAAA,OAAA;IAC1B,aAAa,KAAK,gBAAM;IACxB,YAAY,KAAA,eAAA;IACZ,MAAM,KAAK,SAAS;IACtB,SAAA,KAAA,iBAAA;IACE,MAAM;KACF,QAAQ,KAAK,UAAC;KACd,QAAQ,KAAK,WAAI;KACjB,UAAA,KAAA,YAAA;KACA,OAAE,KACG,UAAU,CACV,OAAK,cAAA,MAAA,MAAA,OAAA;MAAA;MAAA;MAAA;MAAA,CAAA,CAAA,CACL,OAAO,KAAK,KAAK;KACtB,OAAO,KAAK,UAAK,IAAA,UAAA,KAAA,KAAA;KACjB,UAAU,KAAK,YAAO;KACtB,YAAY,KAAC,eAAA;KACzB,QAAA,KAAA,WAAA;KACA;IACF,CAAA;KACF;GAAA;GAAA;GAAA;GAAA,CAAA,CAAA;;;;;;AAEA,QAAO"}
package/dist/index.cjs CHANGED
@@ -1,200 +1,40 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_chunk = require('./chunk-CNVrAnJR.cjs');
3
- const require_runtime = require('./runtime-g0TEIoZK.cjs');
4
- const require_plugin = require('./plugin-CM1TSv1B.cjs');
5
- require('./types-o3zWarRp.cjs');
6
- const require_join_paths = require('./join-paths-B0RBTuuw.cjs');
7
- const require_persistence = require('./persistence-DzS7SzMj.cjs');
8
- const require_template_helpers = require('./template-helpers-DoFoTIAC.cjs');
9
- const require_source_file_env = require('./source-file-env-4Vdtzc5-.cjs');
10
- const require_defu = require('./defu-CrqNIh1A.cjs');
11
- const require_load = require('./load-CC_Pu2Om.cjs');
12
- require('./confbox.DA7CpUDY-r6FXRsI6.cjs');
13
- require('./confbox.DnMsyigM-C13n3X-S.cjs');
14
- const require_create_reflection_resource = require('./create-reflection-resource-d2zdTyOE.cjs');
15
- require('./helpers-DgYP3uej.cjs');
16
- const require_docs_helper = require('./docs-helper-BWe1dt1m.cjs');
17
- const require_automd_generator = require('./automd-generator-CxG1owAE.cjs');
18
- const require_docs = require('./docs-E0aCTO7H.cjs');
19
- const require_env = require('./env-BSCEigpj.cjs');
20
- require('./components-BUo6Koax.cjs');
21
- const require_plugin$1 = require('./plugin-CSVnrdpE.cjs');
22
- require('./babel-BZqmdVF4.cjs');
2
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
+ const require_types_runtime = require('./types/runtime.cjs');
4
+ const require_types_plugin = require('./types/plugin.cjs');
5
+ require('./types/index.cjs');
6
+ const require_join_paths = require('./node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.cjs');
7
+ const require_is_parent_path = require('./node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.cjs');
8
+ const require_helpers_reflect = require('./helpers/reflect.cjs');
9
+ const require_helpers_persistence = require('./helpers/persistence.cjs');
10
+ const require_helpers_template_helpers = require('./helpers/template-helpers.cjs');
11
+ const require_helpers_source_file_env = require('./helpers/source-file-env.cjs');
12
+ const require_defu = require('./node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs');
13
+ const require_helpers_load = require('./helpers/load.cjs');
14
+ const require_helpers_create_reflection_resource = require('./helpers/create-reflection-resource.cjs');
15
+ require('./helpers/index.cjs');
16
+ const require_helpers_docs_helper = require('./helpers/docs-helper.cjs');
17
+ const require_helpers_automd_generator = require('./helpers/automd-generator.cjs');
18
+ const require_components_docs = require('./components/docs.cjs');
19
+ const require_components_env = require('./components/env.cjs');
20
+ require('./components/index.cjs');
21
+ const require_babel_plugin = require('./babel/plugin.cjs');
22
+ require('./babel/index.cjs');
23
+ const require_parse_type_definition = require('./node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.cjs');
24
+ const require_to_array = require('./node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.cjs');
23
25
  let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
24
26
  let __stryke_env_types = require("@stryke/env/types");
25
27
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
26
28
  let __powerlines_plugin_alloy = require("@powerlines/plugin-alloy");
27
- __powerlines_plugin_alloy = require_chunk.__toESM(__powerlines_plugin_alloy);
29
+ __powerlines_plugin_alloy = require_rolldown_runtime.__toESM(__powerlines_plugin_alloy);
28
30
  let __powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
29
31
  let __powerlines_plugin_automd = require("@powerlines/plugin-automd");
30
- __powerlines_plugin_automd = require_chunk.__toESM(__powerlines_plugin_automd);
32
+ __powerlines_plugin_automd = require_rolldown_runtime.__toESM(__powerlines_plugin_automd);
31
33
  let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
32
- __powerlines_plugin_babel = require_chunk.__toESM(__powerlines_plugin_babel);
34
+ __powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
33
35
  let __stryke_fs_exists = require("@stryke/fs/exists");
34
36
  let __stryke_string_format_constant_case = require("@stryke/string-format/constant-case");
35
37
 
36
- //#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs
37
- /**
38
- * Gets the `toStringTag` of `obj`.
39
- *
40
- * @param value - The obj to query.
41
- * @returns Returns the `toStringTag`.
42
- */
43
- const getObjectTag = (value) => {
44
- if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
45
- return Object.prototype.toString.call(value);
46
- };
47
-
48
- //#endregion
49
- //#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs
50
- /**
51
- * Checks if `value` is object-like. A value is object-like if it's not `null`
52
- * and has a `typeof` result of "object".
53
- *
54
- * @example
55
- * ```typescript
56
- * isObjectLike({})
57
- * // => true
58
- *
59
- * isObjectLike([1, 2, 3])
60
- * // => true
61
- *
62
- * isObjectLike(Function)
63
- * // => false
64
- *
65
- * isObjectLike(null)
66
- * // => false
67
- * ```
68
- *
69
- * @param value - The value to check.
70
- * @returns Returns `true` if `value` is object-like, else `false`.
71
- */
72
- const isObjectLike = (obj) => {
73
- return typeof obj === "object" && obj !== null;
74
- };
75
- /**
76
- * Checks if `obj` is a plain object, that is, an object created by the `Object` constructor or one with a `[[Prototype]]` of `null`.
77
- *
78
- * @example
79
- * ```typescript
80
- * function Foo() {
81
- * this.a = 1
82
- * }
83
- *
84
- * isPlainObject(new Foo)
85
- * // => false
86
- *
87
- * isPlainObject([1, 2, 3])
88
- * // => false
89
- *
90
- * isPlainObject({ 'x': 0, 'y': 0 })
91
- * // => true
92
- *
93
- * isPlainObject(Object.create(null))
94
- * // => true
95
- * ```
96
- *
97
- * @param obj - The value to check.
98
- * @returns Returns `true` if `obj` is a plain object, else `false`.
99
- */
100
- const isPlainObject = (obj) => {
101
- if (!isObjectLike(obj) || getObjectTag(obj) !== "[object Object]") return false;
102
- if (Object.getPrototypeOf(obj) === null) return true;
103
- let proto = obj;
104
- while (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto);
105
- return Object.getPrototypeOf(obj) === proto;
106
- };
107
-
108
- //#endregion
109
- //#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs
110
- /**
111
- * Check if the provided value's type is `Object`
112
- *
113
- * @param value - The value to type check
114
- * @returns An indicator specifying if the value provided is of type `Object`
115
- */
116
- const isObject = (value) => {
117
- try {
118
- return typeof value === "object" || Boolean(value) && value?.constructor === Object || isPlainObject(value);
119
- } catch {
120
- return false;
121
- }
122
- };
123
-
124
- //#endregion
125
- //#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs
126
- const isString = (value) => {
127
- try {
128
- return typeof value === "string";
129
- } catch {
130
- return false;
131
- }
132
- };
133
-
134
- //#endregion
135
- //#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs
136
- const isBufferExists = typeof Buffer !== "undefined";
137
- isBufferExists && Buffer.isBuffer.bind(Buffer);
138
-
139
- //#endregion
140
- //#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs
141
- ((Obj) => {
142
- if (typeof globalThis === "object") return globalThis;
143
- Object.defineProperty(Obj, "typeDetectGlobalObject", {
144
- get() {
145
- return this;
146
- },
147
- configurable: true
148
- });
149
- return globalThis;
150
- })(Object.prototype);
151
-
152
- //#endregion
153
- //#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs
154
- /**
155
- * Parse a type definition parameter into a {@link TypeDefinition} object
156
- *
157
- * @param param - The parameter to parse
158
- * @returns The parsed type definition
159
- */
160
- const parseTypeDefinition = (param) => {
161
- if (isString(param)) {
162
- if (param.includes(":")) {
163
- const params = param.split(":");
164
- if (params.length > 1 && params[0]) return {
165
- file: params[0],
166
- name: params[1]
167
- };
168
- }
169
- if (param.includes("#")) {
170
- const params = param.split("#");
171
- if (params.length > 1 && params[0]) return {
172
- file: params[0],
173
- name: params[1]
174
- };
175
- }
176
- return { file: param };
177
- }
178
- if (isObject(param)) return {
179
- file: param.file,
180
- name: param.name
181
- };
182
- };
183
-
184
- //#endregion
185
- //#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs
186
- /**
187
- * Convert `Arrayable<T>` to `Array<T>`
188
- *
189
- * @param array - The `Arrayable<T>` to convert
190
- * @returns An `Array<T>` containing the elements of the input
191
- */
192
- function toArray(array) {
193
- array = array ?? [];
194
- return Array.isArray(array) ? array : [array];
195
- }
196
-
197
- //#endregion
198
38
  //#region src/index.tsx
199
39
  /**
200
40
  * A Powerlines plugin to inject environment variables into the source code.
@@ -212,20 +52,20 @@ const plugin = (options = {}) => {
212
52
  types: {},
213
53
  prefix: []
214
54
  }),
215
- transform: { babel: { plugins: [require_plugin$1.envBabelPlugin] } }
55
+ transform: { babel: { plugins: [require_babel_plugin.envBabelPlugin] } }
216
56
  };
217
- if (config.env.types) config.env.types = parseTypeDefinition(config.env.types);
57
+ if (config.env.types) config.env.types = require_parse_type_definition.parseTypeDefinition(config.env.types);
218
58
  else {
219
59
  this.warn("The `env.types` configuration parameter was not provided. Please ensure this is expected.");
220
- const envDefaultTypeDefinition = await require_persistence.getEnvDefaultTypeDefinition(this);
221
- config.env.types = parseTypeDefinition(`${envDefaultTypeDefinition.file}#${envDefaultTypeDefinition.name}`);
60
+ const envDefaultTypeDefinition = await require_helpers_persistence.getEnvDefaultTypeDefinition(this);
61
+ config.env.types = require_parse_type_definition.parseTypeDefinition(`${envDefaultTypeDefinition.file}#${envDefaultTypeDefinition.name}`);
222
62
  }
223
- if (config.env.secrets) config.env.secrets = parseTypeDefinition(config.env.secrets);
63
+ if (config.env.secrets) config.env.secrets = require_parse_type_definition.parseTypeDefinition(config.env.secrets);
224
64
  else {
225
- const secretsDefaultTypeDefinition = await require_persistence.getSecretsDefaultTypeDefinition(this);
226
- config.env.secrets = parseTypeDefinition(`${secretsDefaultTypeDefinition.file}#${secretsDefaultTypeDefinition.name}`);
65
+ const secretsDefaultTypeDefinition = await require_helpers_persistence.getSecretsDefaultTypeDefinition(this);
66
+ config.env.secrets = require_parse_type_definition.parseTypeDefinition(`${secretsDefaultTypeDefinition.file}#${secretsDefaultTypeDefinition.name}`);
227
67
  }
228
- config.env.prefix = toArray(config.env.prefix ?? []).reduce((ret, prefix) => {
68
+ config.env.prefix = require_to_array.toArray(config.env.prefix ?? []).reduce((ret, prefix) => {
229
69
  const formattedPrefix = (0, __stryke_string_format_constant_case.constantCase)(prefix);
230
70
  if (!ret.includes(formattedPrefix)) ret.push(formattedPrefix);
231
71
  return ret;
@@ -234,7 +74,7 @@ const plugin = (options = {}) => {
234
74
  "POWERLINES_",
235
75
  this.config.framework && this.config.framework !== "powerlines" && `${(0, __stryke_string_format_constant_case.constantCase)(this.config.framework)}_`
236
76
  ].filter(Boolean));
237
- config.env.prefix = toArray(config.env.prefix).reduce((ret, prefix) => {
77
+ config.env.prefix = require_to_array.toArray(config.env.prefix).reduce((ret, prefix) => {
238
78
  if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
239
79
  return ret;
240
80
  }, []);
@@ -242,7 +82,7 @@ const plugin = (options = {}) => {
242
82
  },
243
83
  async configResolved() {
244
84
  this.debug(`Environment plugin configuration has been resolved for the Powerlines project.`);
245
- this.env = require_defu.defu({ parsed: await require_load.loadEnv(this, this.config.env) }, this.env ?? {}, {
85
+ this.env = require_defu.defu({ parsed: await require_helpers_load.loadEnv(this, this.config.env) }, this.env ?? {}, {
246
86
  types: { env: {} },
247
87
  used: {
248
88
  env: {},
@@ -251,23 +91,23 @@ const plugin = (options = {}) => {
251
91
  parsed: {},
252
92
  injected: {}
253
93
  });
254
- if (this.config.command !== "prepare" && !this.config.skipCache && this.persistedMeta?.checksum === this.meta.checksum && (0, __stryke_fs_exists.existsSync)(require_persistence.getEnvTypeReflectionsPath(this, "env"))) {
94
+ if (this.config.command !== "prepare" && !this.config.skipCache && this.persistedMeta?.checksum === this.meta.checksum && (0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvTypeReflectionsPath(this, "env"))) {
255
95
  this.debug(`Skipping reflection initialization as the meta checksum has not changed.`);
256
- this.env.types.env = await require_persistence.readEnvTypeReflection(this, "env");
257
- if ((0, __stryke_fs_exists.existsSync)(require_persistence.getEnvReflectionsPath(this, "env"))) this.env.used.env = await require_persistence.readEnvReflection(this);
258
- if ((0, __stryke_fs_exists.existsSync)(require_persistence.getEnvTypeReflectionsPath(this, "secrets"))) this.env.types.secrets = await require_persistence.readEnvTypeReflection(this, "secrets");
259
- if ((0, __stryke_fs_exists.existsSync)(require_persistence.getEnvReflectionsPath(this, "secrets"))) this.env.used.secrets = await require_persistence.readSecretsReflection(this);
96
+ this.env.types.env = await require_helpers_persistence.readEnvTypeReflection(this, "env");
97
+ if ((0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvReflectionsPath(this, "env"))) this.env.used.env = await require_helpers_persistence.readEnvReflection(this);
98
+ if ((0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvTypeReflectionsPath(this, "secrets"))) this.env.types.secrets = await require_helpers_persistence.readEnvTypeReflection(this, "secrets");
99
+ if ((0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvReflectionsPath(this, "secrets"))) this.env.used.secrets = await require_helpers_persistence.readSecretsReflection(this);
260
100
  } else {
261
101
  this.debug(`Starting environment configuration reflection initialization.`);
262
- this.env.types.env = await require_persistence.reflectEnv(this, this.config.env.types?.file ? require_persistence.isParentPath(this.config.env.types?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.types?.file : require_join_paths.joinPaths(this.config.projectRoot, this.config.env.types?.file) : void 0, this.config.env.types?.name);
102
+ this.env.types.env = await require_helpers_reflect.reflectEnv(this, this.config.env.types?.file ? require_is_parent_path.isParentPath(this.config.env.types?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.types?.file : require_join_paths.joinPaths(this.config.projectRoot, this.config.env.types?.file) : void 0, this.config.env.types?.name);
263
103
  if (!this.env.types.env) throw new Error("Failed to find the environment configuration type reflection in the context.");
264
- await require_persistence.writeEnvTypeReflection(this, this.env.types.env, "env");
265
- this.env.types.secrets = await require_persistence.reflectSecrets(this, this.config.env.secrets?.file ? require_persistence.isParentPath(this.config.env.secrets?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.secrets?.file : require_join_paths.joinPaths(this.config.projectRoot, this.config.env.secrets?.file) : void 0, this.config.env.secrets?.name);
104
+ await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.env, "env");
105
+ this.env.types.secrets = await require_helpers_reflect.reflectSecrets(this, this.config.env.secrets?.file ? require_is_parent_path.isParentPath(this.config.env.secrets?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.secrets?.file : require_join_paths.joinPaths(this.config.projectRoot, this.config.env.secrets?.file) : void 0, this.config.env.secrets?.name);
266
106
  if (!this.env.types.secrets) throw new Error("Failed to find the secrets configuration type reflection in the context.");
267
- await require_persistence.writeEnvTypeReflection(this, this.env.types.secrets, "secrets");
107
+ await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.secrets, "secrets");
268
108
  this.debug(`Resolved ${this.env.types.env.getProperties().length ?? 0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length ?? 0} secret configuration parameters`);
269
109
  const envWithAlias = this.env.types.env.getProperties().filter((prop) => prop.getAlias().length > 0);
270
- Object.entries(await require_load.loadEnv(this, this.config.env)).forEach(([key, value]) => {
110
+ Object.entries(await require_helpers_load.loadEnv(this, this.config.env)).forEach(([key, value]) => {
271
111
  const unprefixedKey = this.config.env.prefix.reduce((ret, prefix) => {
272
112
  if (key.replace(/_$/g, "").startsWith(prefix)) return key.replace(/_$/g, "").slice(prefix.length);
273
113
  return ret;
@@ -281,24 +121,24 @@ const plugin = (options = {}) => {
281
121
  description: `An object containing the environment configuration parameters used by the ${this.config.name ? `${this.config.name} application` : "application"}.`,
282
122
  types: []
283
123
  }, this.env.types.env);
284
- await require_persistence.writeEnvReflection(this, this.env.used.env, "env");
124
+ await require_helpers_persistence.writeEnvReflection(this, this.env.used.env, "env");
285
125
  if (this.env.types.secrets) {
286
- await require_persistence.writeEnvTypeReflection(this, this.env.types.secrets, "secrets");
126
+ await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.secrets, "secrets");
287
127
  this.env.used.secrets = new __powerlines_deepkit_vendor_type.ReflectionClass({
288
128
  kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
289
129
  typeName: "Secrets",
290
130
  description: `An object containing the secret configuration parameters used by the ${this.config.name ? `${this.config.name} application` : "application"}.`,
291
131
  types: []
292
132
  }, this.env.types.secrets);
293
- await require_persistence.writeEnvReflection(this, this.env.used.secrets, "secrets");
133
+ await require_helpers_persistence.writeEnvReflection(this, this.env.used.secrets, "secrets");
294
134
  }
295
135
  }
296
136
  },
297
137
  async prepare() {
298
138
  const _self$ = this;
299
139
  this.debug(`Preparing the Environment runtime artifacts for the Powerlines project.`);
300
- const result = await require_persistence.readEnvTypeReflection(this, "env");
301
- return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(require_env.EnvBuiltin, {
140
+ const result = await require_helpers_persistence.readEnvTypeReflection(this, "env");
141
+ return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(require_components_env.EnvBuiltin, {
302
142
  get defaultConfig() {
303
143
  return _self$.config.env.defaultConfig;
304
144
  },
@@ -309,33 +149,33 @@ const plugin = (options = {}) => {
309
149
  order: "post",
310
150
  async handler() {
311
151
  if (this.env.used.env.getProperties().length > 0) {
312
- this.trace(`Persisting used environment configuration reflections to ${require_persistence.getEnvReflectionsPath(this, "env")}.`);
313
- await require_persistence.writeEnvReflection(this, this.env.used.env, "env");
152
+ this.trace(`Persisting used environment configuration reflections to ${require_helpers_persistence.getEnvReflectionsPath(this, "env")}.`);
153
+ await require_helpers_persistence.writeEnvReflection(this, this.env.used.env, "env");
314
154
  }
315
155
  if (this.env.used.secrets.getProperties().length > 0) {
316
- this.trace(`Persisting used secret configuration reflections to ${require_persistence.getEnvReflectionsPath(this, "secrets")}.`);
317
- await require_persistence.writeEnvReflection(this, this.env.used.secrets, "secrets");
156
+ this.trace(`Persisting used secret configuration reflections to ${require_helpers_persistence.getEnvReflectionsPath(this, "secrets")}.`);
157
+ await require_helpers_persistence.writeEnvReflection(this, this.env.used.secrets, "secrets");
318
158
  }
319
159
  }
320
160
  },
321
161
  async docs() {
322
- this.debug(`Documenting environment variables configuration values in "${require_join_paths.joinPaths(require_docs_helper.getDocsOutputPath(this), "env.md")}"`);
323
- const result = await require_persistence.readEnvTypeReflection(this, "env");
324
- return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(require_docs.EnvDocsFile, {
162
+ this.debug(`Documenting environment variables configuration values in "${require_join_paths.joinPaths(require_helpers_docs_helper.getDocsOutputPath(this), "env.md")}"`);
163
+ const result = await require_helpers_persistence.readEnvTypeReflection(this, "env");
164
+ return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(require_components_docs.EnvDocsFile, {
325
165
  levelOffset: 0,
326
166
  reflection: result
327
167
  }));
328
168
  },
329
169
  async buildEnd() {
330
- const reflectionPath = require_persistence.getEnvReflectionsPath(this, "env");
170
+ const reflectionPath = require_helpers_persistence.getEnvReflectionsPath(this, "env");
331
171
  this.debug(`Writing env reflection types to ${reflectionPath}.`);
332
- await require_persistence.writeEnvReflection(this, this.env.used.env, "env");
172
+ await require_helpers_persistence.writeEnvReflection(this, this.env.used.env, "env");
333
173
  }
334
174
  },
335
175
  {
336
176
  name: "env:automd-generator",
337
177
  config() {
338
- return { automd: require_defu.defu(options.automd ?? {}, { generators: { env: require_automd_generator.env(this) } }) };
178
+ return { automd: require_defu.defu(options.automd ?? {}, { generators: { env: require_helpers_automd_generator.env(this) } }) };
339
179
  }
340
180
  },
341
181
  {
@@ -350,42 +190,42 @@ const plugin = (options = {}) => {
350
190
  var src_default = plugin;
351
191
 
352
192
  //#endregion
353
- exports.BaseEnv = require_persistence.BaseEnv;
354
- exports.BaseSecrets = require_persistence.BaseSecrets;
355
- exports.EnvBuiltin = require_env.EnvBuiltin;
356
- exports.EnvDocsFile = require_docs.EnvDocsFile;
357
- exports.EnvTypeDefinition = require_env.EnvTypeDefinition;
358
- exports.__ΩCreateEnvReflectionOptions = require_persistence.__ΩCreateEnvReflectionOptions;
359
- exports.__ΩEnvInterface = require_runtime.__ΩEnvInterface;
360
- exports.__ΩEnvPluginContext = require_plugin.__ΩEnvPluginContext;
361
- exports.__ΩEnvPluginOptions = require_plugin.__ΩEnvPluginOptions;
362
- exports.__ΩEnvPluginResolvedConfig = require_plugin.__ΩEnvPluginResolvedConfig;
363
- exports.__ΩEnvPluginUserConfig = require_plugin.__ΩEnvPluginUserConfig;
364
- exports.__ΩEnvType = require_plugin.__ΩEnvType;
365
- exports.__ΩSecretsInterface = require_runtime.__ΩSecretsInterface;
366
- exports.createEnvReflection = require_persistence.createEnvReflection;
367
- exports.createReflection = require_create_reflection_resource.createReflection;
368
- exports.createSecretsReflection = require_persistence.createSecretsReflection;
369
- exports.createTemplateReflection = require_template_helpers.createTemplateReflection;
193
+ exports.BaseEnv = require_helpers_reflect.BaseEnv;
194
+ exports.BaseSecrets = require_helpers_reflect.BaseSecrets;
195
+ exports.EnvBuiltin = require_components_env.EnvBuiltin;
196
+ exports.EnvDocsFile = require_components_docs.EnvDocsFile;
197
+ exports.EnvTypeDefinition = require_components_env.EnvTypeDefinition;
198
+ exports.__ΩCreateEnvReflectionOptions = require_helpers_reflect.__ΩCreateEnvReflectionOptions;
199
+ exports.__ΩEnvInterface = require_types_runtime.__ΩEnvInterface;
200
+ exports.__ΩEnvPluginContext = require_types_plugin.__ΩEnvPluginContext;
201
+ exports.__ΩEnvPluginOptions = require_types_plugin.__ΩEnvPluginOptions;
202
+ exports.__ΩEnvPluginResolvedConfig = require_types_plugin.__ΩEnvPluginResolvedConfig;
203
+ exports.__ΩEnvPluginUserConfig = require_types_plugin.__ΩEnvPluginUserConfig;
204
+ exports.__ΩEnvType = require_types_plugin.__ΩEnvType;
205
+ exports.__ΩSecretsInterface = require_types_runtime.__ΩSecretsInterface;
206
+ exports.createEnvReflection = require_helpers_reflect.createEnvReflection;
207
+ exports.createReflection = require_helpers_create_reflection_resource.createReflection;
208
+ exports.createSecretsReflection = require_helpers_reflect.createSecretsReflection;
209
+ exports.createTemplateReflection = require_helpers_template_helpers.createTemplateReflection;
370
210
  exports.default = src_default;
371
- exports.envBabelPlugin = require_plugin$1.envBabelPlugin;
372
- exports.formatEnvField = require_source_file_env.formatEnvField;
373
- exports.getEnvDefaultTypeDefinition = require_persistence.getEnvDefaultTypeDefinition;
374
- exports.getEnvReflectionsPath = require_persistence.getEnvReflectionsPath;
375
- exports.getEnvTypeReflectionsPath = require_persistence.getEnvTypeReflectionsPath;
376
- exports.getSecretsDefaultTypeDefinition = require_persistence.getSecretsDefaultTypeDefinition;
377
- exports.loadEnv = require_load.loadEnv;
378
- exports.loadEnvFromContext = require_load.loadEnvFromContext;
379
- exports.mergeEnvReflections = require_persistence.mergeEnvReflections;
380
- exports.mergeSecretsReflections = require_persistence.mergeSecretsReflections;
211
+ exports.envBabelPlugin = require_babel_plugin.envBabelPlugin;
212
+ exports.formatEnvField = require_helpers_source_file_env.formatEnvField;
213
+ exports.getEnvDefaultTypeDefinition = require_helpers_persistence.getEnvDefaultTypeDefinition;
214
+ exports.getEnvReflectionsPath = require_helpers_persistence.getEnvReflectionsPath;
215
+ exports.getEnvTypeReflectionsPath = require_helpers_persistence.getEnvTypeReflectionsPath;
216
+ exports.getSecretsDefaultTypeDefinition = require_helpers_persistence.getSecretsDefaultTypeDefinition;
217
+ exports.loadEnv = require_helpers_load.loadEnv;
218
+ exports.loadEnvFromContext = require_helpers_load.loadEnvFromContext;
219
+ exports.mergeEnvReflections = require_helpers_reflect.mergeEnvReflections;
220
+ exports.mergeSecretsReflections = require_helpers_reflect.mergeSecretsReflections;
381
221
  exports.plugin = plugin;
382
- exports.readEnvReflection = require_persistence.readEnvReflection;
383
- exports.readEnvTypeReflection = require_persistence.readEnvTypeReflection;
384
- exports.readSecretsReflection = require_persistence.readSecretsReflection;
385
- exports.reflectEnv = require_persistence.reflectEnv;
386
- exports.reflectSecrets = require_persistence.reflectSecrets;
387
- exports.removeEnvPrefix = require_source_file_env.removeEnvPrefix;
388
- exports.resolveRuntimeTypeFile = require_persistence.resolveRuntimeTypeFile;
389
- exports.writeEnvReflection = require_persistence.writeEnvReflection;
390
- exports.writeEnvReflectionSync = require_persistence.writeEnvReflectionSync;
391
- exports.writeEnvTypeReflection = require_persistence.writeEnvTypeReflection;
222
+ exports.readEnvReflection = require_helpers_persistence.readEnvReflection;
223
+ exports.readEnvTypeReflection = require_helpers_persistence.readEnvTypeReflection;
224
+ exports.readSecretsReflection = require_helpers_persistence.readSecretsReflection;
225
+ exports.reflectEnv = require_helpers_reflect.reflectEnv;
226
+ exports.reflectSecrets = require_helpers_reflect.reflectSecrets;
227
+ exports.removeEnvPrefix = require_helpers_source_file_env.removeEnvPrefix;
228
+ exports.resolveRuntimeTypeFile = require_helpers_persistence.resolveRuntimeTypeFile;
229
+ exports.writeEnvReflection = require_helpers_persistence.writeEnvReflection;
230
+ exports.writeEnvReflectionSync = require_helpers_persistence.writeEnvReflectionSync;
231
+ exports.writeEnvTypeReflection = require_helpers_persistence.writeEnvTypeReflection;
package/dist/index.d.cts CHANGED
@@ -1,15 +1,25 @@
1
- import { i as __ΩSecretsInterface, n as SecretsInterface, r as __ΩEnvInterface, t as EnvInterface } from "./runtime-BDzzR4wH.cjs";
2
- import { a as EnvType, c as __ΩEnvPluginResolvedConfig, i as EnvPluginUserConfig, l as __ΩEnvPluginUserConfig, n as EnvPluginOptions, o as __ΩEnvPluginContext, r as EnvPluginResolvedConfig, s as __ΩEnvPluginOptions, t as EnvPluginContext, u as __ΩEnvType } from "./plugin-CSe5f2cD.cjs";
3
- import { n as EnvDocsFileProps, r as __ΩEnvDocsFileProps, t as EnvDocsFile } from "./docs-BAKwE4PJ.cjs";
4
- import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "./env-DwM7pJm7.cjs";
5
- import "./index-uTS5iDq_.cjs";
6
- import { t as createReflection } from "./create-reflection-resource-3svZm2rY.cjs";
7
- import { n as loadEnvFromContext, t as loadEnv } from "./load-PHGmxX_X.cjs";
8
- 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-BR4cUaN6.cjs";
9
- 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-Dm8a3c29.cjs";
10
- import { n as removeEnvPrefix, t as formatEnvField } from "./source-file-env-Brfopjyr.cjs";
11
- import { t as createTemplateReflection } from "./template-helpers-zyitPfMz.cjs";
12
- import "./index-CEDY7cmG.cjs";
13
- import "./index-DSiHnMH2.cjs";
14
- import { n as plugin, t as envBabelPlugin } from "./index-Bdi8CvaN.cjs";
15
- export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, EnvTypeDefinition, SecretsInterface, __ΩCreateEnvReflectionOptions, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface, createEnvReflection, createReflection, createSecretsReflection, createTemplateReflection, plugin as default, plugin, envBabelPlugin, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
1
+ import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.cjs";
2
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.cjs";
3
+ import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./components/docs.cjs";
4
+ import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps } from "./components/env.cjs";
5
+ import "./components/index.cjs";
6
+ import { createReflection } from "./helpers/create-reflection-resource.cjs";
7
+ import { loadEnv, loadEnvFromContext } from "./helpers/load.cjs";
8
+ import { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection } from "./helpers/persistence.cjs";
9
+ import { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./helpers/reflect.cjs";
10
+ import { formatEnvField, removeEnvPrefix } from "./helpers/source-file-env.cjs";
11
+ import { createTemplateReflection } from "./helpers/template-helpers.cjs";
12
+ import "./helpers/index.cjs";
13
+ import "./types/index.cjs";
14
+ import { envBabelPlugin } from "./babel/plugin.cjs";
15
+ import "./babel/index.cjs";
16
+ import { Plugin } from "powerlines/types/plugin";
17
+
18
+ //#region src/index.d.ts
19
+ /**
20
+ * A Powerlines plugin to inject environment variables into the source code.
21
+ */
22
+ declare const plugin: <TContext extends EnvPluginContext = EnvPluginContext>(options?: EnvPluginOptions) => Plugin<TContext>[];
23
+ //#endregion
24
+ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, EnvTypeDefinition, SecretsInterface, __ΩCreateEnvReflectionOptions, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface, createEnvReflection, createReflection, createSecretsReflection, createTemplateReflection, plugin as default, plugin, envBabelPlugin, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
25
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;cAoEa,0BAA2B,mBAAmB,4BAChD,qBAuVJ,OAAO"}