@powerlines/plugin-env 0.16.49 → 0.16.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/dist/babel/plugin.mjs +1 -2
  2. package/dist/components/docs.cjs +1 -1
  3. package/dist/components/docs.mjs +2 -3
  4. package/dist/components/env-builtin.mjs +1 -2
  5. package/dist/helpers/automd-generator.cjs +1 -1
  6. package/dist/helpers/automd-generator.mjs +2 -3
  7. package/dist/helpers/create-reflection-resource.mjs +1 -2
  8. package/dist/helpers/docs-helper.cjs +1 -1
  9. package/dist/helpers/docs-helper.mjs +2 -3
  10. package/dist/helpers/load.cjs +1 -1
  11. package/dist/helpers/load.mjs +2 -3
  12. package/dist/helpers/persistence.cjs +1 -1
  13. package/dist/helpers/persistence.mjs +2 -3
  14. package/dist/helpers/reflect.cjs +2 -2
  15. package/dist/helpers/reflect.mjs +3 -4
  16. package/dist/helpers/source-file-env.mjs +1 -2
  17. package/dist/helpers/template-helpers.mjs +1 -2
  18. package/dist/index.cjs +3 -3
  19. package/dist/index.mjs +4 -5
  20. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/parse-type-definition.cjs +1 -1
  21. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/parse-type-definition.mjs +2 -3
  22. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/to-array.cjs +1 -1
  23. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/to-array.mjs +2 -3
  24. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +1 -1
  25. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +2 -3
  26. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +1 -1
  27. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +2 -3
  28. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +1 -1
  29. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +2 -3
  30. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +1 -1
  31. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +2 -3
  32. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +1 -1
  33. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +2 -3
  34. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +1 -1
  35. package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +2 -3
  36. package/dist/node_modules/.pnpm/{@stryke_path@0.26.17 → @stryke_path@0.26.18}/node_modules/@stryke/path/dist/is-parent-path.cjs +1 -1
  37. package/dist/node_modules/.pnpm/{@stryke_path@0.26.17 → @stryke_path@0.26.18}/node_modules/@stryke/path/dist/is-parent-path.mjs +2 -3
  38. package/dist/node_modules/.pnpm/{@stryke_path@0.26.17 → @stryke_path@0.26.18}/node_modules/@stryke/path/dist/is-type.cjs +1 -1
  39. package/dist/node_modules/.pnpm/{@stryke_path@0.26.17 → @stryke_path@0.26.18}/node_modules/@stryke/path/dist/is-type.mjs +2 -3
  40. package/dist/node_modules/.pnpm/{@stryke_path@0.26.17 → @stryke_path@0.26.18}/node_modules/@stryke/path/dist/join-paths.cjs +1 -1
  41. package/dist/node_modules/.pnpm/{@stryke_path@0.26.17 → @stryke_path@0.26.18}/node_modules/@stryke/path/dist/join-paths.mjs +2 -3
  42. package/dist/node_modules/.pnpm/{@stryke_path@0.26.17 → @stryke_path@0.26.18}/node_modules/@stryke/path/dist/regex.cjs +1 -1
  43. package/dist/node_modules/.pnpm/{@stryke_path@0.26.17 → @stryke_path@0.26.18}/node_modules/@stryke/path/dist/regex.mjs +2 -3
  44. package/dist/node_modules/.pnpm/{@stryke_path@0.26.17 → @stryke_path@0.26.18}/node_modules/@stryke/path/dist/slash.cjs +1 -1
  45. package/dist/node_modules/.pnpm/{@stryke_path@0.26.17 → @stryke_path@0.26.18}/node_modules/@stryke/path/dist/slash.mjs +2 -3
  46. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs +1 -2
  47. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs +1 -2
  48. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs +1 -2
  49. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +1 -2
  50. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs +1 -2
  51. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +1 -2
  52. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +1 -2
  53. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +1 -2
  54. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs +1 -2
  55. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs +1 -2
  56. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs +1 -2
  57. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs +1 -2
  58. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +1 -2
  59. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +1 -2
  60. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs +1 -2
  61. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs +1 -2
  62. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1 -2
  63. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +4 -2
  64. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +1 -2
  65. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +1 -2
  66. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +1 -2
  67. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +1 -2
  68. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +1 -2
  69. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +1 -2
  70. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +1 -2
  71. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +1 -2
  72. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +1 -2
  73. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs +1 -2
  74. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +1 -2
  75. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +1 -2
  76. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +1 -2
  77. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +1 -2
  78. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +1 -2
  79. package/dist/types/plugin.mjs +1 -2
  80. package/dist/types/runtime.mjs +1 -2
  81. package/package.json +17 -17
  82. package/dist/babel/index.d.cts +0 -2
  83. package/dist/babel/index.d.mts +0 -2
  84. package/dist/babel/plugin.d.cts +0 -9
  85. package/dist/babel/plugin.d.cts.map +0 -1
  86. package/dist/babel/plugin.d.mts +0 -9
  87. package/dist/babel/plugin.d.mts.map +0 -1
  88. package/dist/babel/plugin.mjs.map +0 -1
  89. package/dist/components/docs.d.cts +0 -25
  90. package/dist/components/docs.d.cts.map +0 -1
  91. package/dist/components/docs.d.mts +0 -25
  92. package/dist/components/docs.d.mts.map +0 -1
  93. package/dist/components/docs.mjs.map +0 -1
  94. package/dist/components/env-builtin.d.cts +0 -23
  95. package/dist/components/env-builtin.d.cts.map +0 -1
  96. package/dist/components/env-builtin.d.mts +0 -23
  97. package/dist/components/env-builtin.d.mts.map +0 -1
  98. package/dist/components/env-builtin.mjs.map +0 -1
  99. package/dist/components/index.d.cts +0 -3
  100. package/dist/components/index.d.mts +0 -3
  101. package/dist/helpers/automd-generator.d.cts +0 -15
  102. package/dist/helpers/automd-generator.d.cts.map +0 -1
  103. package/dist/helpers/automd-generator.d.mts +0 -15
  104. package/dist/helpers/automd-generator.d.mts.map +0 -1
  105. package/dist/helpers/automd-generator.mjs.map +0 -1
  106. package/dist/helpers/create-reflection-resource.d.cts +0 -14
  107. package/dist/helpers/create-reflection-resource.d.cts.map +0 -1
  108. package/dist/helpers/create-reflection-resource.d.mts +0 -14
  109. package/dist/helpers/create-reflection-resource.d.mts.map +0 -1
  110. package/dist/helpers/create-reflection-resource.mjs.map +0 -1
  111. package/dist/helpers/docs-helper.d.cts +0 -14
  112. package/dist/helpers/docs-helper.d.cts.map +0 -1
  113. package/dist/helpers/docs-helper.d.mts +0 -14
  114. package/dist/helpers/docs-helper.d.mts.map +0 -1
  115. package/dist/helpers/docs-helper.mjs.map +0 -1
  116. package/dist/helpers/index.d.cts +0 -7
  117. package/dist/helpers/index.d.mts +0 -7
  118. package/dist/helpers/load.d.cts +0 -36
  119. package/dist/helpers/load.d.cts.map +0 -1
  120. package/dist/helpers/load.d.mts +0 -36
  121. package/dist/helpers/load.d.mts.map +0 -1
  122. package/dist/helpers/load.mjs.map +0 -1
  123. package/dist/helpers/persistence.d.cts +0 -85
  124. package/dist/helpers/persistence.d.cts.map +0 -1
  125. package/dist/helpers/persistence.d.mts +0 -85
  126. package/dist/helpers/persistence.d.mts.map +0 -1
  127. package/dist/helpers/persistence.mjs.map +0 -1
  128. package/dist/helpers/reflect.d.cts +0 -69
  129. package/dist/helpers/reflect.d.cts.map +0 -1
  130. package/dist/helpers/reflect.d.mts +0 -69
  131. package/dist/helpers/reflect.d.mts.map +0 -1
  132. package/dist/helpers/reflect.mjs.map +0 -1
  133. package/dist/helpers/source-file-env.d.cts +0 -9
  134. package/dist/helpers/source-file-env.d.cts.map +0 -1
  135. package/dist/helpers/source-file-env.d.mts +0 -9
  136. package/dist/helpers/source-file-env.d.mts.map +0 -1
  137. package/dist/helpers/source-file-env.mjs.map +0 -1
  138. package/dist/helpers/template-helpers.d.cts +0 -16
  139. package/dist/helpers/template-helpers.d.cts.map +0 -1
  140. package/dist/helpers/template-helpers.d.mts +0 -16
  141. package/dist/helpers/template-helpers.d.mts.map +0 -1
  142. package/dist/helpers/template-helpers.mjs.map +0 -1
  143. package/dist/index.d.cts +0 -18
  144. package/dist/index.d.cts.map +0 -1
  145. package/dist/index.d.mts +0 -18
  146. package/dist/index.d.mts.map +0 -1
  147. package/dist/index.mjs.map +0 -1
  148. package/dist/node_modules/.pnpm/@stryke_convert@0.6.51/node_modules/@stryke/convert/dist/parse-type-definition.mjs.map +0 -1
  149. package/dist/node_modules/.pnpm/@stryke_convert@0.6.51/node_modules/@stryke/convert/dist/to-array.mjs.map +0 -1
  150. package/dist/node_modules/.pnpm/@stryke_convert@0.6.51/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs.map +0 -1
  151. package/dist/node_modules/.pnpm/@stryke_convert@0.6.51/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs.map +0 -1
  152. package/dist/node_modules/.pnpm/@stryke_convert@0.6.51/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs.map +0 -1
  153. package/dist/node_modules/.pnpm/@stryke_convert@0.6.51/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs.map +0 -1
  154. package/dist/node_modules/.pnpm/@stryke_convert@0.6.51/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs.map +0 -1
  155. package/dist/node_modules/.pnpm/@stryke_convert@0.6.51/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs.map +0 -1
  156. package/dist/node_modules/.pnpm/@stryke_path@0.26.17/node_modules/@stryke/path/dist/is-parent-path.mjs.map +0 -1
  157. package/dist/node_modules/.pnpm/@stryke_path@0.26.17/node_modules/@stryke/path/dist/is-type.mjs.map +0 -1
  158. package/dist/node_modules/.pnpm/@stryke_path@0.26.17/node_modules/@stryke/path/dist/join-paths.mjs.map +0 -1
  159. package/dist/node_modules/.pnpm/@stryke_path@0.26.17/node_modules/@stryke/path/dist/regex.mjs.map +0 -1
  160. package/dist/node_modules/.pnpm/@stryke_path@0.26.17/node_modules/@stryke/path/dist/slash.mjs.map +0 -1
  161. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs.map +0 -1
  162. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs.map +0 -1
  163. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs.map +0 -1
  164. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs.map +0 -1
  165. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs.map +0 -1
  166. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs.map +0 -1
  167. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs.map +0 -1
  168. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs.map +0 -1
  169. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs.map +0 -1
  170. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs.map +0 -1
  171. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs.map +0 -1
  172. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs.map +0 -1
  173. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs.map +0 -1
  174. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +0 -1
  175. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs.map +0 -1
  176. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs.map +0 -1
  177. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +0 -1
  178. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +0 -1
  179. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +0 -1
  180. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +0 -1
  181. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +0 -1
  182. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +0 -1
  183. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +0 -1
  184. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +0 -1
  185. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +0 -1
  186. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs.map +0 -1
  187. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +0 -1
  188. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs.map +0 -1
  189. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +0 -1
  190. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +0 -1
  191. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +0 -1
  192. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +0 -1
  193. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +0 -1
  194. package/dist/types/index.d.cts +0 -3
  195. package/dist/types/index.d.mts +0 -3
  196. package/dist/types/plugin.d.cts +0 -168
  197. package/dist/types/plugin.d.cts.map +0 -1
  198. package/dist/types/plugin.d.mts +0 -168
  199. package/dist/types/plugin.d.mts.map +0 -1
  200. package/dist/types/plugin.mjs.map +0 -1
  201. package/dist/types/runtime.d.cts +0 -792
  202. package/dist/types/runtime.d.cts.map +0 -1
  203. package/dist/types/runtime.d.mts +0 -792
  204. package/dist/types/runtime.d.mts.map +0 -1
  205. package/dist/types/runtime.mjs.map +0 -1
  206. /package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +0 -0
  207. /package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +0 -0
  208. /package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +0 -0
  209. /package/dist/node_modules/.pnpm/{@stryke_convert@0.6.51 → @stryke_convert@0.6.52}/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +0 -0
