@powerlines/plugin-env 0.15.13 → 0.15.14

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 (267) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +4 -0
  2. package/dist/_virtual/rolldown_runtime.mjs +33 -0
  3. package/dist/babel/plugin.cjs +16 -16
  4. package/dist/babel/plugin.d.mts +2 -2
  5. package/dist/babel/plugin.mjs +7 -7
  6. package/dist/components/docs.cjs +8 -8
  7. package/dist/components/docs.mjs +5 -5
  8. package/dist/components/env.cjs +38 -39
  9. package/dist/components/env.d.mts +2 -2
  10. package/dist/components/env.mjs +11 -11
  11. package/dist/helpers/automd-generator.cjs +4 -4
  12. package/dist/helpers/automd-generator.d.mts +1 -1
  13. package/dist/helpers/automd-generator.mjs +3 -3
  14. package/dist/helpers/load.cjs +12 -13
  15. package/dist/helpers/load.d.mts +2 -2
  16. package/dist/helpers/load.mjs +10 -10
  17. package/dist/helpers/persistence.cjs +23 -23
  18. package/dist/helpers/persistence.d.mts +1 -1
  19. package/dist/helpers/persistence.mjs +7 -7
  20. package/dist/helpers/reflect.cjs +9 -9
  21. package/dist/helpers/reflect.mjs +5 -5
  22. package/dist/helpers/source-file-env.cjs +1 -1
  23. package/dist/helpers/source-file-env.mjs +1 -1
  24. package/dist/index.cjs +28 -26
  25. package/dist/index.d.mts +1 -1
  26. package/dist/index.mjs +25 -25
  27. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.cjs +31 -0
  28. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.mjs +31 -0
  29. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.cjs +8 -0
  30. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.mjs +7 -0
  31. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +6 -0
  32. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +5 -0
  33. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
  34. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
  35. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
  36. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +6 -0
  37. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
  38. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
  39. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +13 -0
  40. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +13 -0
  41. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +13 -0
  42. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +13 -0
  43. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
  44. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +11 -0
  45. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +11 -0
  46. package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +12 -0
  47. package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.cjs +10 -0
  48. package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.mjs +10 -0
  49. package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.cjs +13 -0
  50. package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.mjs +13 -0
  51. package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.cjs +49 -0
  52. package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs +49 -0
  53. package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.cjs +9 -0
  54. package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.mjs +5 -0
  55. package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.cjs +8 -0
  56. package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.mjs +7 -0
  57. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +346 -0
  58. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +346 -0
  59. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +786 -0
  60. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +786 -0
  61. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +3 -0
  62. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +3 -0
  63. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +23 -0
  64. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +22 -0
  65. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +405 -0
  66. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +404 -0
  67. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +657 -0
  68. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +657 -0
  69. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +1054 -0
  70. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +1054 -0
  71. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +43 -0
  72. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +42 -0
  73. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
  74. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +45 -0
  75. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +288 -0
  76. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +285 -0
  77. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +71 -0
  78. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +68 -0
  79. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
  80. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1007 -0
  81. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +23 -0
  82. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +13 -0
  83. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +2698 -0
  84. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2685 -0
  85. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +4457 -0
  86. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +4454 -0
  87. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +29 -0
  88. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +29 -0
  89. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +181 -0
  90. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +176 -0
  91. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +22 -0
  92. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +17 -0
  93. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +3967 -0
  94. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +3962 -0
  95. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +11768 -0
  96. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +11763 -0
  97. 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
  98. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +20 -0
  99. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +20 -0
  100. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +17 -0
  101. package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.cjs +174 -0
  102. package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.mjs +172 -0
  103. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +13 -0
  104. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +12 -0
  105. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +3 -0
  106. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +3 -0
  107. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +145 -0
  108. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +138 -0
  109. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +127 -0
  110. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +125 -0
  111. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +138 -0
  112. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +136 -0
  113. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +629 -0
  114. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +627 -0
  115. package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/components.d.mts +1 -1
  116. package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-file.d.mts +1 -1
  117. package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-interface.d.mts +1 -1
  118. package/dist/{powerlines → packages/powerlines}/src/types/build.d.mts +6 -6
  119. package/dist/{powerlines → packages/powerlines}/src/types/config.d.mts +1 -2
  120. package/dist/{powerlines → packages/powerlines}/src/types/tsconfig.d.mts +1 -1
  121. package/dist/types/plugin.cjs +19 -18
  122. package/dist/types/plugin.d.mts +6 -6
  123. package/dist/types/plugin.mjs +4 -4
  124. package/dist/types/runtime.cjs +3 -2
  125. package/dist/types/runtime.d.mts +1 -1
  126. package/dist/types/runtime.mjs +1 -1
  127. package/package.json +10 -10
  128. package/dist/deepkit/schemas/reflection.cjs +0 -5368
  129. package/dist/deepkit/schemas/reflection.mjs +0 -5365
  130. package/dist/deepkit/schemas/reflection2.cjs +0 -4112
  131. package/dist/deepkit/schemas/reflection2.mjs +0 -4110
  132. package/dist/deepkit/src/capnp.cjs +0 -1692
  133. package/dist/deepkit/src/capnp.mjs +0 -1690
  134. package/dist/deepkit/src/esbuild-plugin.cjs +0 -99
  135. package/dist/deepkit/src/esbuild-plugin.mjs +0 -98
  136. package/dist/deepkit/src/reflect-type.cjs +0 -40
  137. package/dist/deepkit/src/reflect-type.mjs +0 -38
  138. package/dist/deepkit/src/resolve-reflections.cjs +0 -23
  139. package/dist/deepkit/src/resolve-reflections.mjs +0 -22
  140. package/dist/deepkit/src/transformer.cjs +0 -92
  141. package/dist/deepkit/src/transformer.mjs +0 -89
  142. package/dist/deepkit/src/transpile.cjs +0 -39
  143. package/dist/deepkit/src/transpile.mjs +0 -37
  144. package/dist/deepkit/src/types.cjs +0 -22
  145. package/dist/deepkit/src/types.mjs +0 -21
  146. package/dist/deepkit/src/utilities.cjs +0 -182
  147. package/dist/deepkit/src/utilities.mjs +0 -181
  148. package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
  149. package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
  150. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
  151. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
  152. package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
  153. package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
  154. package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -136
  155. package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -128
  156. package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
  157. package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
  158. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -110
  159. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -101
  160. package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -23
  161. package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -22
  162. package/dist/plugin-alloy/src/index.cjs +0 -106
  163. package/dist/plugin-alloy/src/index.mjs +0 -104
  164. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -115
  165. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -114
  166. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -39
  167. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -38
  168. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -72
  169. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -71
  170. package/dist/plugin-alloy/src/types/components.cjs +0 -22
  171. package/dist/plugin-alloy/src/types/components.mjs +0 -21
  172. package/dist/plugin-alloy/src/types/plugin.cjs +0 -55
  173. package/dist/plugin-alloy/src/types/plugin.mjs +0 -52
  174. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
  175. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
  176. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
  177. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
  178. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
  179. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
  180. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -212
  181. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -209
  182. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
  183. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
  184. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
  185. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
  186. package/dist/plugin-automd/src/index.cjs +0 -127
  187. package/dist/plugin-automd/src/index.mjs +0 -124
  188. package/dist/plugin-automd/src/types/plugin.cjs +0 -47
  189. package/dist/plugin-automd/src/types/plugin.mjs +0 -47
  190. package/dist/plugin-automd/src/types/toc.cjs +0 -26
  191. package/dist/plugin-automd/src/types/toc.mjs +0 -25
  192. package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -74
  193. package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -70
  194. package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -71
  195. package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -69
  196. package/dist/plugin-babel/src/helpers/filters.cjs +0 -158
  197. package/dist/plugin-babel/src/helpers/filters.mjs +0 -154
  198. package/dist/plugin-babel/src/helpers/index.cjs +0 -5
  199. package/dist/plugin-babel/src/helpers/index.mjs +0 -7
  200. package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -200
  201. package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -192
  202. package/dist/plugin-babel/src/helpers/options.cjs +0 -74
  203. package/dist/plugin-babel/src/helpers/options.mjs +0 -71
  204. package/dist/plugin-babel/src/index.cjs +0 -131
  205. package/dist/plugin-babel/src/index.mjs +0 -129
  206. package/dist/plugin-babel/src/types/plugin.cjs +0 -42
  207. package/dist/plugin-babel/src/types/plugin.mjs +0 -39
  208. package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -137
  209. package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -135
  210. package/dist/powerlines/src/lib/build/esbuild.cjs +0 -161
  211. package/dist/powerlines/src/lib/build/esbuild.mjs +0 -159
  212. package/dist/powerlines/src/lib/entry.cjs +0 -203
  213. package/dist/powerlines/src/lib/entry.mjs +0 -201
  214. package/dist/powerlines/src/lib/logger.cjs +0 -108
  215. package/dist/powerlines/src/lib/logger.mjs +0 -106
  216. package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -67
  217. package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -66
  218. package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -49
  219. package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -48
  220. package/dist/powerlines/src/plugin-utils/paths.cjs +0 -46
  221. package/dist/powerlines/src/plugin-utils/paths.mjs +0 -45
  222. package/dist/powerlines/src/types/api.cjs +0 -62
  223. package/dist/powerlines/src/types/api.mjs +0 -62
  224. package/dist/powerlines/src/types/babel.cjs +0 -156
  225. package/dist/powerlines/src/types/babel.mjs +0 -147
  226. package/dist/powerlines/src/types/build.cjs +0 -127
  227. package/dist/powerlines/src/types/build.mjs +0 -121
  228. package/dist/powerlines/src/types/commands.cjs +0 -16
  229. package/dist/powerlines/src/types/commands.mjs +0 -15
  230. package/dist/powerlines/src/types/config.cjs +0 -413
  231. package/dist/powerlines/src/types/config.mjs +0 -391
  232. package/dist/powerlines/src/types/context.cjs +0 -381
  233. package/dist/powerlines/src/types/context.mjs +0 -364
  234. package/dist/powerlines/src/types/fs.cjs +0 -78
  235. package/dist/powerlines/src/types/fs.mjs +0 -75
  236. package/dist/powerlines/src/types/hooks.cjs +0 -71
  237. package/dist/powerlines/src/types/hooks.mjs +0 -68
  238. package/dist/powerlines/src/types/index.cjs +0 -11
  239. package/dist/powerlines/src/types/index.mjs +0 -13
  240. package/dist/powerlines/src/types/plugin.cjs +0 -184
  241. package/dist/powerlines/src/types/plugin.mjs +0 -178
  242. package/dist/powerlines/src/types/resolved.cjs +0 -153
  243. package/dist/powerlines/src/types/resolved.mjs +0 -148
  244. package/dist/powerlines/src/types/unplugin.cjs +0 -47
  245. package/dist/powerlines/src/types/unplugin.mjs +0 -46
  246. /package/dist/{deepkit → packages/deepkit}/schemas/reflection.d.mts +0 -0
  247. /package/dist/{deepkit → packages/deepkit}/src/types.d.mts +0 -0
  248. /package/dist/{plugin-alloy → packages/plugin-alloy}/src/core/components/source-file.d.mts +0 -0
  249. /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/index.d.mts +0 -0
  250. /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/plugin.d.mts +0 -0
  251. /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/builtin-file.d.mts +0 -0
  252. /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/tsdoc.d.mts +0 -0
  253. /package/dist/{plugin-automd → packages/plugin-automd}/src/types/plugin.d.mts +0 -0
  254. /package/dist/{plugin-automd → packages/plugin-automd}/src/types/toc.d.mts +0 -0
  255. /package/dist/{plugin-babel → packages/plugin-babel}/src/types/index.d.mts +0 -0
  256. /package/dist/{plugin-babel → packages/plugin-babel}/src/types/plugin.d.mts +0 -0
  257. /package/dist/{powerlines → packages/powerlines}/src/internal/helpers/hooks.d.mts +0 -0
  258. /package/dist/{powerlines → packages/powerlines}/src/types/api.d.mts +0 -0
  259. /package/dist/{powerlines → packages/powerlines}/src/types/babel.d.mts +0 -0
  260. /package/dist/{powerlines → packages/powerlines}/src/types/commands.d.mts +0 -0
  261. /package/dist/{powerlines → packages/powerlines}/src/types/context.d.mts +0 -0
  262. /package/dist/{powerlines → packages/powerlines}/src/types/fs.d.mts +0 -0
  263. /package/dist/{powerlines → packages/powerlines}/src/types/hooks.d.mts +0 -0
  264. /package/dist/{powerlines → packages/powerlines}/src/types/index.d.mts +0 -0
  265. /package/dist/{powerlines → packages/powerlines}/src/types/plugin.d.mts +0 -0
  266. /package/dist/{powerlines → packages/powerlines}/src/types/resolved.d.mts +0 -0
  267. /package/dist/{powerlines → packages/powerlines}/src/types/unplugin.d.mts +0 -0