@@ -13,5 +13,4 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
13
13
  }) : a$1, n$1));
14
14
 
15
15
  //#endregion
16
- export { c, o };
17
- //# sourceMappingURL=rolldown-runtime.mjs.map
16
+ export { c, o };
@@ -10,5 +10,4 @@ function s(e, n) {
10
10
  }
11
11
 
12
12
  //#endregion
13
- export { s as parseJSON5 };
14
- //# sourceMappingURL=json5.mjs.map
13
+ export { s as parseJSON5 };
@@ -8,5 +8,4 @@ function r(n, r$1) {
8
8
  }
9
9
 
10
10
  //#endregion
11
- export { r as parseJSONC };
12
- //# sourceMappingURL=jsonc.mjs.map
11
+ export { r as parseJSONC };
@@ -8,5 +8,4 @@ function i(t) {
8
8
  }
9
9
 
10
10
  //#endregion
11
- export { i as parseTOML };
12
- //# sourceMappingURL=toml.mjs.map
11
+ export { i as parseTOML };
@@ -8,5 +8,4 @@ function i(t, r) {
8
8
  }
9
9
 
10
10
  //#endregion
11
- export { i as parseYAML };
12
- //# sourceMappingURL=yaml.mjs.map
11
+ export { i as parseYAML };
@@ -39,5 +39,4 @@ const defuArrayFn = createDefu((object, key, currentValue) => {
39
39
  });
40
40
 
41
41
  //#endregion
42
- export { defu };
43
- //# sourceMappingURL=defu.mjs.map
42
+ export { defu };
@@ -42,5 +42,4 @@ function destr(value, options = {}) {
42
42
  }
43
43
 
44
44
  //#endregion
45
- export { destr };
46
- //# sourceMappingURL=index.mjs.map
45
+ export { destr };
@@ -279,5 +279,4 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
279
279
  //#endregion
280
280
  export default require_main();
281
281
 
282
- export { require_main };
283
- //# sourceMappingURL=main.mjs.map
282
+ export { require_main };
@@ -65,5 +65,4 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
65
65
  //#endregion
66
66
  export default require_package();
67
67
 
68
- export { require_package };
69
- //# sourceMappingURL=package.mjs.map
68
+ export { require_package };
@@ -1004,5 +1004,4 @@ function _parseInput(input) {
1004
1004
  }
1005
1005
 
1006
1006
  //#endregion
1007
- export { resolveModulePath };
1008
- //# sourceMappingURL=index.mjs.map
1007
+ export { resolveModulePath };
@@ -4,11 +4,13 @@ import { downloadTemplate, registryProvider } from "./shared/giget.OCaTp9b-.mjs"
4
4
  import "node:fs";
5
5
  import "node:os";
6
6
  import "node:fs/promises";
7
+ import "node:assert";
8
+ import "node:process";
9
+ import "node:util";
7
10
  import "node:child_process";
8
11
 
9
12
  //#region ../../node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs
10
13
  var import_proxy = require_proxy();
11
14
 
12
15
  //#endregion
13
- export { downloadTemplate };
14
- //# sourceMappingURL=index.mjs.map
16
+ export { downloadTemplate };
@@ -2682,5 +2682,4 @@ async function downloadTemplate(input, options = {}) {
2682
2682
  }
2683
2683
 
2684
2684
  //#endregion
2685
- export { downloadTemplate, registryProvider };
2686
- //# sourceMappingURL=giget.OCaTp9b-.mjs.map
2685
+ export { downloadTemplate, registryProvider };
@@ -4451,5 +4451,4 @@ var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4451
4451
  //#endregion
4452
4452
  export default require_jiti();
4453
4453
 
4454
- export { require_jiti };
4455
- //# sourceMappingURL=jiti.mjs.map
4454
+ export { require_jiti };
@@ -26,5 +26,4 @@ function createJiti(id, opts = {}) {
26
26
  }
27
27
 
28
28
  //#endregion
29
- export { createJiti };
30
- //# sourceMappingURL=jiti.mjs.map
29
+ export { createJiti };
@@ -173,5 +173,4 @@ var require_multipart_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
173
173
  //#endregion
174
174
  export default require_multipart_parser();
175
175
 
176
- export { };
177
- //# sourceMappingURL=multipart-parser.mjs.map
176
+ export { };
@@ -14,5 +14,4 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
14
14
  //#endregion
15
15
  export default require_dist();
16
16
 
17
- export { require_dist };
18
- //# sourceMappingURL=index.mjs.map
17
+ export { require_dist };
@@ -3959,5 +3959,4 @@ Content-Type: ${R.type || "application/octet-stream"}\r
3959
3959
  //#endregion
3960
3960
  export default require_node();
3961
3961
 
3962
- export { require_node };
3963
- //# sourceMappingURL=node.mjs.map
3962
+ export { require_node };
@@ -11760,5 +11760,4 @@ ${p}`;
11760
11760
  //#endregion
11761
11761
  export default require_proxy();
11762
11762
 
11763
- export { require_proxy };
11764
- //# sourceMappingURL=proxy.mjs.map
11763
+ export { require_proxy };
@@ -17,5 +17,4 @@ var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ __commonJSMin(((exports
17
17
  //#endregion
18
18
  export default require_node_fetch_native_DhEqb06g();
19
19
 
20
- export { require_node_fetch_native_DhEqb06g };
21
- //# sourceMappingURL=node-fetch-native.DhEqb06g.mjs.map
20
+ export { require_node_fetch_native_DhEqb06g };
@@ -14,5 +14,4 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14
14
  //#endregion
15
15
  export default require_lib();
16
16
 
17
- export { require_lib };
18
- //# sourceMappingURL=index.mjs.map
17
+ export { require_lib };
@@ -172,5 +172,4 @@ async function installDependencies(options = {}) {
172
172
  }
173
173
 
174
174
  //#endregion
175
- export { installDependencies };
176
- //# sourceMappingURL=index.mjs.map
175
+ export { installDependencies };
@@ -9,5 +9,4 @@ function digest(t) {
9
9
  }
10
10
 
11
11
  //#endregion
12
- export { digest };
13
- //# sourceMappingURL=index.mjs.map
12
+ export { digest };
@@ -135,5 +135,4 @@ const basename = function(p, extension) {
135
135
  };
136
136
 
137
137
  //#endregion
138
- export { basename, dirname, extname, isAbsolute, join, normalize, resolve };
139
- //# sourceMappingURL=pathe.M-eThtNZ.mjs.map
138
+ export { basename, dirname, extname, isAbsolute, join, normalize, resolve };
@@ -123,5 +123,4 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
123
123
  }
124
124
 
125
125
  //#endregion
126
- export { findWorkspaceDir, readPackageJSON };
127
- //# sourceMappingURL=index.mjs.map
126
+ export { findWorkspaceDir, readPackageJSON };
@@ -133,5 +133,4 @@ function readUser(options) {
133
133
  }
134
134
 
135
135
  //#endregion
136
- export { read, readUser };
137
- //# sourceMappingURL=index.mjs.map
136
+ export { read, readUser };
@@ -624,5 +624,4 @@ const K = (e, t, n) => {
624
624
  const q = K;
625
625
 
626
626
  //#endregion
627
- export { K };
628
- //# sourceMappingURL=main.mjs.map
627
+ export { K };
@@ -128,5 +128,4 @@ const __ΩEnvPluginContext = [
128
128
  ];
129
129
 
130
130
  //#endregion
131
- export { __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType };
132
- //# sourceMappingURL=plugin.mjs.map
131
+ export { __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType };
@@ -238,5 +238,4 @@ const __ΩSecretsInterface = [
238
238
  ];
239
239
 
240
240
  //#endregion
241
- export { __ΩEnvInterface, __ΩSecretsInterface };
242
- //# sourceMappingURL=runtime.mjs.map
241
+ export { __ΩEnvInterface, __ΩSecretsInterface };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-env",
3
- "version": "0.16.49",
3
+ "version": "0.16.51",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
6
6
  "repository": {
@@ -305,28 +305,28 @@
305
305
  "@alloy-js/typescript": "0.23.0-dev.4",
306
306
  "@babel/core": "^7.29.0",
307
307
  "@babel/types": "^7.29.0",
308
- "@powerlines/plugin-alloy": "^0.25.14",
309
- "@powerlines/plugin-automd": "^0.1.330",
310
- "@powerlines/plugin-babel": "^0.12.335",
311
- "@powerlines/plugin-plugin": "^0.12.281",
312
- "@storm-software/config-tools": "^1.189.21",
313
- "@stryke/capnp": "^0.12.80",
314
- "@stryke/env": "^0.20.72",
315
- "@stryke/fs": "^0.33.55",
316
- "@stryke/json": "^0.14.5",
317
- "@stryke/string-format": "^0.17.1",
318
- "@stryke/type-checks": "^0.5.36",
319
- "@stryke/types": "^0.10.50",
308
+ "@powerlines/plugin-alloy": "^0.25.16",
309
+ "@powerlines/plugin-automd": "^0.1.332",
310
+ "@powerlines/plugin-babel": "^0.12.337",
311
+ "@powerlines/plugin-plugin": "^0.12.283",
312
+ "@storm-software/config-tools": "^1.189.26",
313
+ "@stryke/capnp": "^0.12.82",
314
+ "@stryke/env": "^0.20.73",
315
+ "@stryke/fs": "^0.33.56",
316
+ "@stryke/json": "^0.14.6",
317
+ "@stryke/string-format": "^0.17.2",
318
+ "@stryke/type-checks": "^0.5.37",
319
+ "@stryke/types": "^0.10.51",
320
320
  "automd": "^0.4.3",
321
- "powerlines": "^0.40.17"
321
+ "powerlines": "^0.40.19"
322
322
  },
323
323
  "devDependencies": {
324
- "@powerlines/deepkit": "^0.6.109",
325
- "@powerlines/plugin-deepkit": "^0.11.209",
324
+ "@powerlines/deepkit": "^0.6.111",
325
+ "@powerlines/plugin-deepkit": "^0.11.211",
326
326
  "@types/node": "^25.4.0",
327
327
  "vite": "8.0.0-beta.16"
328
328
  },
329
329
  "publishConfig": { "access": "public" },
330
330
  "types": "./dist/index.d.cts",
331
- "gitHead": "dde0f2e2684c65303dc81833f1d39c2c77910e22"
331
+ "gitHead": "7496a546473274494be487ebc33cf267ed5cd1f0"
332
332
  }
@@ -1,2 +0,0 @@
1
- import { envBabelPlugin } from "./plugin.cjs";
2
- export { envBabelPlugin };
@@ -1,2 +0,0 @@
1
- import { envBabelPlugin } from "./plugin.mjs";
2
- export { envBabelPlugin };
@@ -1,9 +0,0 @@
1
- import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.cjs";
2
- import "../index.cjs";
3
- import * as _powerlines_plugin_babel0 from "@powerlines/plugin-babel";
4
-
5
- //#region src/babel/plugin.d.ts
6
- declare const envBabelPlugin: _powerlines_plugin_babel0.DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
7
- //#endregion
8
- export { envBabelPlugin };
9
- //# sourceMappingURL=plugin.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/babel/plugin.ts"],"sourcesContent":[],"mappings":";;;;;cAiCa,gBAAc,yBAAA,CAAA,kCAAA,iBA4M1B,uBAAA,GA5M0B"}
@@ -1,9 +0,0 @@
1
- import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.mjs";
2
- import "../index.mjs";
3
- import * as _powerlines_plugin_babel0 from "@powerlines/plugin-babel";
4
-
5
- //#region src/babel/plugin.d.ts
6
- declare const envBabelPlugin: _powerlines_plugin_babel0.DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
7
- //#endregion
8
- export { envBabelPlugin };
9
- //# sourceMappingURL=plugin.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/babel/plugin.ts"],"sourcesContent":[],"mappings":";;;;;cAiCa,gBAAc,yBAAA,CAAA,kCAAA,iBA4M1B,uBAAA,GA5M0B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/babel/plugin.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 { NodePath } from \"@babel/core\";\nimport * as t from \"@babel/types\";\nimport { stringifyDefaultValue } from \"@powerlines/deepkit/utilities\";\nimport { createBabelPlugin } from \"@powerlines/plugin-babel/helpers/create-plugin\";\nimport { addImport } from \"@powerlines/plugin-babel/helpers/module-helpers\";\nimport { BabelPluginPass } from \"@powerlines/plugin-babel/types/config\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { EnvPluginContext } from \"../types/plugin\";\n\n/*\n * The Powerlines - Environment Configuration Babel Plugin\n *\n * @param babel - The Babel core module\n * @returns The Babel plugin object\n */\nexport const envBabelPlugin = createBabelPlugin<EnvPluginContext>(\n \"env\",\n ({ log, context }) => {\n function extractEnv(\n node: t.Identifier,\n pass: BabelPluginPass,\n isInjectable = false,\n isUsingBuiltin = false\n ) {\n const envTypesAliasProperties = context.env.types.env\n ?.getProperties()\n .filter(prop => prop.getAlias().length > 0);\n\n if (node.name) {\n const prefix = context.config.env.prefix.find(\n pre =>\n node.name &&\n node.name.startsWith(pre) &&\n (context.env.types.env?.hasProperty(\n node.name.replace(`${pre}_`, \"\")\n ) ||\n envTypesAliasProperties.some(prop =>\n prop.getAlias().includes(node.name.replace(`${pre}_`, \"\"))\n ))\n );\n\n let name = node.name;\n if (prefix) {\n name = node.name.replace(`${prefix}_`, \"\");\n }\n\n log(\n LogLevelLabel.TRACE,\n `Environment variable ${name} found in ${\n pass.filename || \"unknown file\"\n }.`\n );\n\n if (\n context.env.types.env?.hasProperty(name) ||\n envTypesAliasProperties.some(prop => prop.getAlias().includes(name))\n ) {\n const envProperty = context.env.types.env.hasProperty(name)\n ? context.env.types.env.getProperty(name)\n : envTypesAliasProperties.find(prop =>\n prop.getAlias().includes(name)\n );\n if (!envProperty || envProperty.isIgnored()) {\n return;\n }\n\n if (!context.env.used.env.hasProperty(name)) {\n log(\n LogLevelLabel.DEBUG,\n `Adding \"${name}\" environment variables found in \"${\n pass.filename || \"unknown file\"\n }\" to used environment configuration reflection object.`\n );\n\n context.env.used.env.addProperty(envProperty.property);\n }\n\n if (context.config.env.inject && isInjectable) {\n let value = context.env.parsed?.[name];\n if (value === undefined) {\n const prefix = context.config.env.prefix.find(pre => {\n return context.env.parsed[`${pre.replace(/_$/g, \"\")}_${name}`];\n });\n if (prefix) {\n value =\n context.env.parsed[`${prefix.replace(/_$/g, \"\")}_${name}`];\n }\n }\n\n value ??= envProperty.getDefaultValue();\n\n if (envProperty.isValueRequired() && value === undefined) {\n throw new Error(\n `Environment variable \\`${name}\\` is not defined in the .env configuration files`\n );\n }\n\n return stringifyDefaultValue(envProperty, value);\n }\n } else if (context.config.env.validate) {\n throw new Error(\n `The \"${name}\" environment variable is not defined in the \\`env\\` type definition, but is used in the source code file ${\n pass.filename ? pass.filename : \"unknown\"\n }.\n\n The following environment configuration names are defined in the \\`env\\` type definition: \\n${context.env.types.env\n ?.getPropertyNames()\n .sort((a, b) => String(a).localeCompare(String(b)))\n .map(\n typeDef =>\n ` - ${String(typeDef)} ${\n envTypesAliasProperties.some(\n prop =>\n prop.getNameAsString() === String(typeDef) &&\n prop.getAlias().length > 0\n )\n ? `(Alias: ${envTypesAliasProperties\n ?.find(\n prop => prop.getNameAsString() === String(typeDef)\n )\n ?.getAlias()\n .join(\", \")})`\n : \"\"\n }`\n )\n .join(\n \"\\n\"\n )} \\n\\nUsing the following env prefix: \\n${context.config.env.prefix\n .map(prefix => ` - ${prefix}`)\n .join(\n \"\\n\"\n )} \\n\\nPlease check your \\`env\\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \\n\\n`\n );\n } else if (pass.filename && isUsingBuiltin) {\n context.warn(\n `The \"${\n name\n }\" environment variable is used in the source code file ${\n pass.filename\n }, but is not defined in the \\`env\\` type definition. If this is intentional, you can ignore this warning. Otherwise, please check your \\`env\\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code.`\n );\n }\n }\n\n return undefined;\n }\n\n return {\n visitor: {\n MemberExpression(\n path: NodePath<t.MemberExpression>,\n pass: BabelPluginPass\n ) {\n if (\n path\n .get(\"object\")\n ?.get(\"property\")\n ?.isIdentifier({ name: \"env\" }) &&\n path\n .get(\"object\")\n ?.get(\"object\")\n ?.isIdentifier({ name: \"process\" }) &&\n path.get(\"property\")?.isIdentifier()\n ) {\n // process.env.CONFIG_NAME\n\n const identifier = path.get(\"property\")?.node as t.Identifier;\n if (!identifier.name) {\n return;\n }\n\n extractEnv(identifier, pass, false, false);\n\n path.replaceWithSourceString(`env.${identifier.name}`);\n addImport(path, {\n module: `${context.config.framework || \"powerlines\"}:env`,\n name: \"env\",\n imported: \"env\"\n });\n } else if (\n path\n .get(\"object\")\n ?.get(\"property\")\n ?.isIdentifier({ name: \"env\" }) &&\n path.get(\"object\")?.get(\"object\")?.isMetaProperty() &&\n path.get(\"property\")?.isIdentifier()\n ) {\n // import.meta.env.CONFIG_NAME\n\n const identifier = path.get(\"property\")?.node as t.Identifier;\n if (!identifier.name) {\n return;\n }\n\n extractEnv(identifier, pass, false, false);\n\n path.replaceWithSourceString(`env.${identifier.name}`);\n addImport(path, {\n module: `${context.config.framework || \"powerlines\"}:env`,\n name: \"env\",\n imported: \"env\"\n });\n } else if (\n path.get(\"object\")?.isIdentifier({ name: \"env\" }) &&\n path.get(\"property\")?.isIdentifier()\n ) {\n // env.CONFIG_NAME\n\n const identifier = path.get(\"property\")?.node as t.Identifier;\n if (!identifier.name) {\n return;\n }\n\n extractEnv(identifier, pass, false, true);\n }\n }\n }\n };\n }\n);\n"],"mappings":";;;;;;;;;AAIA,SAAS,aAAa,IAAI,MAAM;AAC5B,IAAG,SAAS;AACZ,QAAO;;AA8BX,MAAa,kBAAU,kBAAA,IAAA,CAAA,OAAA,qBAAA,KAAA,CAAA,EAAA,kBAAA,OAAA,cAAA,EAAA,KAAA,cAAA;CACnB,SAAS,WAAW,MAAA,MAAA,eAAA,OAAA,iBAAA,OAAA;EAChB,MAAM,0BAAa,QAAA,IAAA,MAAA,KACb,eAAY,CACb,OAAO,cAAO,SAAA,KAAA,UAAA,CAAA,SAAA,GAAA;GAAA;GAAA;GAAA;GAAA,CAAA,CAAA;AACrB,MAAA,KAAA,MAAA;GACM,MAAM,SAAS,QAAQ,OAAO,IAAI,OAAO,KAAK,cAAA,QAAA,KAAA,QAC1C,KAAK,KAAG,WAAA,IAAA,KACP,QAAQ,IAAI,MAAM,KAAK,YAAW,KAAA,KAAA,QAAA,GAAA,IAAA,IAAA,GAAA,CAAA;;;;;;;;;GAEvC,IAAI,OAAK,KAAA;AACT,OAAI,OACD,QAAA,KAAA,KAAA,QAAA,GAAA,OAAA,IAAA,GAAA;AAEH,OAAI,cAAc,OAAO,wBAAE,KAAA,YAAA,KAAA,YAAA,eAAA,GAAA;AAC3B,OAAI,QAAQ,IAAI,MAAM,KA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IACnC,KAAK,IAAI,WAAC,EAAA,cAAA,EAAA;GAEV,MAAI,aAAA,KAAA,IAAA,WAAA,EAAA;AACJ,OAAI,CAAC,WAAU,KACX;AAEP,cAAA,YAAA,MAAA,OAAA,MAAA;AACL,QAAA,wBAAA,OAAA,WAAA,OAAA;AACK,aAAA,MAAA;IACA,QAAA,GAAA,QAAA,OAAA,aAAA,aAAA;IACO,MAAM;IACN,UAAU;IACjB,CAAA;aAEQ,KAAK,IAAI,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC,IAC/D,KAAA,IAAA,WAAA,EAAA,cAAA,EAAA;GAES,MAAE,aAAA,KAAA,IAAA,WAAA,EAAA;AACH,OAAA,CAAA,WAAA,KACF;AAEG,cAAM,YAAA,MAAA,OAAA,KAAA;;IAEf;QAAA;EAAA;QAAA;EAAA;EAAA;EAAA;EAAA,CAAA,EACH,EACH"}
@@ -1,25 +0,0 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
2
- import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
3
- import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
4
-
5
- //#region src/components/docs.d.ts
6
- interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
7
- /**
8
- * The heading level offset to apply to the generated documentation.
9
- *
10
- * @remarks
11
- * This is useful when nesting the documentation within other markdown files.
12
- *
13
- * @defaultValue 0
14
- */
15
- levelOffset?: number;
16
- reflection: ReflectionClass<any>;
17
- }
18
- /**
19
- * Generates the environment configuration markdown documentation for the Powerlines project.
20
- */
21
- declare function EnvDocsFile(props: EnvDocsFileProps): _alloy_js_core0.Children;
22
- declare type __ΩEnvDocsFileProps = any[];
23
- //#endregion
24
- export { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps };
25
- //# sourceMappingURL=docs.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docs.d.cts","names":[],"sources":["../../src/components/docs.tsx"],"sourcesContent":[],"mappings":";;;;;UAmCiB,gBAAA,SAAyB,QAAQ;;;AAAlD;;;;;AAiBA;;cANc;;;;;iBAME,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
@@ -1,25 +0,0 @@
1
- import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
3
- import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
4
-
5
- //#region src/components/docs.d.ts
6
- interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
7
- /**
8
- * The heading level offset to apply to the generated documentation.
9
- *
10
- * @remarks
11
- * This is useful when nesting the documentation within other markdown files.
12
- *
13
- * @defaultValue 0
14
- */
15
- levelOffset?: number;
16
- reflection: ReflectionClass<any>;
17
- }
18
- /**
19
- * Generates the environment configuration markdown documentation for the Powerlines project.
20
- */
21
- declare function EnvDocsFile(props: EnvDocsFileProps): _alloy_js_core0.Children;
22
- declare type __ΩEnvDocsFileProps = any[];
23
- //#endregion
24
- export { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps };
25
- //# sourceMappingURL=docs.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docs.d.mts","names":[],"sources":["../../src/components/docs.tsx"],"sourcesContent":[],"mappings":";;;;;UAmCiB,gBAAA,SAAyB,QAAQ;;;AAAlD;;;;;AAiBA;;cANc;;;;;iBAME,WAAA,QAAmB,mBAAgB,eAAA,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"docs.mjs","names":["code","Show","Heading","Link","stringifyType","Spacing","usePowerlines","MarkdownFile","MarkdownTable","joinPaths","getDocsOutputPath","EnvDocsFile","props","levelOffset","reflection","rest","context","_$createComponent","_$mergeProps","path","children","level","when","packageJson","name","href","title","data","getProperties","filter","property","getNameAsString","sort","a","b","localeCompare","map","reflectionProperty","trim","description","getDescription","type","getType","replaceAll","defaultValue","hasDefault","String","getDefaultValue","includes","required","isValueRequired"],"sources":["../../src/components/docs.tsx"],"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 { code, Show } from \"@alloy-js/core\";\nimport { Heading, Link } from \"@alloy-js/markdown\";\nimport {\n ReflectionClass,\n stringifyType\n} from \"@powerlines/deepkit/vendor/type\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n MarkdownFile,\n MarkdownFileProps\n} from \"@powerlines/plugin-alloy/markdown/components/markdown-file\";\nimport { MarkdownTable } from \"@powerlines/plugin-alloy/markdown/components/markdown-table\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { getDocsOutputPath } from \"../helpers/docs-helper\";\nimport { EnvPluginContext } from \"../types/plugin\";\n\nexport interface EnvDocsFileProps extends Partial<MarkdownFileProps> {\n /**\n * The heading level offset to apply to the generated documentation.\n *\n * @remarks\n * This is useful when nesting the documentation within other markdown files.\n *\n * @defaultValue 0\n */\n levelOffset?: number;\n\n reflection: ReflectionClass<any>;\n}\n\n/**\n * Generates the environment configuration markdown documentation for the Powerlines project.\n */\nexport function EnvDocsFile(props: EnvDocsFileProps) {\n const { levelOffset = 0, reflection, ...rest } = props;\n\n const context = usePowerlines<EnvPluginContext>();\n\n return (\n <MarkdownFile\n path={joinPaths(getDocsOutputPath(context), \"env.md\")}\n {...rest}>\n <Heading level={1 + levelOffset}>Environment Configuration</Heading>\n {code`Below is a list of environment variables used by the`}\n <Show when={!!context.packageJson.name}>\n <Link\n href={`https://www.npmjs.com/package/${context.packageJson.name}`}\n title={context.packageJson.name!}\n />\n </Show>\n {code`package. These values can be updated in the \\`.env\\` file in the root of the project.`}\n <Spacing />\n <Heading level={2 + levelOffset}>Environment Variables</Heading>\n <Spacing />\n {code`The below list of environment variables are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.`}\n <Spacing />\n <MarkdownTable\n data={\n reflection\n ?.getProperties()\n .filter(\n property =>\n property.getNameAsString() !== \"__POWERLINES_INJECTED__\"\n )\n .sort((a, b) =>\n a.getNameAsString().localeCompare(b.getNameAsString())\n )\n .map(reflectionProperty => {\n return {\n name: reflectionProperty.getNameAsString().trim(),\n description: (reflectionProperty.getDescription() ?? \"\").trim(),\n type: stringifyType(reflectionProperty.getType())\n .trim()\n .replaceAll(\" | \", \", or \"),\n defaultValue: reflectionProperty.hasDefault()\n ? String(reflectionProperty.getDefaultValue())?.includes('\"')\n ? reflectionProperty.getDefaultValue()\n : `\\`${reflectionProperty.getDefaultValue()}\\``\n : \"\",\n required: reflectionProperty.isValueRequired() ? \"\" : \"✔\"\n };\n }) ?? []\n }\n />\n </MarkdownFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAoDA,SAAgBW,YAAYC,OAAyB;CACnD,MAAM,EAAEC,cAAc,GAAGC,YAAY,GAAGC,SAASH;CAEjD,MAAMI,UAAUV,eAAiC;AAEjD,QAAAW,gBACGV,cAAYW,WAAA,EAAA,IACXC,OAAI;AAAA,SAAEV,UAAUC,kBAAkBM,QAAQ,EAAE,SAAS;IAAA,EACjDD,MAAI,EAAA,IAAAK,WAAA;AAAA,SAAA;GAAAH,gBACPf,SAAO;IAACmB,OAAO,IAAIR;IAAWO,UAAA;IAAA,CAAA;GAC9BpB,IAAI;GAAsDiB,gBAC1DhB,MAAI;IAAA,IAACqB,OAAI;AAAA,YAAE,CAAC,CAACN,QAAQO,YAAYC;;IAAI,IAAAJ,WAAA;AAAA,YAAAH,gBACnCd,MAAI;MAAA,IACHsB,OAAI;AAAA,cAAE,iCAAiCT,QAAQO,YAAYC;;MAAM,IACjEE,QAAK;AAAA,cAAEV,QAAQO,YAAYC;;MAAI,CAAA;;IAAA,CAAA;GAGlCxB,IAAI;GAAuFiB,gBAC3FZ,SAAO,EAAA,CAAA;GAAAY,gBACPf,SAAO;IAACmB,OAAO,IAAIR;IAAWO,UAAA;IAAA,CAAA;GAAAH,gBAC9BZ,SAAO,EAAA,CAAA;GACPL,IAAI;GAAwSiB,gBAC5SZ,SAAO,EAAA,CAAA;GAAAY,gBACPT,eAAa,EAAA,IACZmB,OAAI;AAAA,WACFb,YACIc,eAAe,CAChBC,QACCC,aACEA,SAASC,iBAAiB,KAAK,0BAClC,CACAC,MAAMC,GAAGC,MACRD,EAAEF,iBAAiB,CAACI,cAAcD,EAAEH,iBAAiB,CACvD,CAAC,CACAK,KAAIC,uBAAsB;AACzB,YAAO;MACLb,MAAMa,mBAAmBN,iBAAiB,CAACO,MAAM;MACjDC,cAAcF,mBAAmBG,gBAAgB,IAAI,IAAIF,MAAM;MAC/DG,MAAMrC,cAAciC,mBAAmBK,SAAS,CAAC,CAC9CJ,MAAM,CACNK,WAAW,OAAO,QAAQ;MAC7BC,cAAcP,mBAAmBQ,YAAY,GACzCC,OAAOT,mBAAmBU,iBAAiB,CAAC,EAAEC,SAAS,KAAI,GACzDX,mBAAmBU,iBAAiB,GACpC,KAAKV,mBAAmBU,iBAAiB,CAAA,MAC3C;MACJE,UAAUZ,mBAAmBa,iBAAiB,GAAG,KAAK;MACvD;MACD,IAAI,EAAE;MAAA,CAAA;GAAA;IAAA,CAAA,CAAA"}
@@ -1,23 +0,0 @@
1
- import { Children } from "@alloy-js/core";
2
- import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
3
- import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
4
- import { InterfaceDeclarationProps } from "@powerlines/plugin-alloy/typescript/components/interface-declaration";
5
-
6
- //#region src/components/env-builtin.d.ts
7
-
8
- /**
9
- * Generates the environment configuration typescript definition for the Powerlines project.
10
- */
11
- declare function EnvTypeDefinition(props: Omit<InterfaceDeclarationProps, "name">): Children;
12
- interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
13
- defaultConfig?: Children;
14
- reflection: ReflectionClass<any>;
15
- }
16
- /**
17
- * Generates the environment configuration module for the Powerlines project.
18
- */
19
- declare function EnvBuiltin(props: EnvBuiltinProps): Children;
20
- declare type __ΩEnvBuiltinProps = any[];
21
- //#endregion
22
- export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps };
23
- //# sourceMappingURL=env-builtin.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env-builtin.d.cts","names":[],"sources":["../../src/components/env-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAqEA;AACc,iBADE,iBAAA,CACF,KAAA,EAAL,IAAK,CAAA,yBAAA,EAAA,MAAA,CAAA,CAAA,EAAkC,QAAlC;AAAL,UAkLQ,eAAA,SAAwB,IAlLhC,CAkLqC,gBAlLrC,EAAA,IAAA,CAAA,CAAA;EAAuC,aAAA,CAAA,EAmL9B,QAnL8B;EAAA,UAAA,EAoLlC,eApLkC,CAAA,GAAA,CAAA;AAkLhD;;;;AAAyC,iBAYzB,UAAA,CAZyB,KAAA,EAYP,eAZO,CAAA,EAYQ,QAZR;AAAI,kCAAA,GAAA,EAAA"}
@@ -1,23 +0,0 @@
1
- import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
2
- import { Children } from "@alloy-js/core";
3
- import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
4
- import { InterfaceDeclarationProps } from "@powerlines/plugin-alloy/typescript/components/interface-declaration";
5
-
6
- //#region src/components/env-builtin.d.ts
7
-
8
- /**
9
- * Generates the environment configuration typescript definition for the Powerlines project.
10
- */
11
- declare function EnvTypeDefinition(props: Omit<InterfaceDeclarationProps, "name">): Children;
12
- interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
13
- defaultConfig?: Children;
14
- reflection: ReflectionClass<any>;
15
- }
16
- /**
17
- * Generates the environment configuration module for the Powerlines project.
18
- */
19
- declare function EnvBuiltin(props: EnvBuiltinProps): Children;
20
- declare type __ΩEnvBuiltinProps = any[];
21
- //#endregion
22
- export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps };
23
- //# sourceMappingURL=env-builtin.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env-builtin.d.mts","names":[],"sources":["../../src/components/env-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAqEA;AACc,iBADE,iBAAA,CACF,KAAA,EAAL,IAAK,CAAA,yBAAA,EAAA,MAAA,CAAA,CAAA,EAAkC,QAAlC;AAAL,UAkLQ,eAAA,SAAwB,IAlLhC,CAkLqC,gBAlLrC,EAAA,IAAA,CAAA,CAAA;EAAuC,aAAA,CAAA,EAmL9B,QAnL8B;EAAA,UAAA,EAoLlC,eApLkC,CAAA,GAAA,CAAA;AAkLhD;;;;AAAyC,iBAYzB,UAAA,CAZyB,KAAA,EAYP,eAZO,CAAA,EAYQ,QAZR;AAAI,kCAAA,GAAA,EAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"env-builtin.mjs","names":["code","computed","For","Show","splitProps","ClassDeclaration","ClassMethod","ElseIfClause","FunctionDeclaration","IfStatement","NewExpression","TypeDeclaration","VarDeclaration","ReflectionClass","ReflectionKind","Spacing","usePowerlines","refkey","BuiltinFile","InterfaceDeclaration","ObjectDeclaration","TSDoc","TSDocExample","TSDocLink","TSDocParam","TSDocRemarks","TSDocReturns","TSDocThrows","titleCase","defu","loadEnvFromContext","EnvTypeDefinition","props","defaultValue","reflection","context","_$createComponent","name","heading","children","config","env","prefix","map","replace","join","ConfigPropertyConditional","sort","a","b","startsWith","localeCompare","toLowerCase","ConfigPropertyGet","property","index","condition","getNameAsString","when","_$memo","getAlias","length","each","joiner","alias","ConfigPropertySet","createEnvRefkey","envRefkey","envSerializerRefkey","EnvBuiltin","defaultConfig","rest","process","envInstance","result","kind","objectLiteral","description","types","reflectionGetProperties","getProperties","filter","isIgnored","reflectionSetProperties","isReadonly","_$mergeProps","id","imports","Boolean","value","_$createIntrinsic","type","doc","initializer","args","target","entryPath","async","parameters","optional","default","returnType","ender"],"sources":["../../src/components/env-builtin.tsx"],"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 {\n Children,\n code,\n computed,\n For,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n ClassDeclaration,\n ClassMethod,\n ElseIfClause,\n FunctionDeclaration,\n IfStatement,\n NewExpression,\n TypeDeclaration,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport {\n ReflectionClass,\n ReflectionKind,\n ReflectionProperty\n} from \"@powerlines/deepkit/vendor/type\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport { refkey } from \"@powerlines/plugin-alloy/helpers/refkey\";\nimport { ComponentProps } from \"@powerlines/plugin-alloy/types/components\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport type { InterfaceDeclarationProps } from \"@powerlines/plugin-alloy/typescript/components/interface-declaration\";\nimport { InterfaceDeclaration } from \"@powerlines/plugin-alloy/typescript/components/interface-declaration\";\nimport { ObjectDeclaration } from \"@powerlines/plugin-alloy/typescript/components/object-declaration\";\nimport {\n TSDoc,\n TSDocExample,\n TSDocLink,\n TSDocParam,\n TSDocRemarks,\n TSDocReturns,\n TSDocThrows\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport defu from \"defu\";\nimport { loadEnvFromContext } from \"../helpers/load\";\nimport { EnvPluginContext } from \"../types/plugin\";\n\n/**\n * Generates the environment configuration typescript definition for the Powerlines project.\n */\nexport function EnvTypeDefinition(\n props: Omit<InterfaceDeclarationProps, \"name\">\n) {\n const [{ defaultValue, reflection }] = splitProps(props, [\n \"defaultValue\",\n \"reflection\"\n ]);\n\n const context = usePowerlines<EnvPluginContext>();\n\n return (\n <>\n <InterfaceDeclaration\n name=\" EnvBase\"\n defaultValue={defaultValue}\n reflection={reflection}\n export={true}\n />\n <Spacing />\n <TSDoc heading=\"The environment configuration object with prefixed keys.\">\n <TSDocRemarks>\n {`The \\`Env\\` type extends the \\`EnvBase\\` interface by including additional keys that are prefixed according to the project's configuration. This allows for flexibility in accessing environment variables with different naming conventions.`}\n </TSDocRemarks>\n </TSDoc>\n <TypeDeclaration name=\"Env\" export={true}>\n {code` {\n [Key in keyof EnvBase as Key ${context.config.env.prefix\n .map(prefix => `| \\`${prefix.replace(/_$/g, \"\")}_\\${Key}\\``)\n .join(\" \")}]: EnvBase[Key];\n}\n`}\n </TypeDeclaration>\n <Spacing />\n </>\n );\n}\n\ninterface ConfigPropertyConditionalProps extends ComponentProps {\n context: EnvPluginContext;\n name: string;\n}\n\nfunction ConfigPropertyConditional(props: ConfigPropertyConditionalProps) {\n const [{ context, name }] = splitProps(props, [\"context\", \"name\"]);\n\n return code`propertyName === \"${name}\" || propertyName.replace(/^(${context.config.env.prefix\n .sort((a, b) =>\n a.startsWith(b) ? -1 : b.startsWith(a) ? 1 : a.localeCompare(b)\n )\n .map(prefix => `${prefix.replace(/_$/, \"\")}_`)\n .join(\"|\")})/g, \"\").toLowerCase().replace(/[\\\\s\\\\-_]+/g, \"\") === \"${name\n .toLowerCase()\n .replace(/[\\s\\-_]+/g, \"\")}\"`;\n}\n\ninterface ConfigPropertyProps extends ComponentProps {\n index: number;\n context: EnvPluginContext;\n property: ReflectionProperty;\n}\n\nfunction ConfigPropertyGet(props: ConfigPropertyProps) {\n const [{ context, property, index }] = splitProps(props, [\n \"context\",\n \"property\",\n \"index\"\n ]);\n\n return (\n <>\n {index === 0 ? (\n <IfStatement\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`return target[\"${property.getNameAsString()}\"];`}\n </IfStatement>\n ) : (\n <ElseIfClause\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`return target[\"${property.getNameAsString()}\"];`}\n </ElseIfClause>\n )}\n </>\n );\n}\n\nfunction ConfigPropertySet(props: ConfigPropertyProps) {\n const [{ context, property, index }] = splitProps(props, [\n \"context\",\n \"property\",\n \"index\"\n ]);\n\n return (\n <>\n {index === 0 ? (\n <IfStatement\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`\n target[\"${property.getNameAsString()}\"] = newValue;\n return true;\n`}\n </IfStatement>\n ) : (\n <ElseIfClause\n condition={\n <>\n <ConfigPropertyConditional\n name={property.getNameAsString()}\n context={context}\n />\n <Show\n when={property.getAlias() && property.getAlias().length > 0}>\n {code` || `}\n <For each={property.getAlias()} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`\n target[\"${property.getNameAsString()}\"] = newValue;\n return true;\n`}\n </ElseIfClause>\n )}\n </>\n );\n}\n\nexport interface EnvBuiltinProps extends Omit<BuiltinFileProps, \"id\"> {\n defaultConfig?: Children;\n reflection: ReflectionClass<any>;\n}\n\nconst createEnvRefkey = refkey(\"createEnv\");\nconst envRefkey = refkey(\"env\");\nconst envSerializerRefkey = refkey(\"EnvSerializer\");\n\n/**\n * Generates the environment configuration module for the Powerlines project.\n */\nexport function EnvBuiltin(props: EnvBuiltinProps) {\n const [{ defaultConfig, reflection, children }, rest] = splitProps(props, [\n \"defaultConfig\",\n \"reflection\",\n \"children\"\n ]);\n\n const context = usePowerlines<EnvPluginContext>();\n const defaultValue = computed(\n () => context && loadEnvFromContext(context, process.env)\n );\n\n const envInstance = computed(() => {\n const result = new ReflectionClass(\n {\n kind: ReflectionKind.objectLiteral,\n description: `The initial environment configuration state for the ${titleCase(\n context?.config?.name\n )} project.`,\n types: []\n },\n reflection\n );\n\n return result;\n });\n\n const reflectionGetProperties = computed(\n () =>\n reflection\n ?.getProperties()\n .filter(property => !property.isIgnored())\n .sort((a, b) =>\n a.getNameAsString().localeCompare(b.getNameAsString())\n ) ?? []\n );\n const reflectionSetProperties = computed(\n () =>\n reflection\n ?.getProperties()\n .filter(property => !property.isIgnored() && !property.isReadonly())\n .sort((a, b) =>\n a.getNameAsString().localeCompare(b.getNameAsString())\n ) ?? []\n );\n\n return (\n <BuiltinFile\n id=\"env\"\n description=\"The environment configuration module provides an interface to define environment configuration parameters.\"\n {...rest}\n imports={defu(\n {\n \"@powerlines/deepkit/vendor/type\": [\n \"stringify\",\n \"serializer\",\n \"serializeFunction\",\n \"deserializeFunction\",\n \"ReflectionKind\",\n \"Serializer\",\n \"TemplateState\",\n \"Type\",\n \"TypeProperty\",\n \"TypePropertySignature\"\n ]\n },\n rest.imports ?? {}\n )}>\n <Show when={Boolean(reflection)}>\n <EnvTypeDefinition\n defaultValue={defaultValue.value}\n reflection={reflection}\n />\n <hbr />\n <hbr />\n </Show>\n\n <ObjectDeclaration\n name=\"initialEnv\"\n type=\"Partial<EnvBase>\"\n defaultValue={defaultValue}\n reflection={envInstance}\n export={true}\n const={true}\n doc=\"The initial environment configuration object values for the runtime.\"\n />\n <Spacing />\n\n <TSDoc heading=\"The environment configuration serializer for the Powerlines application.\">\n <TSDocLink>\n {`https://deepkit.io/docs/serialization/serializers`}\n </TSDocLink>\n <TSDocLink>\n {`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}\n </TSDocLink>\n <TSDocRemarks>\n {`This serializer is used to serialize and deserialize the Powerlines environment configuration.`}\n </TSDocRemarks>\n </TSDoc>\n <ClassDeclaration\n refkey={envSerializerRefkey}\n name=\"EnvSerializer\"\n extends=\"Serializer\"\n export={true}>\n <ClassMethod\n name=\"constructor\"\n public={true}\n doc=\"Initializes a new instance of the `EnvSerializer` class.\">\n {code`super(\"env\");\n\n this.deserializeRegistry.register(\n ReflectionKind.boolean,\n (type: Type, state: TemplateState) => {\n state.addSetter(\n \\`typeof \\${state.accessor.toString()} !== \"boolean\" ? \\${state.accessor.toString()} === 1 || \\${state.accessor.toString()} === \"1\" || \\${state.accessor.toString()}.toLowerCase() === \"t\" || \\${state.accessor.toString()}.toLowerCase() === \"true\" || \\${state.accessor.toString()}.toLowerCase() === \"y\" || \\${state.accessor.toString()}.toLowerCase() === \"yes\" : \\${state.accessor.toString()}\\`\n );\n }\n ); `}\n </ClassMethod>\n </ClassDeclaration>\n <Spacing />\n\n <TSDoc heading=\"A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.\">\n <TSDocLink>\n {`https://deepkit.io/docs/serialization/serializers`}\n </TSDocLink>\n <TSDocLink>\n {`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}\n </TSDocLink>\n <TSDocRemarks>\n {`This serializer is used to serialize and deserialize the Powerlines environment configuration.`}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n name=\"envSerializer\"\n export={false}\n const={true}\n initializer={<NewExpression args={[]} target=\"EnvSerializer\" />}\n />\n <Spacing />\n\n <TSDoc heading=\"Serialize a environment configuration object to JSON data objects (not a JSON string).\">\n <TSDocRemarks>\n {`The resulting JSON object can be stringified using \\`JSON.stringify()\\`.`}\n </TSDocRemarks>\n <TSDocExample>{`const json = serializeEnv(env);`}</TSDocExample>\n <TSDocThrows>\n {`ValidationError when serialization or validation fails.`}\n </TSDocThrows>\n </TSDoc>\n <VarDeclaration\n name=\"serializeEnv\"\n export={true}\n const={true}\n initializer={\"serializeFunction<EnvBase>(envSerializer)\"}\n />\n <Spacing />\n\n <TSDoc heading=\"Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.\">\n <TSDocRemarks>\n {`Types that are already correct will be used as-is.`}\n </TSDocRemarks>\n <TSDocExample>{`const env = deserializeEnv(json);`}</TSDocExample>\n <TSDocThrows>\n {`ValidationError when deserialization fails.`}\n </TSDocThrows>\n </TSDoc>\n <VarDeclaration\n name=\"deserializeEnv\"\n export={true}\n const={true}\n initializer=\"deserializeFunction<EnvBase>(envSerializer)\"\n />\n <Spacing />\n\n <TSDoc heading=\"Initializes the Powerlines environment configuration module.\">\n <TSDocRemarks>\n {`This function initializes the Powerlines environment configuration object.`}\n </TSDocRemarks>\n <TSDocParam name=\"environmentConfig\">\n {`The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`}\n </TSDocParam>\n <TSDocReturns>\n {`The initialized Powerlines configuration object.`}\n </TSDocReturns>\n </TSDoc>\n <Show when={Boolean(context?.entryPath)}>\n <FunctionDeclaration\n refkey={createEnvRefkey}\n async={false}\n export={true}\n name=\"createEnv\"\n parameters={[\n {\n name: \"environmentConfig\",\n type: `Partial<Env>`,\n optional: false,\n default: \"{}\"\n }\n ]}\n returnType=\"Env\">\n {code`\n return new Proxy<Env>(\n deserializeEnv({\n ...initialEnv,\n ...environmentConfig\n }) as Env,\n {\n get: (target: EnvBase, propertyName: string) => { `}\n <hbr />\n\n <For each={reflectionGetProperties}>\n {(property: ReflectionProperty, index: number) => (\n <ConfigPropertyGet\n index={index}\n context={context}\n property={property}\n />\n )}\n </For>\n {code`\n return undefined;\n }, `}\n\n <Spacing />\n {code` set: (target: EnvBase, propertyName: string, newValue: any) => { `}\n <hbr />\n\n <For each={reflectionSetProperties} ender={code` else `}>\n {(property: ReflectionProperty, index: number) => (\n <ConfigPropertySet\n index={index}\n context={context}\n property={property}\n />\n )}\n </For>\n\n <hbr />\n {code`return false;\n }\n }\n );\n`}\n </FunctionDeclaration>\n </Show>\n <Spacing />\n <hbr />\n\n <TSDoc heading=\"The environment configuration object.\">\n <TSDocRemarks>\n {`This object provides access to the environment configuration parameters in the application runtime.`}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n refkey={envRefkey}\n name=\"env\"\n type=\"Env\"\n export={true}\n const={true}\n initializer={\n <>{code`createEnv(${defaultConfig || \"{}\"} as Partial<Env>);`}</>\n }\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isCI\"\n doc=\"Detect if the application is running in a continuous integration (CI) environment.\"\n initializer={code`Boolean(\n env.CI ||\n env.RUN_ID ||\n env.AGOLA_GIT_REF ||\n env.AC_APPCIRCLE ||\n env.APPVEYOR ||\n env.CODEBUILD ||\n env.TF_BUILD ||\n env.bamboo_planKey ||\n env.BITBUCKET_COMMIT ||\n env.BITRISE_IO ||\n env.BUDDY_WORKSPACE_ID ||\n env.BUILDKITE ||\n env.CIRCLECI ||\n env.CIRRUS_CI ||\n env.CF_BUILD_ID ||\n env.CM_BUILD_ID ||\n env.CI_NAME ||\n env.DRONE ||\n env.DSARI ||\n env.EARTHLY_CI ||\n env.EAS_BUILD ||\n env.GERRIT_PROJECT ||\n env.GITEA_ACTIONS ||\n env.GITHUB_ACTIONS ||\n env.GITLAB_CI ||\n env.GOCD ||\n env.BUILDER_OUTPUT ||\n env.HARNESS_BUILD_ID ||\n env.JENKINS_URL ||\n env.LAYERCI ||\n env.MAGNUM ||\n env.NETLIFY ||\n env.NEVERCODE ||\n env.PROW_JOB_ID ||\n env.RELEASE_BUILD_ID ||\n env.RENDER ||\n env.SAILCI ||\n env.HUDSON ||\n env.SCREWDRIVER ||\n env.SEMAPHORE ||\n env.SOURCEHUT ||\n env.STRIDER ||\n env.TASK_ID ||\n env.RUN_ID ||\n env.TEAMCITY_VERSION ||\n env.TRAVIS ||\n env.VELA ||\n env.NOW_BUILDER ||\n env.APPCENTER_BUILD_ID ||\n env.CI_XCODE_PROJECT ||\n env.XCS || false\n );\n `}\n />\n <Spacing />\n\n <TSDoc heading=\"Detect the \\`mode\\` of the current runtime environment.\">\n <TSDocRemarks>\n {code`The \\`mode\\` is determined by the \\`MODE\\` environment variable, or falls back to the \\`NEXT_PUBLIC_VERCEL_ENV\\`, \\`NODE_ENV\\`, or defaults to \\`production\\`. While the value can potentially be any string, it is generally recommended to only allow a value in the following list:\n - \\`production\\`\n - \\`test\\`\n - \\`development\\`\n `}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n export\n const\n name=\"mode\"\n initializer={code`String(env.MODE) || \"production\"; `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isProduction\"\n doc='Detect if the application is running in `\"production\"` mode'\n initializer={code`[\"prd\", \"prod\", \"production\"].includes(mode.toLowerCase()); `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isTest\"\n doc='Detect if the application is running in `\"test\"` mode'\n initializer={code`[\"tst\", \"test\", \"testing\", \"stg\", \"stage\", \"staging\"].includes(mode.toLowerCase()) || env.TEST; `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isDevelopment\"\n doc='Detect if the application is running in `\"development\"` mode'\n initializer={code`[\"dev\", \"development\"].includes(mode.toLowerCase()); `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isDebug\"\n doc=\"Detect if the application is currently being debugged\"\n initializer={code`Boolean(isDevelopment && env.DEBUG); `}\n />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAqEA,SAAgB+B,kBACdC,OACA;CACA,MAAM,CAAC,EAAEC,cAAcC,gBAAgB9B,WAAW4B,OAAO,CACvD,gBACA,aACD,CAAC;CAEF,MAAMG,UAAUnB,eAAiC;AAEjD,QAAA;EAAAoB,gBAEKjB,sBAAoB;GACnBkB,MAAI;GACUJ;GACFC;GAAU,UACd;GAAI,CAAA;EAAAE,gBAEbrB,SAAO,EAAA,CAAA;EAAAqB,gBACPf,OAAK;GAACiB,SAAO;GAAA,IAAAC,WAAA;AAAA,WAAAH,gBACXX,cAAY,EAAAc,UACV,iPAA+O,CAAA;;GAAA,CAAA;EAAAH,gBAGnPzB,iBAAe;GAAC0B,MAAI;GAAA,UAAe;GAAI,IAAAE,WAAA;AAAA,WACrCvC,IAAI;mCACsBmC,QAAQK,OAAOC,IAAIC,OAC/CC,KAAID,WAAU,OAAOA,OAAOE,QAAQ,OAAO,GAAG,CAAA,YAAa,CAC3DC,KAAK,IAAI,CAAA;;;;GAEf,CAAA;EAAAT,gBAEMrB,SAAO,EAAA,CAAA;EAAA;;AAUd,SAAS+B,0BAA0Bd,OAAuC;CACxE,MAAM,CAAC,EAAEG,SAASE,UAAUjC,WAAW4B,OAAO,CAAC,WAAW,OAAO,CAAC;AAElE,QAAOhC,IAAI,qBAAqBqC,KAAI,+BAAgCF,QAAQK,OAAOC,IAAIC,OACpFK,MAAMC,GAAGC,MACRD,EAAEE,WAAWD,EAAE,GAAG,KAAKA,EAAEC,WAAWF,EAAE,GAAG,IAAIA,EAAEG,cAAcF,EAC/D,CAAC,CACAN,KAAID,WAAU,GAAGA,OAAOE,QAAQ,MAAM,GAAG,CAAA,GAAI,CAC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,SAAA;KAGbyB,MAAI;KACJuD,KAAG;KACHC,aAAa7F,IAAI;KAAuC,CAAA;IAAAoC,gBAEzDrB,SAAO,EAAA,CAAA;IAAAqB,gBACPjC,MAAI;KAAA,IAACuD,OAAI;AAAA,aAAE8B,QAAQjD,SAAS;;KAAGA;KAAQ,CAAA;IAAA;;EAAA,CAAA,CAAA"}
@@ -1,3 +0,0 @@
1
- import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./docs.cjs";
2
- import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps } from "./env-builtin.cjs";
3
- export { EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvTypeDefinition, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps };
@@ -1,3 +0,0 @@
1
- import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./docs.mjs";
2
- import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps } from "./env-builtin.mjs";
3
- export { EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvTypeDefinition, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps };
@@ -1,15 +0,0 @@
1
- import { UnresolvedContext } from "powerlines";
2
- import * as automd0 from "automd";
3
-
4
- //#region src/helpers/automd-generator.d.ts
5
-
6
- /**
7
- * AutoMD generator to generate environment variable documentation
8
- *
9
- * @param context - The generator context.
10
- * @returns The generated documentation content.
11
- */
12
- declare const env: (context: UnresolvedContext) => automd0.Generator;
13
- //#endregion
14
- export { env };
15
- //# sourceMappingURL=automd-generator.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA4BA;;;cAAa,eAAgB,sBAAiB,OAAA,CAAA"}