@@ -1,203 +0,0 @@
1
- const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
2
- const require_resolved = require('../types/resolved.cjs');
3
- const require_paths = require('../plugin-utils/paths.cjs');
4
- let __stryke_path_join_paths = require("@stryke/path/join-paths");
5
- let __stryke_convert_parse_type_definition = require("@stryke/convert/parse-type-definition");
6
- let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
7
- let __stryke_path_replace = require("@stryke/path/replace");
8
- let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
9
- let __stryke_convert_to_array = require("@stryke/convert/to-array");
10
- let __stryke_fs_is_file = require("@stryke/fs/is-file");
11
- let __stryke_fs_list_files = require("@stryke/fs/list-files");
12
- let __stryke_hash_murmurhash = require("@stryke/hash/murmurhash");
13
- let __stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
14
- let __stryke_path_append = require("@stryke/path/append");
15
-
16
- //#region ../powerlines/src/lib/entry.ts
17
- function __assignType(fn, args) {
18
- fn.__type = args;
19
- return fn;
20
- }
21
- function resolveEntryInputFile(context, typeDefinition) {
22
- return (0, __stryke_path_replace.replacePath)(typeDefinition.file, (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, context.config.projectRoot));
23
- }
24
- resolveEntryInputFile.__type = [
25
- "Context",
26
- "context",
27
- "typeDefinition",
28
- "resolveEntryInputFile",
29
- "P\"w!2\"!2#&/$"
30
- ];
31
- function resolveEntryInput(context, typeDefinition) {
32
- return {
33
- file: resolveEntryInputFile(context, typeDefinition),
34
- name: typeDefinition.name
35
- };
36
- }
37
- resolveEntryInput.__type = [
38
- "Context",
39
- "context",
40
- "typeDefinition",
41
- "resolveEntryInput",
42
- "P\"w!2\"!2#!/$"
43
- ];
44
- function resolveEntryOutput(context, typeDefinition) {
45
- return (0, __stryke_path_replace.replaceExtension)((0, __stryke_path_replace.replacePath)((0, __stryke_path_replace.replacePath)((0, __stryke_path_replace.replacePath)((0, __stryke_path_replace.replacePath)((0, __stryke_path_replace.replacePath)(typeDefinition.file, (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, context.config.sourceRoot)), (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, context.config.projectRoot)), context.config.sourceRoot), context.config.projectRoot), (0, __stryke_path_replace.replacePath)(context.config.sourceRoot, context.config.projectRoot)));
46
- }
47
- resolveEntryOutput.__type = [
48
- "Context",
49
- "context",
50
- "typeDefinition",
51
- "resolveEntryOutput",
52
- "P\"w!2\"!2#&/$"
53
- ];
54
- function resolveEntry(context, typeDefinition) {
55
- const input = resolveEntryInput(context, typeDefinition);
56
- return {
57
- ...input,
58
- input,
59
- output: resolveEntryOutput(context, typeDefinition)
60
- };
61
- }
62
- resolveEntry.__type = [
63
- "Context",
64
- "context",
65
- "typeDefinition",
66
- () => require_resolved.__ΩResolvedEntryTypeDefinition,
67
- "resolveEntry",
68
- "P\"w!2\"!2#n$/%"
69
- ];
70
- /**
71
- * Resolves multiple type definitions into their corresponding resolved entry type definitions.
72
- *
73
- * @param context - The current context
74
- * @param typeDefinitions - The type definitions to resolve.
75
- * @returns A promise that resolves to an array of resolved entry type definitions.
76
- */
77
- async function resolveEntries(context, typeDefinitions) {
78
- return (await Promise.all(typeDefinitions.map(__assignType(async (typeDefinition) => {
79
- const parsed = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(typeDefinition);
80
- const filePath = (0, __stryke_path_append.appendPath)(parsed.file, context.config.projectRoot);
81
- if ((0, __stryke_fs_is_file.isFile)(filePath)) return resolveEntry(context, {
82
- file: (0, __stryke_path_replace.replacePath)(filePath, context.config.projectRoot),
83
- name: parsed.name
84
- });
85
- return (await (0, __stryke_fs_list_files.listFiles)((0, __stryke_path_append.appendPath)(parsed.file, context.config.projectRoot))).map(__assignType((file) => resolveEntry(context, {
86
- file,
87
- name: parsed.name
88
- }), [
89
- "file",
90
- "",
91
- "P\"2!\"/\""
92
- ]));
93
- }, [
94
- "typeDefinition",
95
- "",
96
- "P\"2!\"/\""
97
- ])))).flat().filter(Boolean);
98
- }
99
- resolveEntries.__type = [
100
- "Context",
101
- "context",
102
- "typeDefinitions",
103
- () => require_resolved.__ΩResolvedEntryTypeDefinition,
104
- "resolveEntries",
105
- "Resolves multiple type definitions into their corresponding resolved entry type definitions.",
106
- "P\"w!2\"!F2#n$F`/%?&"
107
- ];
108
- /**
109
- * Resolves multiple type definitions into their corresponding resolved entry type definitions.
110
- *
111
- * @param context - The current context
112
- * @param typeDefinitions - The type definitions to resolve.
113
- * @returns A promise that resolves to an array of resolved entry type definitions.
114
- */
115
- function resolveEntriesSync(context, typeDefinitions) {
116
- return typeDefinitions.map(__assignType((entry) => (0, __stryke_type_checks_is_string.isString)(entry) ? require_paths.replacePathTokens(context, entry) : require_paths.replacePathTokens(context, entry.file), [
117
- "entry",
118
- "",
119
- "P\"2!\"/\""
120
- ])).map(__assignType((typeDefinition) => {
121
- const parsed = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(typeDefinition);
122
- const filePath = (0, __stryke_path_append.appendPath)(parsed.file, context.config.projectRoot);
123
- if ((0, __stryke_fs_is_file.isFile)(filePath)) return resolveEntry(context, {
124
- file: (0, __stryke_path_replace.replacePath)(filePath, context.config.projectRoot),
125
- name: parsed.name
126
- });
127
- return (0, __stryke_fs_list_files.listFilesSync)(filePath).map(__assignType((file) => resolveEntry(context, {
128
- file,
129
- name: parsed.name
130
- }), [
131
- "file",
132
- "",
133
- "P\"2!\"/\""
134
- ]));
135
- }, [
136
- "typeDefinition",
137
- "",
138
- "P\"2!\"/\""
139
- ])).flat().filter(Boolean);
140
- }
141
- resolveEntriesSync.__type = [
142
- "Context",
143
- "context",
144
- "typeDefinitions",
145
- () => require_resolved.__ΩResolvedEntryTypeDefinition,
146
- "resolveEntriesSync",
147
- "Resolves multiple type definitions into their corresponding resolved entry type definitions.",
148
- "P\"w!2\"!F2#n$F/%?&"
149
- ];
150
- /** Resolve a virtual entry point by generating a unique file path in the artifacts directory.
151
- *
152
- * @param context - The current context
153
- * @param typeDefinition - The type definition to resolve.
154
- * @returns The resolved entry type definition with a unique virtual file path.
155
- */
156
- function resolveVirtualEntry(context, typeDefinition) {
157
- const resolved = resolveEntry(context, (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(typeDefinition));
158
- const file = (0, __stryke_path_join_paths.joinPaths)(context.artifactsPath, `entry-${(0, __stryke_hash_murmurhash.murmurhash)({
159
- file: resolved.file,
160
- name: resolved.name
161
- }, { maxLength: 24 }).replaceAll("-", "0").replaceAll("_", "1")}.ts`);
162
- return {
163
- file,
164
- name: resolved.name,
165
- input: {
166
- file,
167
- name: resolved.name
168
- },
169
- output: file
170
- };
171
- }
172
- resolveVirtualEntry.__type = [
173
- "Context",
174
- "context",
175
- "typeDefinition",
176
- () => require_resolved.__ΩResolvedEntryTypeDefinition,
177
- "resolveVirtualEntry",
178
- "P\"w!2\"!2#n$/%"
179
- ];
180
- /**
181
- * Get unique entries from the provided list.
182
- *
183
- * @param entries - The entries to process.
184
- * @returns An array of unique entries (by file path or content hash).
185
- */
186
- function getUniqueEntries(entries = []) {
187
- return (0, __stryke_helpers_get_unique.getUniqueBy)((0, __stryke_convert_to_array.toArray)(entries), __assignType((item) => (0, __stryke_type_checks_is_set_string.isSetString)(item) ? item : (0, __stryke_hash_murmurhash.murmurhash)(item ?? {}, { maxLength: 24 }), [
188
- "item",
189
- "",
190
- "P!2!\"/\""
191
- ]));
192
- }
193
- getUniqueEntries.__type = [
194
- "entries",
195
- () => [],
196
- "getUniqueEntries",
197
- "Get unique entries from the provided list.",
198
- "PP!!FJ2!>\"!F/#?$"
199
- ];
200
-
201
- //#endregion
202
- exports.resolveEntryInputFile = resolveEntryInputFile;
203
- exports.resolveEntryOutput = resolveEntryOutput;
@@ -1,201 +0,0 @@
1
- import { __ΩResolvedEntryTypeDefinition } from "../types/resolved.mjs";
2
- import { replacePathTokens } from "../plugin-utils/paths.mjs";
3
- import { joinPaths } from "@stryke/path/join-paths";
4
- import { parseTypeDefinition } from "@stryke/convert/parse-type-definition";
5
- import { isSetString } from "@stryke/type-checks/is-set-string";
6
- import { replaceExtension, replacePath } from "@stryke/path/replace";
7
- import { isString } from "@stryke/type-checks/is-string";
8
- import { toArray } from "@stryke/convert/to-array";
9
- import { isFile } from "@stryke/fs/is-file";
10
- import { listFiles, listFilesSync } from "@stryke/fs/list-files";
11
- import { murmurhash } from "@stryke/hash/murmurhash";
12
- import { getUniqueBy } from "@stryke/helpers/get-unique";
13
- import { appendPath } from "@stryke/path/append";
14
-
15
- //#region ../powerlines/src/lib/entry.ts
16
- function __assignType(fn, args) {
17
- fn.__type = args;
18
- return fn;
19
- }
20
- function resolveEntryInputFile(context, typeDefinition) {
21
- return replacePath(typeDefinition.file, joinPaths(context.workspaceConfig.workspaceRoot, context.config.projectRoot));
22
- }
23
- resolveEntryInputFile.__type = [
24
- "Context",
25
- "context",
26
- "typeDefinition",
27
- "resolveEntryInputFile",
28
- "P\"w!2\"!2#&/$"
29
- ];
30
- function resolveEntryInput(context, typeDefinition) {
31
- return {
32
- file: resolveEntryInputFile(context, typeDefinition),
33
- name: typeDefinition.name
34
- };
35
- }
36
- resolveEntryInput.__type = [
37
- "Context",
38
- "context",
39
- "typeDefinition",
40
- "resolveEntryInput",
41
- "P\"w!2\"!2#!/$"
42
- ];
43
- function resolveEntryOutput(context, typeDefinition) {
44
- return replaceExtension(replacePath(replacePath(replacePath(replacePath(replacePath(typeDefinition.file, joinPaths(context.workspaceConfig.workspaceRoot, context.config.sourceRoot)), joinPaths(context.workspaceConfig.workspaceRoot, context.config.projectRoot)), context.config.sourceRoot), context.config.projectRoot), replacePath(context.config.sourceRoot, context.config.projectRoot)));
45
- }
46
- resolveEntryOutput.__type = [
47
- "Context",
48
- "context",
49
- "typeDefinition",
50
- "resolveEntryOutput",
51
- "P\"w!2\"!2#&/$"
52
- ];
53
- function resolveEntry(context, typeDefinition) {
54
- const input = resolveEntryInput(context, typeDefinition);
55
- return {
56
- ...input,
57
- input,
58
- output: resolveEntryOutput(context, typeDefinition)
59
- };
60
- }
61
- resolveEntry.__type = [
62
- "Context",
63
- "context",
64
- "typeDefinition",
65
- () => __ΩResolvedEntryTypeDefinition,
66
- "resolveEntry",
67
- "P\"w!2\"!2#n$/%"
68
- ];
69
- /**
70
- * Resolves multiple type definitions into their corresponding resolved entry type definitions.
71
- *
72
- * @param context - The current context
73
- * @param typeDefinitions - The type definitions to resolve.
74
- * @returns A promise that resolves to an array of resolved entry type definitions.
75
- */
76
- async function resolveEntries(context, typeDefinitions) {
77
- return (await Promise.all(typeDefinitions.map(__assignType(async (typeDefinition) => {
78
- const parsed = parseTypeDefinition(typeDefinition);
79
- const filePath = appendPath(parsed.file, context.config.projectRoot);
80
- if (isFile(filePath)) return resolveEntry(context, {
81
- file: replacePath(filePath, context.config.projectRoot),
82
- name: parsed.name
83
- });
84
- return (await listFiles(appendPath(parsed.file, context.config.projectRoot))).map(__assignType((file) => resolveEntry(context, {
85
- file,
86
- name: parsed.name
87
- }), [
88
- "file",
89
- "",
90
- "P\"2!\"/\""
91
- ]));
92
- }, [
93
- "typeDefinition",
94
- "",
95
- "P\"2!\"/\""
96
- ])))).flat().filter(Boolean);
97
- }
98
- resolveEntries.__type = [
99
- "Context",
100
- "context",
101
- "typeDefinitions",
102
- () => __ΩResolvedEntryTypeDefinition,
103
- "resolveEntries",
104
- "Resolves multiple type definitions into their corresponding resolved entry type definitions.",
105
- "P\"w!2\"!F2#n$F`/%?&"
106
- ];
107
- /**
108
- * Resolves multiple type definitions into their corresponding resolved entry type definitions.
109
- *
110
- * @param context - The current context
111
- * @param typeDefinitions - The type definitions to resolve.
112
- * @returns A promise that resolves to an array of resolved entry type definitions.
113
- */
114
- function resolveEntriesSync(context, typeDefinitions) {
115
- return typeDefinitions.map(__assignType((entry) => isString(entry) ? replacePathTokens(context, entry) : replacePathTokens(context, entry.file), [
116
- "entry",
117
- "",
118
- "P\"2!\"/\""
119
- ])).map(__assignType((typeDefinition) => {
120
- const parsed = parseTypeDefinition(typeDefinition);
121
- const filePath = appendPath(parsed.file, context.config.projectRoot);
122
- if (isFile(filePath)) return resolveEntry(context, {
123
- file: replacePath(filePath, context.config.projectRoot),
124
- name: parsed.name
125
- });
126
- return listFilesSync(filePath).map(__assignType((file) => resolveEntry(context, {
127
- file,
128
- name: parsed.name
129
- }), [
130
- "file",
131
- "",
132
- "P\"2!\"/\""
133
- ]));
134
- }, [
135
- "typeDefinition",
136
- "",
137
- "P\"2!\"/\""
138
- ])).flat().filter(Boolean);
139
- }
140
- resolveEntriesSync.__type = [
141
- "Context",
142
- "context",
143
- "typeDefinitions",
144
- () => __ΩResolvedEntryTypeDefinition,
145
- "resolveEntriesSync",
146
- "Resolves multiple type definitions into their corresponding resolved entry type definitions.",
147
- "P\"w!2\"!F2#n$F/%?&"
148
- ];
149
- /** Resolve a virtual entry point by generating a unique file path in the artifacts directory.
150
- *
151
- * @param context - The current context
152
- * @param typeDefinition - The type definition to resolve.
153
- * @returns The resolved entry type definition with a unique virtual file path.
154
- */
155
- function resolveVirtualEntry(context, typeDefinition) {
156
- const resolved = resolveEntry(context, parseTypeDefinition(typeDefinition));
157
- const file = joinPaths(context.artifactsPath, `entry-${murmurhash({
158
- file: resolved.file,
159
- name: resolved.name
160
- }, { maxLength: 24 }).replaceAll("-", "0").replaceAll("_", "1")}.ts`);
161
- return {
162
- file,
163
- name: resolved.name,
164
- input: {
165
- file,
166
- name: resolved.name
167
- },
168
- output: file
169
- };
170
- }
171
- resolveVirtualEntry.__type = [
172
- "Context",
173
- "context",
174
- "typeDefinition",
175
- () => __ΩResolvedEntryTypeDefinition,
176
- "resolveVirtualEntry",
177
- "P\"w!2\"!2#n$/%"
178
- ];
179
- /**
180
- * Get unique entries from the provided list.
181
- *
182
- * @param entries - The entries to process.
183
- * @returns An array of unique entries (by file path or content hash).
184
- */
185
- function getUniqueEntries(entries = []) {
186
- return getUniqueBy(toArray(entries), __assignType((item) => isSetString(item) ? item : murmurhash(item ?? {}, { maxLength: 24 }), [
187
- "item",
188
- "",
189
- "P!2!\"/\""
190
- ]));
191
- }
192
- getUniqueEntries.__type = [
193
- "entries",
194
- () => [],
195
- "getUniqueEntries",
196
- "Get unique entries from the provided list.",
197
- "PP!!FJ2!>\"!F/#?$"
198
- ];
199
-
200
- //#endregion
201
- export { resolveEntryInputFile, resolveEntryOutput };
@@ -1,108 +0,0 @@
1
- const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
2
- let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
3
- let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
4
- let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
5
- let chalk = require("chalk");
6
- chalk = require_rolldown_runtime.__toESM(chalk);
7
- let __storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
8
- let __storm_software_config_tools_utilities_colors = require("@storm-software/config-tools/utilities/colors");
9
- let __stryke_helpers_noop = require("@stryke/helpers/noop");
10
-
11
- //#region ../powerlines/src/lib/logger.ts
12
- function __assignType(fn, args) {
13
- fn.__type = args;
14
- return fn;
15
- }
16
- const __ΩCreateLogOptions = [
17
- "name",
18
- "LogLevelLabel",
19
- "logLevel",
20
- "LogFn",
21
- "customLogger",
22
- "WorkspaceConfig",
23
- "colors",
24
- "colors",
25
- "CreateLogOptions",
26
- "P&4!8P\"w\",J4#8\"w$4%8\"w&.'f4(8Mw)y"
27
- ];
28
- /**
29
- * Create a logging function with a specific name and options.
30
- *
31
- * @param name - The name of the logging function.
32
- * @param options - The options to configure the logging function.
33
- * @returns A logging function.
34
- */
35
- const createLog = __assignType((name, options = {}) => {
36
- const logLevel = options.logLevel === null ? __storm_software_config_tools_types.LogLevelLabel.SILENT : options.logLevel || __storm_software_config_tools_types.LogLevelLabel.INFO;
37
- if (logLevel === __storm_software_config_tools_types.LogLevelLabel.SILENT) return __stryke_helpers_noop.noop;
38
- if (options.customLogger) return options.customLogger;
39
- return __assignType((type, ...args) => (0, __storm_software_config_tools_logger.getLogFn)((0, __storm_software_config_tools_logger.getLogLevel)(type), {
40
- ...options,
41
- logLevel
42
- })(`${chalk.default.bold.hex((0, __storm_software_config_tools_utilities_colors.getColor)("brand", options))(`${name ? (0, __stryke_string_format_kebab_case.kebabCase)(name) : ""}${options.name ? `${name ? chalk.default.gray(" > ") : ""}${(0, __stryke_string_format_kebab_case.kebabCase)(options.name)}` : ""}${chalk.default.gray(" > ")}`)}${args.join(" ")} `.trim()), [
43
- "LogLevelLabel",
44
- "type",
45
- "args",
46
- "",
47
- "P\"w!2\"&@2#\"/$"
48
- ]);
49
- }, [
50
- "name",
51
- () => __ΩCreateLogOptions,
52
- "options",
53
- () => ({}),
54
- "LogFn",
55
- "",
56
- "PP&,J2!n\"2#>$\"w%/&"
57
- ]);
58
- const BADGE_COLORS = [
59
- "#00A0DD",
60
- "#6FCE4E",
61
- "#FBBF24",
62
- "#F43F5E",
63
- "#3B82F6",
64
- "#A855F7",
65
- "#469592",
66
- "#288EDF",
67
- "#D8B4FE",
68
- "#10B981",
69
- "#EF4444",
70
- "#F0EC56",
71
- "#F472B6",
72
- "#22D3EE",
73
- "#EAB308",
74
- "#84CC16",
75
- "#F87171",
76
- "#0EA5E9",
77
- "#D946EF",
78
- "#FACC15",
79
- "#34D399",
80
- "#8B5CF6"
81
- ];
82
- const extendLog = __assignType((logFn, name) => {
83
- return __assignType((type, ...args) => logFn(type, ` ${chalk.default.inverse.hex(BADGE_COLORS[name.split("").map(__assignType((char) => char.charCodeAt(0), [
84
- "char",
85
- "",
86
- "P\"2!\"/\""
87
- ])).reduce(__assignType((ret, charCode) => ret + charCode, [
88
- "ret",
89
- "charCode",
90
- "",
91
- "P\"2!\"2\"\"/#"
92
- ]), 0) % BADGE_COLORS.length] || BADGE_COLORS[0])(` ${(0, __stryke_string_format_title_case.titleCase)(name)} `)} ${args.join(" ")} `), [
93
- "LogLevelLabel",
94
- "type",
95
- "args",
96
- "",
97
- "P\"w!2\"&@2#\"/$"
98
- ]);
99
- }, [
100
- "LogFn",
101
- "logFn",
102
- "name",
103
- "",
104
- "P\"w!2\"&2#\"w!/$"
105
- ]);
106
-
107
- //#endregion
108
- exports.extendLog = extendLog;
@@ -1,106 +0,0 @@
1
- import { titleCase } from "@stryke/string-format/title-case";
2
- import { LogLevelLabel } from "@storm-software/config-tools/types";
3
- import { kebabCase } from "@stryke/string-format/kebab-case";
4
- import chalk from "chalk";
5
- import { getLogFn, getLogLevel } from "@storm-software/config-tools/logger";
6
- import { getColor } from "@storm-software/config-tools/utilities/colors";
7
- import { noop } from "@stryke/helpers/noop";
8
-
9
- //#region ../powerlines/src/lib/logger.ts
10
- function __assignType(fn, args) {
11
- fn.__type = args;
12
- return fn;
13
- }
14
- const __ΩCreateLogOptions = [
15
- "name",
16
- "LogLevelLabel",
17
- "logLevel",
18
- "LogFn",
19
- "customLogger",
20
- "WorkspaceConfig",
21
- "colors",
22
- "colors",
23
- "CreateLogOptions",
24
- "P&4!8P\"w\",J4#8\"w$4%8\"w&.'f4(8Mw)y"
25
- ];
26
- /**
27
- * Create a logging function with a specific name and options.
28
- *
29
- * @param name - The name of the logging function.
30
- * @param options - The options to configure the logging function.
31
- * @returns A logging function.
32
- */
33
- const createLog = __assignType((name, options = {}) => {
34
- const logLevel = options.logLevel === null ? LogLevelLabel.SILENT : options.logLevel || LogLevelLabel.INFO;
35
- if (logLevel === LogLevelLabel.SILENT) return noop;
36
- if (options.customLogger) return options.customLogger;
37
- return __assignType((type, ...args) => getLogFn(getLogLevel(type), {
38
- ...options,
39
- logLevel
40
- })(`${chalk.bold.hex(getColor("brand", options))(`${name ? kebabCase(name) : ""}${options.name ? `${name ? chalk.gray(" > ") : ""}${kebabCase(options.name)}` : ""}${chalk.gray(" > ")}`)}${args.join(" ")} `.trim()), [
41
- "LogLevelLabel",
42
- "type",
43
- "args",
44
- "",
45
- "P\"w!2\"&@2#\"/$"
46
- ]);
47
- }, [
48
- "name",
49
- () => __ΩCreateLogOptions,
50
- "options",
51
- () => ({}),
52
- "LogFn",
53
- "",
54
- "PP&,J2!n\"2#>$\"w%/&"
55
- ]);
56
- const BADGE_COLORS = [
57
- "#00A0DD",
58
- "#6FCE4E",
59
- "#FBBF24",
60
- "#F43F5E",
61
- "#3B82F6",
62
- "#A855F7",
63
- "#469592",
64
- "#288EDF",
65
- "#D8B4FE",
66
- "#10B981",
67
- "#EF4444",
68
- "#F0EC56",
69
- "#F472B6",
70
- "#22D3EE",
71
- "#EAB308",
72
- "#84CC16",
73
- "#F87171",
74
- "#0EA5E9",
75
- "#D946EF",
76
- "#FACC15",
77
- "#34D399",
78
- "#8B5CF6"
79
- ];
80
- const extendLog = __assignType((logFn, name) => {
81
- return __assignType((type, ...args) => logFn(type, ` ${chalk.inverse.hex(BADGE_COLORS[name.split("").map(__assignType((char) => char.charCodeAt(0), [
82
- "char",
83
- "",
84
- "P\"2!\"/\""
85
- ])).reduce(__assignType((ret, charCode) => ret + charCode, [
86
- "ret",
87
- "charCode",
88
- "",
89
- "P\"2!\"2\"\"/#"
90
- ]), 0) % BADGE_COLORS.length] || BADGE_COLORS[0])(` ${titleCase(name)} `)} ${args.join(" ")} `), [
91
- "LogLevelLabel",
92
- "type",
93
- "args",
94
- "",
95
- "P\"w!2\"&@2#\"/$"
96
- ]);
97
- }, [
98
- "LogFn",
99
- "logFn",
100
- "name",
101
- "",
102
- "P\"w!2\"&2#\"w!/$"
103
- ]);
104
-
105
- //#endregion
106
- export { extendLog };
@@ -1,67 +0,0 @@
1
- const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
- const require_context = require('../../types/context.cjs');
3
- const require_build = require('../../types/build.cjs');
4
- const require_esbuild = require('../build/esbuild.cjs');
5
- let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
6
- let esbuild = require("esbuild");
7
-
8
- //#region ../powerlines/src/lib/utilities/bundle.ts
9
- const __ΩPartial = [
10
- "T",
11
- "Partial",
12
- "l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
13
- ];
14
- function __assignType(fn, args) {
15
- fn.__type = args;
16
- return fn;
17
- }
18
- /**
19
- * Bundle a type definition to a module.
20
- *
21
- * @param context - The context object containing the environment paths.
22
- * @param file - The file path to bundle.
23
- * @param overrides - Optional overrides for the ESBuild configuration.
24
- * @returns A promise that resolves to the bundled module.
25
- */
26
- async function bundle(context, file, overrides = {}) {
27
- const path = await context.fs.resolve(file);
28
- if (!path || !context.fs.existsSync(path)) throw new Error(`Module not found: "${file}". Please check the path and try again.`);
29
- const result = await (0, esbuild.build)({
30
- ...require_esbuild.extractESBuildConfig(context),
31
- entryPoints: [path],
32
- write: false,
33
- sourcemap: false,
34
- splitting: false,
35
- treeShaking: false,
36
- bundle: true,
37
- ...overrides
38
- });
39
- if (result.errors.length > 0) throw new Error(`Failed to transpile ${file}: ${result.errors.map(__assignType((error) => error.text, [
40
- "error",
41
- "",
42
- "P\"2!\"/\""
43
- ])).join(", ")}`);
44
- if (result.warnings.length > 0) context.log(__storm_software_config_tools_types.LogLevelLabel.WARN, `Warnings while transpiling ${file}: ${result.warnings.map(__assignType((warning) => warning.text, [
45
- "warning",
46
- "",
47
- "P\"2!\"/\""
48
- ])).join(", ")}`);
49
- if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) throw new Error(`No output files generated for ${file}. Please check the configuration and try again.`);
50
- return result.outputFiles.filter(Boolean)[0];
51
- }
52
- bundle.__type = [
53
- () => require_context.__ΩContext,
54
- "context",
55
- "file",
56
- () => __ΩPartial,
57
- () => require_build.__ΩESBuildResolvedBuildConfig,
58
- "overrides",
59
- () => ({}),
60
- "OutputFile",
61
- "bundle",
62
- "Bundle a type definition to a module.",
63
- "Pn!2\"&2#n%o$\"2&>'\"w(`/)?*"
64
- ];
65
-
66
- //#endregion
67
- exports.bundle = bundle;