@powerlines/core 0.48.26 → 0.48.28

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 (508) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +14 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +26 -0
  3. package/dist/constants/api.test.cjs +42 -0
  4. package/dist/constants/api.test.d.cts +1 -0
  5. package/dist/constants/api.test.d.mts +2 -0
  6. package/dist/constants/api.test.mjs +44 -0
  7. package/dist/constants/api.test.mjs.map +1 -0
  8. package/dist/constants/commands.test.cjs +29 -0
  9. package/dist/constants/commands.test.d.cts +1 -0
  10. package/dist/constants/commands.test.d.mts +2 -0
  11. package/dist/constants/commands.test.mjs +31 -0
  12. package/dist/constants/commands.test.mjs.map +1 -0
  13. package/dist/constants/devtools.test.cjs +46 -0
  14. package/dist/constants/devtools.test.d.cts +1 -0
  15. package/dist/constants/devtools.test.d.mts +2 -0
  16. package/dist/constants/devtools.test.mjs +48 -0
  17. package/dist/constants/devtools.test.mjs.map +1 -0
  18. package/dist/constants/environments.test.cjs +34 -0
  19. package/dist/constants/environments.test.d.cts +1 -0
  20. package/dist/constants/environments.test.d.mts +2 -0
  21. package/dist/constants/environments.test.mjs +36 -0
  22. package/dist/constants/environments.test.mjs.map +1 -0
  23. package/dist/constants/extensions.test.cjs +35 -0
  24. package/dist/constants/extensions.test.d.cts +1 -0
  25. package/dist/constants/extensions.test.d.mts +2 -0
  26. package/dist/constants/extensions.test.mjs +37 -0
  27. package/dist/constants/extensions.test.mjs.map +1 -0
  28. package/dist/constants/fs.test.cjs +34 -0
  29. package/dist/constants/fs.test.d.cts +1 -0
  30. package/dist/constants/fs.test.d.mts +2 -0
  31. package/dist/constants/fs.test.mjs +36 -0
  32. package/dist/constants/fs.test.mjs.map +1 -0
  33. package/dist/constants/hooks.test.cjs +29 -0
  34. package/dist/constants/hooks.test.d.cts +1 -0
  35. package/dist/constants/hooks.test.d.mts +2 -0
  36. package/dist/constants/hooks.test.mjs +31 -0
  37. package/dist/constants/hooks.test.mjs.map +1 -0
  38. package/dist/constants/log-level.test.cjs +76 -0
  39. package/dist/constants/log-level.test.d.cts +1 -0
  40. package/dist/constants/log-level.test.d.mts +2 -0
  41. package/dist/constants/log-level.test.mjs +78 -0
  42. package/dist/constants/log-level.test.mjs.map +1 -0
  43. package/dist/constants/meta.test.cjs +33 -0
  44. package/dist/constants/meta.test.d.cts +1 -0
  45. package/dist/constants/meta.test.d.mts +2 -0
  46. package/dist/constants/meta.test.mjs +35 -0
  47. package/dist/constants/meta.test.mjs.map +1 -0
  48. package/dist/constants/plugin.test.cjs +59 -0
  49. package/dist/constants/plugin.test.d.cts +1 -0
  50. package/dist/constants/plugin.test.d.mts +2 -0
  51. package/dist/constants/plugin.test.mjs +61 -0
  52. package/dist/constants/plugin.test.mjs.map +1 -0
  53. package/dist/context/base-context.cjs +8 -1
  54. package/dist/context/base-context.d.cts.map +1 -1
  55. package/dist/context/base-context.d.mts.map +1 -1
  56. package/dist/context/base-context.mjs +3 -1
  57. package/dist/context/base-context.mjs.map +1 -1
  58. package/dist/context/base-context.test.cjs +23 -0
  59. package/dist/context/base-context.test.d.cts +1 -0
  60. package/dist/context/base-context.test.d.mts +2 -0
  61. package/dist/context/base-context.test.mjs +25 -0
  62. package/dist/context/base-context.test.mjs.map +1 -0
  63. package/dist/context/context.cjs +8 -1
  64. package/dist/context/context.d.cts.map +1 -1
  65. package/dist/context/context.d.mts.map +1 -1
  66. package/dist/context/context.mjs +3 -1
  67. package/dist/context/context.mjs.map +1 -1
  68. package/dist/context/context.test.cjs +23 -0
  69. package/dist/context/context.test.d.cts +1 -0
  70. package/dist/context/context.test.d.mts +2 -0
  71. package/dist/context/context.test.mjs +25 -0
  72. package/dist/context/context.test.mjs.map +1 -0
  73. package/dist/context/environment-context.cjs +9 -1
  74. package/dist/context/environment-context.d.cts.map +1 -1
  75. package/dist/context/environment-context.d.mts.map +1 -1
  76. package/dist/context/environment-context.mjs +3 -1
  77. package/dist/context/environment-context.mjs.map +1 -1
  78. package/dist/context/environment-context.test.cjs +23 -0
  79. package/dist/context/environment-context.test.d.cts +1 -0
  80. package/dist/context/environment-context.test.d.mts +2 -0
  81. package/dist/context/environment-context.test.mjs +25 -0
  82. package/dist/context/environment-context.test.mjs.map +1 -0
  83. package/dist/context/execution-context.cjs +8 -1
  84. package/dist/context/execution-context.d.cts.map +1 -1
  85. package/dist/context/execution-context.d.mts.map +1 -1
  86. package/dist/context/execution-context.mjs +3 -1
  87. package/dist/context/execution-context.mjs.map +1 -1
  88. package/dist/context/execution-context.test.cjs +23 -0
  89. package/dist/context/execution-context.test.d.cts +1 -0
  90. package/dist/context/execution-context.test.d.mts +2 -0
  91. package/dist/context/execution-context.test.mjs +25 -0
  92. package/dist/context/execution-context.test.mjs.map +1 -0
  93. package/dist/context/plugin-context.cjs +9 -1
  94. package/dist/context/plugin-context.d.cts.map +1 -1
  95. package/dist/context/plugin-context.d.mts.map +1 -1
  96. package/dist/context/plugin-context.mjs +3 -1
  97. package/dist/context/plugin-context.mjs.map +1 -1
  98. package/dist/context/plugin-context.test.cjs +23 -0
  99. package/dist/context/plugin-context.test.d.cts +1 -0
  100. package/dist/context/plugin-context.test.d.mts +2 -0
  101. package/dist/context/plugin-context.test.mjs +25 -0
  102. package/dist/context/plugin-context.test.mjs.map +1 -0
  103. package/dist/lib/config.cjs +18 -0
  104. package/dist/lib/config.mjs +14 -1
  105. package/dist/lib/config.mjs.map +1 -1
  106. package/dist/lib/config.test.cjs +23 -0
  107. package/dist/lib/config.test.d.cts +1 -0
  108. package/dist/lib/config.test.d.mts +2 -0
  109. package/dist/lib/config.test.mjs +25 -0
  110. package/dist/lib/config.test.mjs.map +1 -0
  111. package/dist/lib/context-helpers.cjs +11 -0
  112. package/dist/lib/context-helpers.d.cts +4 -4
  113. package/dist/lib/context-helpers.d.cts.map +1 -1
  114. package/dist/lib/context-helpers.d.mts +4 -4
  115. package/dist/lib/context-helpers.d.mts.map +1 -1
  116. package/dist/lib/context-helpers.mjs +6 -1
  117. package/dist/lib/context-helpers.mjs.map +1 -1
  118. package/dist/lib/context-helpers.test.cjs +23 -0
  119. package/dist/lib/context-helpers.test.d.cts +1 -0
  120. package/dist/lib/context-helpers.test.d.mts +2 -0
  121. package/dist/lib/context-helpers.test.mjs +25 -0
  122. package/dist/lib/context-helpers.test.mjs.map +1 -0
  123. package/dist/lib/entry.cjs +16 -0
  124. package/dist/lib/entry.d.cts.map +1 -1
  125. package/dist/lib/entry.d.mts.map +1 -1
  126. package/dist/lib/entry.mjs +11 -1
  127. package/dist/lib/entry.mjs.map +1 -1
  128. package/dist/lib/entry.test.cjs +23 -0
  129. package/dist/lib/entry.test.d.cts +1 -0
  130. package/dist/lib/entry.test.d.mts +2 -0
  131. package/dist/lib/entry.test.mjs +25 -0
  132. package/dist/lib/entry.test.mjs.map +1 -0
  133. package/dist/lib/environment.cjs +12 -0
  134. package/dist/lib/environment.d.cts.map +1 -1
  135. package/dist/lib/environment.d.mts.map +1 -1
  136. package/dist/lib/environment.mjs +8 -1
  137. package/dist/lib/environment.mjs.map +1 -1
  138. package/dist/lib/environment.test.cjs +23 -0
  139. package/dist/lib/environment.test.d.cts +1 -0
  140. package/dist/lib/environment.test.d.mts +2 -0
  141. package/dist/lib/environment.test.mjs +25 -0
  142. package/dist/lib/environment.test.mjs.map +1 -0
  143. package/dist/lib/events.cjs +9 -1
  144. package/dist/lib/events.d.cts.map +1 -1
  145. package/dist/lib/events.d.mts.map +1 -1
  146. package/dist/lib/events.mjs +4 -1
  147. package/dist/lib/events.mjs.map +1 -1
  148. package/dist/lib/events.test.cjs +23 -0
  149. package/dist/lib/events.test.d.cts +1 -0
  150. package/dist/lib/events.test.d.mts +2 -0
  151. package/dist/lib/events.test.mjs +25 -0
  152. package/dist/lib/events.test.mjs.map +1 -0
  153. package/dist/lib/generate-types.cjs +12 -0
  154. package/dist/lib/generate-types.d.cts.map +1 -1
  155. package/dist/lib/generate-types.d.mts.map +1 -1
  156. package/dist/lib/generate-types.mjs +7 -1
  157. package/dist/lib/generate-types.mjs.map +1 -1
  158. package/dist/lib/generate-types.test.cjs +23 -0
  159. package/dist/lib/generate-types.test.d.cts +1 -0
  160. package/dist/lib/generate-types.test.d.mts +2 -0
  161. package/dist/lib/generate-types.test.mjs +25 -0
  162. package/dist/lib/generate-types.test.mjs.map +1 -0
  163. package/dist/lib/hooks.cjs +12 -0
  164. package/dist/lib/hooks.d.cts.map +1 -1
  165. package/dist/lib/hooks.d.mts.map +1 -1
  166. package/dist/lib/hooks.mjs +8 -1
  167. package/dist/lib/hooks.mjs.map +1 -1
  168. package/dist/lib/hooks.test.cjs +23 -0
  169. package/dist/lib/hooks.test.d.cts +1 -0
  170. package/dist/lib/hooks.test.d.mts +2 -0
  171. package/dist/lib/hooks.test.mjs +25 -0
  172. package/dist/lib/hooks.test.mjs.map +1 -0
  173. package/dist/lib/install-dependencies.cjs +9 -1
  174. package/dist/lib/install-dependencies.d.cts.map +1 -1
  175. package/dist/lib/install-dependencies.d.mts.map +1 -1
  176. package/dist/lib/install-dependencies.mjs +3 -1
  177. package/dist/lib/install-dependencies.mjs.map +1 -1
  178. package/dist/lib/install-dependencies.test.cjs +23 -0
  179. package/dist/lib/install-dependencies.test.d.cts +1 -0
  180. package/dist/lib/install-dependencies.test.d.mts +2 -0
  181. package/dist/lib/install-dependencies.test.mjs +25 -0
  182. package/dist/lib/install-dependencies.test.mjs.map +1 -0
  183. package/dist/lib/meta.test.cjs +35 -0
  184. package/dist/lib/meta.test.d.cts +1 -0
  185. package/dist/lib/meta.test.d.mts +2 -0
  186. package/dist/lib/meta.test.mjs +37 -0
  187. package/dist/lib/meta.test.mjs.map +1 -0
  188. package/dist/lib/plugins.cjs +11 -0
  189. package/dist/lib/plugins.d.cts.map +1 -1
  190. package/dist/lib/plugins.d.mts.map +1 -1
  191. package/dist/lib/plugins.mjs +7 -1
  192. package/dist/lib/plugins.mjs.map +1 -1
  193. package/dist/lib/plugins.test.cjs +23 -0
  194. package/dist/lib/plugins.test.d.cts +1 -0
  195. package/dist/lib/plugins.test.d.mts +2 -0
  196. package/dist/lib/plugins.test.mjs +25 -0
  197. package/dist/lib/plugins.test.mjs.map +1 -0
  198. package/dist/lib/resolver.cjs +8 -1
  199. package/dist/lib/resolver.mjs +3 -1
  200. package/dist/lib/resolver.mjs.map +1 -1
  201. package/dist/lib/resolver.test.cjs +23 -0
  202. package/dist/lib/resolver.test.d.cts +1 -0
  203. package/dist/lib/resolver.test.d.mts +2 -0
  204. package/dist/lib/resolver.test.mjs +25 -0
  205. package/dist/lib/resolver.test.mjs.map +1 -0
  206. package/dist/lib/streaming-channel.cjs +12 -1
  207. package/dist/lib/streaming-channel.d.cts.map +1 -1
  208. package/dist/lib/streaming-channel.d.mts.map +1 -1
  209. package/dist/lib/streaming-channel.mjs +6 -1
  210. package/dist/lib/streaming-channel.mjs.map +1 -1
  211. package/dist/lib/streaming-channel.test.cjs +23 -0
  212. package/dist/lib/streaming-channel.test.d.cts +1 -0
  213. package/dist/lib/streaming-channel.test.d.mts +2 -0
  214. package/dist/lib/streaming-channel.test.mjs +25 -0
  215. package/dist/lib/streaming-channel.test.mjs.map +1 -0
  216. package/dist/lib/typescript/ts-morph.cjs +11 -1
  217. package/dist/lib/typescript/ts-morph.d.cts.map +1 -1
  218. package/dist/lib/typescript/ts-morph.d.mts.map +1 -1
  219. package/dist/lib/typescript/ts-morph.mjs +6 -1
  220. package/dist/lib/typescript/ts-morph.mjs.map +1 -1
  221. package/dist/lib/typescript/ts-morph.test.cjs +23 -0
  222. package/dist/lib/typescript/ts-morph.test.d.cts +1 -0
  223. package/dist/lib/typescript/ts-morph.test.d.mts +2 -0
  224. package/dist/lib/typescript/ts-morph.test.mjs +25 -0
  225. package/dist/lib/typescript/ts-morph.test.mjs.map +1 -0
  226. package/dist/lib/typescript/tsconfig.cjs +19 -1
  227. package/dist/lib/typescript/tsconfig.d.cts.map +1 -1
  228. package/dist/lib/typescript/tsconfig.d.mts.map +1 -1
  229. package/dist/lib/typescript/tsconfig.mjs +14 -1
  230. package/dist/lib/typescript/tsconfig.mjs.map +1 -1
  231. package/dist/lib/typescript/tsconfig.test.cjs +23 -0
  232. package/dist/lib/typescript/tsconfig.test.d.cts +1 -0
  233. package/dist/lib/typescript/tsconfig.test.d.mts +2 -0
  234. package/dist/lib/typescript/tsconfig.test.mjs +25 -0
  235. package/dist/lib/typescript/tsconfig.test.mjs.map +1 -0
  236. package/dist/lib/unplugin/helpers.cjs +11 -0
  237. package/dist/lib/unplugin/helpers.d.cts.map +1 -1
  238. package/dist/lib/unplugin/helpers.d.mts.map +1 -1
  239. package/dist/lib/unplugin/helpers.mjs +6 -1
  240. package/dist/lib/unplugin/helpers.mjs.map +1 -1
  241. package/dist/lib/unplugin/helpers.test.cjs +23 -0
  242. package/dist/lib/unplugin/helpers.test.d.cts +1 -0
  243. package/dist/lib/unplugin/helpers.test.d.mts +2 -0
  244. package/dist/lib/unplugin/helpers.test.mjs +25 -0
  245. package/dist/lib/unplugin/helpers.test.mjs.map +1 -0
  246. package/dist/lib/unplugin/module-resolution.cjs +8 -1
  247. package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
  248. package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
  249. package/dist/lib/unplugin/module-resolution.mjs +3 -1
  250. package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
  251. package/dist/lib/unplugin/module-resolution.test.cjs +23 -0
  252. package/dist/lib/unplugin/module-resolution.test.d.cts +1 -0
  253. package/dist/lib/unplugin/module-resolution.test.d.mts +2 -0
  254. package/dist/lib/unplugin/module-resolution.test.mjs +25 -0
  255. package/dist/lib/unplugin/module-resolution.test.mjs.map +1 -0
  256. package/dist/lib/unplugin/plugin.cjs +12 -1
  257. package/dist/lib/unplugin/plugin.d.cts.map +1 -1
  258. package/dist/lib/unplugin/plugin.d.mts.map +1 -1
  259. package/dist/lib/unplugin/plugin.mjs +6 -1
  260. package/dist/lib/unplugin/plugin.mjs.map +1 -1
  261. package/dist/lib/unplugin/plugin.test.cjs +23 -0
  262. package/dist/lib/unplugin/plugin.test.d.cts +1 -0
  263. package/dist/lib/unplugin/plugin.test.d.mts +2 -0
  264. package/dist/lib/unplugin/plugin.test.mjs +25 -0
  265. package/dist/lib/unplugin/plugin.test.mjs.map +1 -0
  266. package/dist/lib/utilities/file-header.cjs +13 -0
  267. package/dist/lib/utilities/file-header.mjs +8 -1
  268. package/dist/lib/utilities/file-header.mjs.map +1 -1
  269. package/dist/lib/utilities/file-header.test.cjs +23 -0
  270. package/dist/lib/utilities/file-header.test.d.cts +1 -0
  271. package/dist/lib/utilities/file-header.test.d.mts +2 -0
  272. package/dist/lib/utilities/file-header.test.mjs +25 -0
  273. package/dist/lib/utilities/file-header.test.mjs.map +1 -0
  274. package/dist/lib/utilities/format.cjs +11 -1
  275. package/dist/lib/utilities/format.mjs +6 -1
  276. package/dist/lib/utilities/format.mjs.map +1 -1
  277. package/dist/lib/utilities/format.test.cjs +23 -0
  278. package/dist/lib/utilities/format.test.d.cts +1 -0
  279. package/dist/lib/utilities/format.test.d.mts +2 -0
  280. package/dist/lib/utilities/format.test.mjs +25 -0
  281. package/dist/lib/utilities/format.test.mjs.map +1 -0
  282. package/dist/lib/utilities/source-file.cjs +12 -1
  283. package/dist/lib/utilities/source-file.mjs +7 -1
  284. package/dist/lib/utilities/source-file.mjs.map +1 -1
  285. package/dist/lib/utilities/source-file.test.cjs +23 -0
  286. package/dist/lib/utilities/source-file.test.d.cts +1 -0
  287. package/dist/lib/utilities/source-file.test.d.mts +2 -0
  288. package/dist/lib/utilities/source-file.test.mjs +25 -0
  289. package/dist/lib/utilities/source-file.test.mjs.map +1 -0
  290. package/dist/lib/utilities/source-map.cjs +8 -1
  291. package/dist/lib/utilities/source-map.mjs +3 -1
  292. package/dist/lib/utilities/source-map.mjs.map +1 -1
  293. package/dist/lib/utilities/source-map.test.cjs +23 -0
  294. package/dist/lib/utilities/source-map.test.d.cts +1 -0
  295. package/dist/lib/utilities/source-map.test.d.mts +2 -0
  296. package/dist/lib/utilities/source-map.test.mjs +25 -0
  297. package/dist/lib/utilities/source-map.test.mjs.map +1 -0
  298. package/dist/lib/utilities/write-file.cjs +9 -1
  299. package/dist/lib/utilities/write-file.mjs +3 -1
  300. package/dist/lib/utilities/write-file.mjs.map +1 -1
  301. package/dist/lib/utilities/write-file.test.cjs +23 -0
  302. package/dist/lib/utilities/write-file.test.d.cts +1 -0
  303. package/dist/lib/utilities/write-file.test.d.mts +2 -0
  304. package/dist/lib/utilities/write-file.test.mjs +25 -0
  305. package/dist/lib/utilities/write-file.test.mjs.map +1 -0
  306. package/dist/lib/vfs.cjs +8 -1
  307. package/dist/lib/vfs.d.cts.map +1 -1
  308. package/dist/lib/vfs.d.mts.map +1 -1
  309. package/dist/lib/vfs.mjs +3 -1
  310. package/dist/lib/vfs.mjs.map +1 -1
  311. package/dist/lib/vfs.test.cjs +23 -0
  312. package/dist/lib/vfs.test.d.cts +1 -0
  313. package/dist/lib/vfs.test.d.mts +2 -0
  314. package/dist/lib/vfs.test.mjs +25 -0
  315. package/dist/lib/vfs.test.mjs.map +1 -0
  316. package/dist/plugin-base.cjs +12 -1
  317. package/dist/plugin-base.mjs +6 -1
  318. package/dist/plugin-base.mjs.map +1 -1
  319. package/dist/plugin-base.test.cjs +23 -0
  320. package/dist/plugin-base.test.d.cts +1 -0
  321. package/dist/plugin-base.test.d.mts +2 -0
  322. package/dist/plugin-base.test.mjs +25 -0
  323. package/dist/plugin-base.test.mjs.map +1 -0
  324. package/dist/plugin-utils/build-helpers.cjs +8 -0
  325. package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
  326. package/dist/plugin-utils/build-helpers.d.mts.map +1 -1
  327. package/dist/plugin-utils/build-helpers.mjs +3 -1
  328. package/dist/plugin-utils/build-helpers.mjs.map +1 -1
  329. package/dist/plugin-utils/build-helpers.test.cjs +23 -0
  330. package/dist/plugin-utils/build-helpers.test.d.cts +1 -0
  331. package/dist/plugin-utils/build-helpers.test.d.mts +2 -0
  332. package/dist/plugin-utils/build-helpers.test.mjs +25 -0
  333. package/dist/plugin-utils/build-helpers.test.mjs.map +1 -0
  334. package/dist/plugin-utils/combine-plugins.cjs +12 -1
  335. package/dist/plugin-utils/combine-plugins.mjs +6 -1
  336. package/dist/plugin-utils/combine-plugins.mjs.map +1 -1
  337. package/dist/plugin-utils/combine-plugins.test.cjs +23 -0
  338. package/dist/plugin-utils/combine-plugins.test.d.cts +1 -0
  339. package/dist/plugin-utils/combine-plugins.test.d.mts +2 -0
  340. package/dist/plugin-utils/combine-plugins.test.mjs +25 -0
  341. package/dist/plugin-utils/combine-plugins.test.mjs.map +1 -0
  342. package/dist/plugin-utils/context-helpers.cjs +13 -0
  343. package/dist/plugin-utils/context-helpers.mjs +8 -1
  344. package/dist/plugin-utils/context-helpers.mjs.map +1 -1
  345. package/dist/plugin-utils/context-helpers.test.cjs +23 -0
  346. package/dist/plugin-utils/context-helpers.test.d.cts +1 -0
  347. package/dist/plugin-utils/context-helpers.test.d.mts +2 -0
  348. package/dist/plugin-utils/context-helpers.test.mjs +25 -0
  349. package/dist/plugin-utils/context-helpers.test.mjs.map +1 -0
  350. package/dist/plugin-utils/docs-helper.cjs +8 -0
  351. package/dist/plugin-utils/docs-helper.mjs +3 -1
  352. package/dist/plugin-utils/docs-helper.mjs.map +1 -1
  353. package/dist/plugin-utils/docs-helper.test.cjs +23 -0
  354. package/dist/plugin-utils/docs-helper.test.d.cts +1 -0
  355. package/dist/plugin-utils/docs-helper.test.d.mts +2 -0
  356. package/dist/plugin-utils/docs-helper.test.mjs +25 -0
  357. package/dist/plugin-utils/docs-helper.test.mjs.map +1 -0
  358. package/dist/plugin-utils/enable-plugin.cjs +9 -1
  359. package/dist/plugin-utils/enable-plugin.d.cts.map +1 -1
  360. package/dist/plugin-utils/enable-plugin.d.mts.map +1 -1
  361. package/dist/plugin-utils/enable-plugin.mjs +3 -1
  362. package/dist/plugin-utils/enable-plugin.mjs.map +1 -1
  363. package/dist/plugin-utils/enable-plugin.test.cjs +23 -0
  364. package/dist/plugin-utils/enable-plugin.test.d.cts +1 -0
  365. package/dist/plugin-utils/enable-plugin.test.d.mts +2 -0
  366. package/dist/plugin-utils/enable-plugin.test.mjs +25 -0
  367. package/dist/plugin-utils/enable-plugin.test.mjs.map +1 -0
  368. package/dist/plugin-utils/extend.cjs +9 -1
  369. package/dist/plugin-utils/extend.d.cts.map +1 -1
  370. package/dist/plugin-utils/extend.d.mts.map +1 -1
  371. package/dist/plugin-utils/extend.mjs +3 -1
  372. package/dist/plugin-utils/extend.mjs.map +1 -1
  373. package/dist/plugin-utils/extend.test.cjs +23 -0
  374. package/dist/plugin-utils/extend.test.d.cts +1 -0
  375. package/dist/plugin-utils/extend.test.d.mts +2 -0
  376. package/dist/plugin-utils/extend.test.mjs +25 -0
  377. package/dist/plugin-utils/extend.test.mjs.map +1 -0
  378. package/dist/plugin-utils/filter.cjs +17 -0
  379. package/dist/plugin-utils/filter.mjs +13 -1
  380. package/dist/plugin-utils/filter.mjs.map +1 -1
  381. package/dist/plugin-utils/filter.test.cjs +23 -0
  382. package/dist/plugin-utils/filter.test.d.cts +1 -0
  383. package/dist/plugin-utils/filter.test.d.mts +2 -0
  384. package/dist/plugin-utils/filter.test.mjs +25 -0
  385. package/dist/plugin-utils/filter.test.mjs.map +1 -0
  386. package/dist/plugin-utils/format-package-json.cjs +9 -1
  387. package/dist/plugin-utils/format-package-json.mjs +3 -1
  388. package/dist/plugin-utils/format-package-json.mjs.map +1 -1
  389. package/dist/plugin-utils/format-package-json.test.cjs +23 -0
  390. package/dist/plugin-utils/format-package-json.test.d.cts +1 -0
  391. package/dist/plugin-utils/format-package-json.test.d.mts +2 -0
  392. package/dist/plugin-utils/format-package-json.test.mjs +25 -0
  393. package/dist/plugin-utils/format-package-json.test.mjs.map +1 -0
  394. package/dist/plugin-utils/format.cjs +9 -1
  395. package/dist/plugin-utils/format.mjs +3 -1
  396. package/dist/plugin-utils/format.mjs.map +1 -1
  397. package/dist/plugin-utils/format.test.cjs +23 -0
  398. package/dist/plugin-utils/format.test.d.cts +1 -0
  399. package/dist/plugin-utils/format.test.d.mts +2 -0
  400. package/dist/plugin-utils/format.test.mjs +25 -0
  401. package/dist/plugin-utils/format.test.mjs.map +1 -0
  402. package/dist/plugin-utils/get-config-path.cjs +9 -1
  403. package/dist/plugin-utils/get-config-path.mjs +3 -1
  404. package/dist/plugin-utils/get-config-path.mjs.map +1 -1
  405. package/dist/plugin-utils/get-config-path.test.cjs +23 -0
  406. package/dist/plugin-utils/get-config-path.test.d.cts +1 -0
  407. package/dist/plugin-utils/get-config-path.test.d.mts +2 -0
  408. package/dist/plugin-utils/get-config-path.test.mjs +25 -0
  409. package/dist/plugin-utils/get-config-path.test.mjs.map +1 -0
  410. package/dist/plugin-utils/helpers.cjs +25 -0
  411. package/dist/plugin-utils/helpers.d.cts.map +1 -1
  412. package/dist/plugin-utils/helpers.d.mts.map +1 -1
  413. package/dist/plugin-utils/helpers.mjs +20 -1
  414. package/dist/plugin-utils/helpers.mjs.map +1 -1
  415. package/dist/plugin-utils/helpers.test.cjs +23 -0
  416. package/dist/plugin-utils/helpers.test.d.cts +1 -0
  417. package/dist/plugin-utils/helpers.test.d.mts +2 -0
  418. package/dist/plugin-utils/helpers.test.mjs +25 -0
  419. package/dist/plugin-utils/helpers.test.mjs.map +1 -0
  420. package/dist/plugin-utils/install.cjs +12 -1
  421. package/dist/plugin-utils/install.mjs +6 -1
  422. package/dist/plugin-utils/install.mjs.map +1 -1
  423. package/dist/plugin-utils/install.test.cjs +23 -0
  424. package/dist/plugin-utils/install.test.d.cts +1 -0
  425. package/dist/plugin-utils/install.test.d.mts +2 -0
  426. package/dist/plugin-utils/install.test.mjs +25 -0
  427. package/dist/plugin-utils/install.test.mjs.map +1 -0
  428. package/dist/plugin-utils/logging.cjs +24 -0
  429. package/dist/plugin-utils/logging.mjs +20 -1
  430. package/dist/plugin-utils/logging.mjs.map +1 -1
  431. package/dist/plugin-utils/logging.test.cjs +23 -0
  432. package/dist/plugin-utils/logging.test.d.cts +1 -0
  433. package/dist/plugin-utils/logging.test.d.mts +2 -0
  434. package/dist/plugin-utils/logging.test.mjs +25 -0
  435. package/dist/plugin-utils/logging.test.mjs.map +1 -0
  436. package/dist/plugin-utils/merge.cjs +11 -1
  437. package/dist/plugin-utils/merge.d.cts.map +1 -1
  438. package/dist/plugin-utils/merge.d.mts.map +1 -1
  439. package/dist/plugin-utils/merge.mjs +6 -1
  440. package/dist/plugin-utils/merge.mjs.map +1 -1
  441. package/dist/plugin-utils/merge.test.cjs +23 -0
  442. package/dist/plugin-utils/merge.test.d.cts +1 -0
  443. package/dist/plugin-utils/merge.test.d.mts +2 -0
  444. package/dist/plugin-utils/merge.test.mjs +25 -0
  445. package/dist/plugin-utils/merge.test.mjs.map +1 -0
  446. package/dist/plugin-utils/modules.cjs +9 -1
  447. package/dist/plugin-utils/modules.mjs +4 -1
  448. package/dist/plugin-utils/modules.mjs.map +1 -1
  449. package/dist/plugin-utils/modules.test.cjs +23 -0
  450. package/dist/plugin-utils/modules.test.d.cts +1 -0
  451. package/dist/plugin-utils/modules.test.d.mts +2 -0
  452. package/dist/plugin-utils/modules.test.mjs +25 -0
  453. package/dist/plugin-utils/modules.test.mjs.map +1 -0
  454. package/dist/plugin-utils/paths.cjs +8 -0
  455. package/dist/plugin-utils/paths.mjs +3 -1
  456. package/dist/plugin-utils/paths.mjs.map +1 -1
  457. package/dist/plugin-utils/paths.test.cjs +23 -0
  458. package/dist/plugin-utils/paths.test.d.cts +1 -0
  459. package/dist/plugin-utils/paths.test.d.mts +2 -0
  460. package/dist/plugin-utils/paths.test.mjs +25 -0
  461. package/dist/plugin-utils/paths.test.mjs.map +1 -0
  462. package/dist/plugin-utils/virtual.cjs +17 -1
  463. package/dist/plugin-utils/virtual.mjs +12 -1
  464. package/dist/plugin-utils/virtual.mjs.map +1 -1
  465. package/dist/plugin-utils/virtual.test.cjs +23 -0
  466. package/dist/plugin-utils/virtual.test.d.cts +1 -0
  467. package/dist/plugin-utils/virtual.test.d.mts +2 -0
  468. package/dist/plugin-utils/virtual.test.mjs +25 -0
  469. package/dist/plugin-utils/virtual.test.mjs.map +1 -0
  470. package/dist/schemas/fs.d.cts.map +1 -1
  471. package/dist/schemas/fs.d.mts.map +1 -1
  472. package/dist/storage/base.cjs +9 -1
  473. package/dist/storage/base.d.cts.map +1 -1
  474. package/dist/storage/base.d.mts.map +1 -1
  475. package/dist/storage/base.mjs +3 -1
  476. package/dist/storage/base.mjs.map +1 -1
  477. package/dist/storage/base.test.cjs +23 -0
  478. package/dist/storage/base.test.d.cts +1 -0
  479. package/dist/storage/base.test.d.mts +2 -0
  480. package/dist/storage/base.test.mjs +25 -0
  481. package/dist/storage/base.test.mjs.map +1 -0
  482. package/dist/storage/file-system.cjs +9 -1
  483. package/dist/storage/file-system.mjs +3 -1
  484. package/dist/storage/file-system.mjs.map +1 -1
  485. package/dist/storage/file-system.test.cjs +23 -0
  486. package/dist/storage/file-system.test.d.cts +1 -0
  487. package/dist/storage/file-system.test.d.mts +2 -0
  488. package/dist/storage/file-system.test.mjs +25 -0
  489. package/dist/storage/file-system.test.mjs.map +1 -0
  490. package/dist/storage/helpers.cjs +12 -0
  491. package/dist/storage/helpers.mjs +7 -1
  492. package/dist/storage/helpers.mjs.map +1 -1
  493. package/dist/storage/helpers.test.cjs +23 -0
  494. package/dist/storage/helpers.test.d.cts +1 -0
  495. package/dist/storage/helpers.test.d.mts +2 -0
  496. package/dist/storage/helpers.test.mjs +25 -0
  497. package/dist/storage/helpers.test.mjs.map +1 -0
  498. package/dist/storage/virtual.cjs +9 -1
  499. package/dist/storage/virtual.d.cts.map +1 -1
  500. package/dist/storage/virtual.d.mts.map +1 -1
  501. package/dist/storage/virtual.mjs +3 -1
  502. package/dist/storage/virtual.mjs.map +1 -1
  503. package/dist/storage/virtual.test.cjs +23 -0
  504. package/dist/storage/virtual.test.d.cts +1 -0
  505. package/dist/storage/virtual.test.d.mts +2 -0
  506. package/dist/storage/virtual.test.mjs +25 -0
  507. package/dist/storage/virtual.test.mjs.map +1 -0
  508. package/package.json +257 -17
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../src/lib/unplugin/helpers.ts"],"mappings":";;;;;;;;;;;;;;iBAgCgB,eAAA,mBACI,iBAAA,GAAoB,oBAAA,oBACpB,iBAAA,GAAoB,oBAAA,CAAA,CACtC,QAAA,EAAU,SAAA,EAAW,QAAA,EAAU,SAAA,GAAY,SAAA,GAAY,SAAA;;;AAHzD;;;;iBAagB,wBAAA,CACd,GAAA,YACC,GAAA,IAAO,sBAAsB"}
1
+ {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../src/lib/unplugin/helpers.ts"],"mappings":";;;;;;;;;;;;;;iBAgCgB,eAAA,mBACI,iBAAA,GAAoB,oBAAA,oBACpB,iBAAA,GAAoB,oBAAA,EACtC,QAAA,EAAU,SAAA,EAAW,QAAA,EAAU,SAAA,GAAY,SAAA,GAAY,SAAA;;;AAHzD;;;;iBAagB,wBAAA,CACd,GAAA,YACC,GAAA,IAAO,sBAAsB"}
@@ -6,11 +6,16 @@ import __tsdown_shims_url from 'node:url'
6
6
  const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
7
  const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
8
 
9
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
9
10
  import { UNPLUGIN_BUILDER_VARIANTS } from "../../constants/plugin.mjs";
10
11
  import { defu as defu$1 } from "defu";
11
12
  import { isSetString } from "@stryke/type-checks/is-set-string";
12
13
 
13
14
  //#region src/lib/unplugin/helpers.ts
15
+ var helpers_exports = /* @__PURE__ */ __exportAll({
16
+ combineContexts: () => combineContexts,
17
+ isUnpluginBuilderVariant: () => isUnpluginBuilderVariant
18
+ });
14
19
  /**
15
20
  * Merges a base plugin context with an unplugin context, combining their properties.
16
21
  *
@@ -32,5 +37,5 @@ function isUnpluginBuilderVariant(str) {
32
37
  }
33
38
 
34
39
  //#endregion
35
- export { combineContexts, isUnpluginBuilderVariant };
40
+ export { combineContexts, helpers_exports, isUnpluginBuilderVariant };
36
41
  //# sourceMappingURL=helpers.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.mjs","names":["defu"],"sources":["../../../src/lib/unplugin/helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { defu } from \"defu\";\nimport type { UnpluginBuildContext } from \"unplugin\";\nimport { UNPLUGIN_BUILDER_VARIANTS } from \"../../constants/plugin\";\nimport type { UnresolvedContext } from \"../../types/context\";\nimport type { UnpluginBuilderVariant } from \"../../types/unplugin\";\n\n/**\n * Merges a base plugin context with an unplugin context, combining their properties.\n *\n * @param contextA - The base plugin context to merge into.\n * @param contextB - The unplugin context to merge from.\n * @returns The merged context.\n */\nexport function combineContexts<\n TContextA extends UnresolvedContext | UnpluginBuildContext,\n TContextB extends UnresolvedContext | UnpluginBuildContext\n>(contextA: TContextA, contextB: TContextB): TContextA & TContextB {\n return defu(contextA, contextB) as TContextA & TContextB;\n}\n\n/**\n * Checks if a value is a valid UnpluginBuilderVariant.\n *\n * @param str - The value to check.\n * @returns True if the value is a UnpluginBuilderVariant, false otherwise.\n */\nexport function isUnpluginBuilderVariant(\n str: unknown\n): str is UnpluginBuilderVariant {\n return (\n isSetString(str) &&\n UNPLUGIN_BUILDER_VARIANTS.includes(str as UnpluginBuilderVariant)\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAgCA,SAAgB,gBAGd,UAAqB,UAA4C;CACjE,OAAOA,OAAK,UAAU,QAAQ;AAChC;;;;;;;AAQA,SAAgB,yBACd,KAC+B;CAC/B,OACE,YAAY,GAAG,KACf,0BAA0B,SAAS,GAA6B;AAEpE"}
1
+ {"version":3,"file":"helpers.mjs","names":["defu"],"sources":["../../../src/lib/unplugin/helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { defu } from \"defu\";\nimport type { UnpluginBuildContext } from \"unplugin\";\nimport { UNPLUGIN_BUILDER_VARIANTS } from \"../../constants/plugin\";\nimport type { UnresolvedContext } from \"../../types/context\";\nimport type { UnpluginBuilderVariant } from \"../../types/unplugin\";\n\n/**\n * Merges a base plugin context with an unplugin context, combining their properties.\n *\n * @param contextA - The base plugin context to merge into.\n * @param contextB - The unplugin context to merge from.\n * @returns The merged context.\n */\nexport function combineContexts<\n TContextA extends UnresolvedContext | UnpluginBuildContext,\n TContextB extends UnresolvedContext | UnpluginBuildContext\n>(contextA: TContextA, contextB: TContextB): TContextA & TContextB {\n return defu(contextA, contextB) as TContextA & TContextB;\n}\n\n/**\n * Checks if a value is a valid UnpluginBuilderVariant.\n *\n * @param str - The value to check.\n * @returns True if the value is a UnpluginBuilderVariant, false otherwise.\n */\nexport function isUnpluginBuilderVariant(\n str: unknown\n): str is UnpluginBuilderVariant {\n return (\n isSetString(str) &&\n UNPLUGIN_BUILDER_VARIANTS.includes(str as UnpluginBuilderVariant)\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,SAAgB,gBAGd,UAAqB,UAA4C;CACjE,OAAOA,OAAK,UAAU,QAAQ;AAChC;;;;;;;AAQA,SAAgB,yBACd,KAC+B;CAC/B,OACE,YAAY,GAAG,KACf,0BAA0B,SAAS,GAA6B;AAEpE"}
@@ -0,0 +1,23 @@
1
+
2
+
3
+ import __tsdown_shims_path from 'node:path'
4
+ import __tsdown_shims_url from 'node:url'
5
+
6
+ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
+ const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
+
9
+ const require_lib_unplugin_helpers = require('./helpers.cjs');
10
+ let vitest = require("vitest");
11
+
12
+ //#region src/lib/unplugin/helpers.test.ts
13
+ (0, vitest.describe)("base/core/src/lib/unplugin/helpers.ts", () => {
14
+ (0, vitest.it)("loads module exports", () => {
15
+ (0, vitest.expect)(require_lib_unplugin_helpers.helpers_exports).toBeDefined();
16
+ (0, vitest.expect)(typeof require_lib_unplugin_helpers.helpers_exports).toBe("object");
17
+ });
18
+ (0, vitest.it)("has at least one runtime export", () => {
19
+ (0, vitest.expect)(Object.keys(require_lib_unplugin_helpers.helpers_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,2 @@
1
+ import __tsdown_shims_path from 'node:path';
2
+ import __tsdown_shims_url from 'node:url';
@@ -0,0 +1,25 @@
1
+
2
+
3
+ import __tsdown_shims_path from 'node:path'
4
+ import __tsdown_shims_url from 'node:url'
5
+
6
+ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
+ const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
+
9
+ import { helpers_exports } from "./helpers.mjs";
10
+ import { describe, expect, it } from "vitest";
11
+
12
+ //#region src/lib/unplugin/helpers.test.ts
13
+ describe("base/core/src/lib/unplugin/helpers.ts", () => {
14
+ it("loads module exports", () => {
15
+ expect(helpers_exports).toBeDefined();
16
+ expect(typeof helpers_exports).toBe("object");
17
+ });
18
+ it("has at least one runtime export", () => {
19
+ expect(Object.keys(helpers_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
24
+ export { };
25
+ //# sourceMappingURL=helpers.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.test.mjs","names":["moduleExports"],"sources":["../../../src/lib/unplugin/helpers.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./helpers\";\n\ndescribe(\"base/core/src/lib/unplugin/helpers.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,+CAA+C;CACtD,GAAG,8BAA8B;EAC/B,OAAOA,eAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,eAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,eAAa,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AACH,CAAC"}
@@ -16,6 +16,7 @@ defu = require_runtime.__toESM(defu, 1);
16
16
  let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
17
17
 
18
18
  //#region src/lib/unplugin/module-resolution.ts
19
+ var module_resolution_exports = /* @__PURE__ */ require_runtime.__exportAll({ createUnpluginModuleResolutionFunctions: () => createUnpluginModuleResolutionFunctions });
19
20
  /**
20
21
  * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.
21
22
  *
@@ -103,4 +104,10 @@ function createUnpluginModuleResolutionFunctions(context, options = {}) {
103
104
  }
104
105
 
105
106
  //#endregion
106
- exports.createUnpluginModuleResolutionFunctions = createUnpluginModuleResolutionFunctions;
107
+ exports.createUnpluginModuleResolutionFunctions = createUnpluginModuleResolutionFunctions;
108
+ Object.defineProperty(exports, 'module_resolution_exports', {
109
+ enumerable: true,
110
+ get: function () {
111
+ return module_resolution_exports;
112
+ }
113
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"module-resolution.d.cts","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"mappings":";;;;;UAmCiB,8CAAA;;AAAjB;;;;;;;;EAUE,MAAA;EAQkC;AAgBpC;;;;;EAhBE,SAAA,GAAY,OAAO,CAAC,cAAA;AAAA;;;;;;;;;;;;;AAqBC;iBALP,uCAAA,kBACG,iBAAA,CAAA,CAEjB,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,8CAAA,GACR,IAAA,CAAK,eAAA"}
1
+ {"version":3,"file":"module-resolution.d.cts","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"mappings":";;;;;UAmCiB,8CAAA;;AAAjB;;;;;;;;EAUE,MAAA;EAQkC;AAgBpC;;;;;EAhBE,SAAA,GAAY,OAAO,CAAC,cAAA;AAAA;;;;;;;;;;;;;AAqBC;iBALP,uCAAA,kBACG,iBAAA,EAEjB,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,8CAAA,GACR,IAAA,CAAK,eAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-resolution.d.mts","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"mappings":";;;;;;;UAmCiB,8CAAA;;;;;;;;;;EAUf,MAAA;EAV6D;;;;;;EAkB7D,SAAA,GAAY,OAAO,CAAC,cAAA;AAAA;AAAc;AAgBpC;;;;;;;;;;;;AAhBoC,iBAgBpB,uCAAA,kBACG,iBAAA,CAAA,CAEjB,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,8CAAA,GACR,IAAA,CAAK,eAAA"}
1
+ {"version":3,"file":"module-resolution.d.mts","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"mappings":";;;;;;;UAmCiB,8CAAA;;;;;;;;;;EAUf,MAAA;EAV6D;;;;;;EAkB7D,SAAA,GAAY,OAAO,CAAC,cAAA;AAAA;AAAc;AAgBpC;;;;;;;;;;;;AAhBoC,iBAgBpB,uCAAA,kBACG,iBAAA,EAEjB,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,8CAAA,GACR,IAAA,CAAK,eAAA"}
@@ -6,6 +6,7 @@ import __tsdown_shims_url from 'node:url'
6
6
  const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
7
  const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
8
 
9
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
9
10
  import { VIRTUAL_MODULE_PREFIX_REGEX, addVirtualPrefix, removeVirtualPrefix } from "../../plugin-utils/virtual.mjs";
10
11
  import "../../plugin-utils/index.mjs";
11
12
  import { isSetObject } from "@stryke/type-checks/is-set-object";
@@ -13,6 +14,7 @@ import defu from "defu";
13
14
  import { isSetString } from "@stryke/type-checks/is-set-string";
14
15
 
15
16
  //#region src/lib/unplugin/module-resolution.ts
17
+ var module_resolution_exports = /* @__PURE__ */ __exportAll({ createUnpluginModuleResolutionFunctions: () => createUnpluginModuleResolutionFunctions });
16
18
  /**
17
19
  * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.
18
20
  *
@@ -100,5 +102,5 @@ function createUnpluginModuleResolutionFunctions(context, options = {}) {
100
102
  }
101
103
 
102
104
  //#endregion
103
- export { createUnpluginModuleResolutionFunctions };
105
+ export { createUnpluginModuleResolutionFunctions, module_resolution_exports };
104
106
  //# sourceMappingURL=module-resolution.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-resolution.mjs","names":[],"sources":["../../../src/lib/unplugin/module-resolution.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 { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport defu from \"defu\";\nimport { LoadResult } from \"rollup\";\nimport type {\n UnpluginBuildContext,\n UnpluginContext,\n UnpluginOptions\n} from \"unplugin\";\nimport {\n addVirtualPrefix,\n removeVirtualPrefix,\n VIRTUAL_MODULE_PREFIX_REGEX\n} from \"../../plugin-utils\";\nimport { ResolveResult, UnresolvedContext } from \"../../types/context\";\nimport { ResolveOptions } from \"../../types/fs\";\n\nexport interface CreateUnpluginModuleResolutionFunctionsOptions {\n /**\n * An indicator of whether to prefix virtual module IDs with a specific string. This is useful for ensuring that virtual modules are only processed by the plugin and not by other plugins or the bundler itself.\n *\n * @remarks\n * - If set to `true`, virtual module IDs will be prefixed with the string `__powerlines-virtual:`.\n * - If set to `false`, no prefix will be added to virtual module IDs.\n *\n * @defaultValue true\n */\n prefix?: boolean;\n\n /**\n * Optional overrides for the module resolution configuration.\n *\n * @remarks\n * This allows you to customize the behavior of the module resolution hooks by providing specific configuration options.\n */\n overrides?: Partial<ResolveOptions>;\n}\n\n/**\n * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.\n *\n * @remarks\n * This includes the `resolveId` and `load` hooks.\n *\n * @see https://rollupjs.org/plugin-development/#resolveid\n * @see https://rollupjs.org/plugin-development/#load\n *\n * @param context - The plugin context.\n * @param options - Options for creating the module resolution functions.\n * @returns The module resolution hooks (`resolveId` and `load`).\n */\nexport function createUnpluginModuleResolutionFunctions<\n TContext extends UnresolvedContext\n>(\n context: TContext,\n options: CreateUnpluginModuleResolutionFunctionsOptions = {}\n): Pick<UnpluginOptions, \"resolveId\" | \"load\"> {\n return {\n async resolveId(\n this: UnpluginBuildContext & UnpluginContext,\n id: string,\n importer?: string,\n opts: {\n isEntry: boolean;\n } = { isEntry: false }\n ): Promise<string | ResolveResult | null | undefined> {\n const normalizedId = removeVirtualPrefix(id);\n const normalizedImporter = importer\n ? removeVirtualPrefix(importer)\n : undefined;\n\n let result = await context.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"pre\"\n },\n normalizedId,\n normalizedImporter,\n opts\n );\n if (isSetString(result)) {\n return result;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id:\n result.virtual && options.prefix !== false\n ? addVirtualPrefix(result.id)\n : result.id\n };\n }\n\n result = await context.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"normal\"\n },\n normalizedId,\n normalizedImporter,\n opts\n );\n if (isSetString(result)) {\n return result;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id:\n result.virtual && options.prefix !== false\n ? addVirtualPrefix(result.id)\n : result.id\n };\n }\n\n result = await context.resolve(\n normalizedId,\n normalizedImporter,\n defu(options.overrides ?? {}, {\n isFile: true,\n ...opts\n })\n );\n if (isSetObject(result)) {\n return {\n ...result,\n id:\n result.virtual && options.prefix !== false\n ? addVirtualPrefix(result.id)\n : result.id\n };\n }\n\n result = await context.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"post\"\n },\n normalizedId,\n normalizedImporter,\n opts\n );\n if (isSetString(result)) {\n return result;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id:\n result.virtual && options.prefix !== false\n ? addVirtualPrefix(result.id)\n : result.id\n };\n }\n\n return null;\n },\n load: {\n filter:\n options.prefix !== false\n ? {\n id: VIRTUAL_MODULE_PREFIX_REGEX\n }\n : undefined,\n async handler(\n this: UnpluginBuildContext & UnpluginContext,\n id: string\n ): Promise<LoadResult | null | undefined> {\n const normalizedId = removeVirtualPrefix(id);\n\n let result = await context.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"pre\"\n },\n normalizedId\n );\n if (result) {\n return result;\n }\n\n result = await context.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"normal\"\n },\n normalizedId\n );\n if (result) {\n return result;\n }\n\n result = await context.load(normalizedId);\n if (result) {\n return result;\n }\n\n return context.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"post\"\n },\n normalizedId\n );\n }\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEA,SAAgB,wCAGd,SACA,UAA0D,CAAC,GACd;CAC7C,OAAO;EACL,MAAM,UAEJ,IACA,UACA,OAEI,EAAE,SAAS,MAAM,GAC+B;GACpD,MAAM,eAAe,oBAAoB,EAAE;GAC3C,MAAM,qBAAqB,WACvB,oBAAoB,QAAQ,IAC5B;GAEJ,IAAI,SAAS,MAAM,QAAQ,SACzB,aACA;IACE,YAAY;IACZ,QAAQ;IACR,OAAO;GACT,GACA,cACA,oBACA,IACF;GACA,IAAI,YAAY,MAAM,GACpB,OAAO;QACF,IAAI,YAAY,MAAM,GAC3B,OAAO;IACL,GAAG;IACH,IACE,OAAO,WAAW,QAAQ,WAAW,QACjC,iBAAiB,OAAO,EAAE,IAC1B,OAAO;GACf;GAGF,SAAS,MAAM,QAAQ,SACrB,aACA;IACE,YAAY;IACZ,QAAQ;IACR,OAAO;GACT,GACA,cACA,oBACA,IACF;GACA,IAAI,YAAY,MAAM,GACpB,OAAO;QACF,IAAI,YAAY,MAAM,GAC3B,OAAO;IACL,GAAG;IACH,IACE,OAAO,WAAW,QAAQ,WAAW,QACjC,iBAAiB,OAAO,EAAE,IAC1B,OAAO;GACf;GAGF,SAAS,MAAM,QAAQ,QACrB,cACA,oBACA,KAAK,QAAQ,aAAa,CAAC,GAAG;IAC5B,QAAQ;IACR,GAAG;GACL,CAAC,CACH;GACA,IAAI,YAAY,MAAM,GACpB,OAAO;IACL,GAAG;IACH,IACE,OAAO,WAAW,QAAQ,WAAW,QACjC,iBAAiB,OAAO,EAAE,IAC1B,OAAO;GACf;GAGF,SAAS,MAAM,QAAQ,SACrB,aACA;IACE,YAAY;IACZ,QAAQ;IACR,OAAO;GACT,GACA,cACA,oBACA,IACF;GACA,IAAI,YAAY,MAAM,GACpB,OAAO;QACF,IAAI,YAAY,MAAM,GAC3B,OAAO;IACL,GAAG;IACH,IACE,OAAO,WAAW,QAAQ,WAAW,QACjC,iBAAiB,OAAO,EAAE,IAC1B,OAAO;GACf;GAGF,OAAO;EACT;EACA,MAAM;GACJ,QACE,QAAQ,WAAW,QACf,EACE,IAAI,4BACN,IACA;GACN,MAAM,QAEJ,IACwC;IACxC,MAAM,eAAe,oBAAoB,EAAE;IAE3C,IAAI,SAAS,MAAM,QAAQ,SACzB,QACA;KACE,YAAY;KACZ,QAAQ;KACR,OAAO;IACT,GACA,YACF;IACA,IAAI,QACF,OAAO;IAGT,SAAS,MAAM,QAAQ,SACrB,QACA;KACE,YAAY;KACZ,QAAQ;KACR,OAAO;IACT,GACA,YACF;IACA,IAAI,QACF,OAAO;IAGT,SAAS,MAAM,QAAQ,KAAK,YAAY;IACxC,IAAI,QACF,OAAO;IAGT,OAAO,QAAQ,SACb,QACA;KACE,YAAY;KACZ,QAAQ;KACR,OAAO;IACT,GACA,YACF;GACF;EACF;CACF;AACF"}
1
+ {"version":3,"file":"module-resolution.mjs","names":[],"sources":["../../../src/lib/unplugin/module-resolution.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 { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport defu from \"defu\";\nimport { LoadResult } from \"rollup\";\nimport type {\n UnpluginBuildContext,\n UnpluginContext,\n UnpluginOptions\n} from \"unplugin\";\nimport {\n addVirtualPrefix,\n removeVirtualPrefix,\n VIRTUAL_MODULE_PREFIX_REGEX\n} from \"../../plugin-utils\";\nimport { ResolveResult, UnresolvedContext } from \"../../types/context\";\nimport { ResolveOptions } from \"../../types/fs\";\n\nexport interface CreateUnpluginModuleResolutionFunctionsOptions {\n /**\n * An indicator of whether to prefix virtual module IDs with a specific string. This is useful for ensuring that virtual modules are only processed by the plugin and not by other plugins or the bundler itself.\n *\n * @remarks\n * - If set to `true`, virtual module IDs will be prefixed with the string `__powerlines-virtual:`.\n * - If set to `false`, no prefix will be added to virtual module IDs.\n *\n * @defaultValue true\n */\n prefix?: boolean;\n\n /**\n * Optional overrides for the module resolution configuration.\n *\n * @remarks\n * This allows you to customize the behavior of the module resolution hooks by providing specific configuration options.\n */\n overrides?: Partial<ResolveOptions>;\n}\n\n/**\n * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.\n *\n * @remarks\n * This includes the `resolveId` and `load` hooks.\n *\n * @see https://rollupjs.org/plugin-development/#resolveid\n * @see https://rollupjs.org/plugin-development/#load\n *\n * @param context - The plugin context.\n * @param options - Options for creating the module resolution functions.\n * @returns The module resolution hooks (`resolveId` and `load`).\n */\nexport function createUnpluginModuleResolutionFunctions<\n TContext extends UnresolvedContext\n>(\n context: TContext,\n options: CreateUnpluginModuleResolutionFunctionsOptions = {}\n): Pick<UnpluginOptions, \"resolveId\" | \"load\"> {\n return {\n async resolveId(\n this: UnpluginBuildContext & UnpluginContext,\n id: string,\n importer?: string,\n opts: {\n isEntry: boolean;\n } = { isEntry: false }\n ): Promise<string | ResolveResult | null | undefined> {\n const normalizedId = removeVirtualPrefix(id);\n const normalizedImporter = importer\n ? removeVirtualPrefix(importer)\n : undefined;\n\n let result = await context.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"pre\"\n },\n normalizedId,\n normalizedImporter,\n opts\n );\n if (isSetString(result)) {\n return result;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id:\n result.virtual && options.prefix !== false\n ? addVirtualPrefix(result.id)\n : result.id\n };\n }\n\n result = await context.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"normal\"\n },\n normalizedId,\n normalizedImporter,\n opts\n );\n if (isSetString(result)) {\n return result;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id:\n result.virtual && options.prefix !== false\n ? addVirtualPrefix(result.id)\n : result.id\n };\n }\n\n result = await context.resolve(\n normalizedId,\n normalizedImporter,\n defu(options.overrides ?? {}, {\n isFile: true,\n ...opts\n })\n );\n if (isSetObject(result)) {\n return {\n ...result,\n id:\n result.virtual && options.prefix !== false\n ? addVirtualPrefix(result.id)\n : result.id\n };\n }\n\n result = await context.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"post\"\n },\n normalizedId,\n normalizedImporter,\n opts\n );\n if (isSetString(result)) {\n return result;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id:\n result.virtual && options.prefix !== false\n ? addVirtualPrefix(result.id)\n : result.id\n };\n }\n\n return null;\n },\n load: {\n filter:\n options.prefix !== false\n ? {\n id: VIRTUAL_MODULE_PREFIX_REGEX\n }\n : undefined,\n async handler(\n this: UnpluginBuildContext & UnpluginContext,\n id: string\n ): Promise<LoadResult | null | undefined> {\n const normalizedId = removeVirtualPrefix(id);\n\n let result = await context.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"pre\"\n },\n normalizedId\n );\n if (result) {\n return result;\n }\n\n result = await context.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"normal\"\n },\n normalizedId\n );\n if (result) {\n return result;\n }\n\n result = await context.load(normalizedId);\n if (result) {\n return result;\n }\n\n return context.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"post\"\n },\n normalizedId\n );\n }\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEA,SAAgB,wCAGd,SACA,UAA0D,CAAC,GACd;CAC7C,OAAO;EACL,MAAM,UAEJ,IACA,UACA,OAEI,EAAE,SAAS,MAAM,GAC+B;GACpD,MAAM,eAAe,oBAAoB,EAAE;GAC3C,MAAM,qBAAqB,WACvB,oBAAoB,QAAQ,IAC5B;GAEJ,IAAI,SAAS,MAAM,QAAQ,SACzB,aACA;IACE,YAAY;IACZ,QAAQ;IACR,OAAO;GACT,GACA,cACA,oBACA,IACF;GACA,IAAI,YAAY,MAAM,GACpB,OAAO;QACF,IAAI,YAAY,MAAM,GAC3B,OAAO;IACL,GAAG;IACH,IACE,OAAO,WAAW,QAAQ,WAAW,QACjC,iBAAiB,OAAO,EAAE,IAC1B,OAAO;GACf;GAGF,SAAS,MAAM,QAAQ,SACrB,aACA;IACE,YAAY;IACZ,QAAQ;IACR,OAAO;GACT,GACA,cACA,oBACA,IACF;GACA,IAAI,YAAY,MAAM,GACpB,OAAO;QACF,IAAI,YAAY,MAAM,GAC3B,OAAO;IACL,GAAG;IACH,IACE,OAAO,WAAW,QAAQ,WAAW,QACjC,iBAAiB,OAAO,EAAE,IAC1B,OAAO;GACf;GAGF,SAAS,MAAM,QAAQ,QACrB,cACA,oBACA,KAAK,QAAQ,aAAa,CAAC,GAAG;IAC5B,QAAQ;IACR,GAAG;GACL,CAAC,CACH;GACA,IAAI,YAAY,MAAM,GACpB,OAAO;IACL,GAAG;IACH,IACE,OAAO,WAAW,QAAQ,WAAW,QACjC,iBAAiB,OAAO,EAAE,IAC1B,OAAO;GACf;GAGF,SAAS,MAAM,QAAQ,SACrB,aACA;IACE,YAAY;IACZ,QAAQ;IACR,OAAO;GACT,GACA,cACA,oBACA,IACF;GACA,IAAI,YAAY,MAAM,GACpB,OAAO;QACF,IAAI,YAAY,MAAM,GAC3B,OAAO;IACL,GAAG;IACH,IACE,OAAO,WAAW,QAAQ,WAAW,QACjC,iBAAiB,OAAO,EAAE,IAC1B,OAAO;GACf;GAGF,OAAO;EACT;EACA,MAAM;GACJ,QACE,QAAQ,WAAW,QACf,EACE,IAAI,4BACN,IACA;GACN,MAAM,QAEJ,IACwC;IACxC,MAAM,eAAe,oBAAoB,EAAE;IAE3C,IAAI,SAAS,MAAM,QAAQ,SACzB,QACA;KACE,YAAY;KACZ,QAAQ;KACR,OAAO;IACT,GACA,YACF;IACA,IAAI,QACF,OAAO;IAGT,SAAS,MAAM,QAAQ,SACrB,QACA;KACE,YAAY;KACZ,QAAQ;KACR,OAAO;IACT,GACA,YACF;IACA,IAAI,QACF,OAAO;IAGT,SAAS,MAAM,QAAQ,KAAK,YAAY;IACxC,IAAI,QACF,OAAO;IAGT,OAAO,QAAQ,SACb,QACA;KACE,YAAY;KACZ,QAAQ;KACR,OAAO;IACT,GACA,YACF;GACF;EACF;CACF;AACF"}
@@ -0,0 +1,23 @@
1
+
2
+
3
+ import __tsdown_shims_path from 'node:path'
4
+ import __tsdown_shims_url from 'node:url'
5
+
6
+ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
+ const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
+
9
+ const require_lib_unplugin_module_resolution = require('./module-resolution.cjs');
10
+ let vitest = require("vitest");
11
+
12
+ //#region src/lib/unplugin/module-resolution.test.ts
13
+ (0, vitest.describe)("base/core/src/lib/unplugin/module-resolution.ts", () => {
14
+ (0, vitest.it)("loads module exports", () => {
15
+ (0, vitest.expect)(require_lib_unplugin_module_resolution.module_resolution_exports).toBeDefined();
16
+ (0, vitest.expect)(typeof require_lib_unplugin_module_resolution.module_resolution_exports).toBe("object");
17
+ });
18
+ (0, vitest.it)("has at least one runtime export", () => {
19
+ (0, vitest.expect)(Object.keys(require_lib_unplugin_module_resolution.module_resolution_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,2 @@
1
+ import __tsdown_shims_path from 'node:path';
2
+ import __tsdown_shims_url from 'node:url';
@@ -0,0 +1,25 @@
1
+
2
+
3
+ import __tsdown_shims_path from 'node:path'
4
+ import __tsdown_shims_url from 'node:url'
5
+
6
+ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
+ const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
+
9
+ import { module_resolution_exports } from "./module-resolution.mjs";
10
+ import { describe, expect, it } from "vitest";
11
+
12
+ //#region src/lib/unplugin/module-resolution.test.ts
13
+ describe("base/core/src/lib/unplugin/module-resolution.ts", () => {
14
+ it("loads module exports", () => {
15
+ expect(module_resolution_exports).toBeDefined();
16
+ expect(typeof module_resolution_exports).toBe("object");
17
+ });
18
+ it("has at least one runtime export", () => {
19
+ expect(Object.keys(module_resolution_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
24
+ export { };
25
+ //# sourceMappingURL=module-resolution.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-resolution.test.mjs","names":["moduleExports"],"sources":["../../../src/lib/unplugin/module-resolution.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./module-resolution\";\n\ndescribe(\"base/core/src/lib/unplugin/module-resolution.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,yDAAyD;CAChE,GAAG,8BAA8B;EAC/B,OAAOA,yBAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,yBAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,yBAAa,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AACH,CAAC"}
@@ -7,6 +7,7 @@ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPat
7
7
  const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
8
 
9
9
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
10
11
  const require_plugin_utils_virtual = require('../../plugin-utils/virtual.cjs');
11
12
  require('../../plugin-utils/index.cjs');
12
13
  const require_lib_unplugin_helpers = require('./helpers.cjs');
@@ -17,6 +18,10 @@ let _stryke_string_format_title_case = require("@stryke/string-format/title-case
17
18
  let unplugin = require("unplugin");
18
19
 
19
20
  //#region src/lib/unplugin/plugin.ts
21
+ var plugin_exports = /* @__PURE__ */ require_runtime.__exportAll({
22
+ createUnplugin: () => createUnplugin,
23
+ createUnpluginResolver: () => createUnpluginResolver
24
+ });
20
25
  /**
21
26
  * Creates a Powerlines unplugin instance.
22
27
  *
@@ -93,4 +98,10 @@ function createUnplugin(context, options = {}) {
93
98
 
94
99
  //#endregion
95
100
  exports.createUnplugin = createUnplugin;
96
- exports.createUnpluginResolver = createUnpluginResolver;
101
+ exports.createUnpluginResolver = createUnpluginResolver;
102
+ Object.defineProperty(exports, 'plugin_exports', {
103
+ enumerable: true,
104
+ get: function () {
105
+ return plugin_exports;
106
+ }
107
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../../src/lib/unplugin/plugin.ts"],"mappings":";;;;;UAoCiB,6BAAA,SAAsC,8CAA8C;;AAArG;;;;;;;EASE,IAAA;EAOkB;AASpB;;;;EATE,kBAAA;AAAA;;;;;;;iBASc,sBAAA,kBAAwC,iBAAA,CAAA,CACtD,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,6BAAA,SACF,eAAA,CAAgB,QAAA;AAAA,UA8BR,qBAAA,SAA8B,6BAA6B;;;;;AA9B3C;AA8BjC;iBAQgB,cAAA,kBAAgC,aAAA,GAAgB,aAAA,CAAA,CAC9D,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,qBAAA,SACF,eAAA,CAAgB,QAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../../src/lib/unplugin/plugin.ts"],"mappings":";;;;;UAoCiB,6BAAA,SAAsC,8CAA8C;;AAArG;;;;;;;EASE,IAAA;EAOkB;AASpB;;;;EATE,kBAAA;AAAA;;;;;;;iBASc,sBAAA,kBAAwC,iBAAA,EACtD,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,6BAAA,SACF,eAAA,CAAgB,QAAA;AAAA,UA8BR,qBAAA,SAA8B,6BAA6B;;;;;AA9B3C;AA8BjC;iBAQgB,cAAA,kBAAgC,aAAA,GAAgB,aAAA,EAC9D,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,qBAAA,SACF,eAAA,CAAgB,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../../src/lib/unplugin/plugin.ts"],"mappings":";;;;;;;UAoCiB,6BAAA,SAAsC,8CAA8C;;;;;;;;;EASnG,IAAA;EATe;;;;;EAgBf,kBAAA;AAAA;;AAAkB;AASpB;;;;iBAAgB,sBAAA,kBAAwC,iBAAA,CAAA,CACtD,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,6BAAA,SACF,eAAA,CAAgB,QAAA;AAAA,UA8BR,qBAAA,SAA8B,6BAA6B;;;;;;;iBAQ5D,cAAA,kBAAgC,aAAA,GAAgB,aAAA,CAAA,CAC9D,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,qBAAA,SACF,eAAA,CAAgB,QAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../../src/lib/unplugin/plugin.ts"],"mappings":";;;;;;;UAoCiB,6BAAA,SAAsC,8CAA8C;;;;;;;;;EASnG,IAAA;EATe;;;;;EAgBf,kBAAA;AAAA;;AAAkB;AASpB;;;;iBAAgB,sBAAA,kBAAwC,iBAAA,EACtD,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,6BAAA,SACF,eAAA,CAAgB,QAAA;AAAA,UA8BR,qBAAA,SAA8B,6BAA6B;;;;;;;iBAQ5D,cAAA,kBAAgC,aAAA,GAAgB,aAAA,EAC9D,OAAA,EAAS,QAAA,EACT,OAAA,GAAS,qBAAA,SACF,eAAA,CAAgB,QAAA"}
@@ -6,6 +6,7 @@ import __tsdown_shims_url from 'node:url'
6
6
  const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
7
  const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
8
 
9
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
9
10
  import { removeVirtualPrefix } from "../../plugin-utils/virtual.mjs";
10
11
  import "../../plugin-utils/index.mjs";
11
12
  import { combineContexts } from "./helpers.mjs";
@@ -16,6 +17,10 @@ import { titleCase } from "@stryke/string-format/title-case";
16
17
  import { setParseImpl } from "unplugin";
17
18
 
18
19
  //#region src/lib/unplugin/plugin.ts
20
+ var plugin_exports = /* @__PURE__ */ __exportAll({
21
+ createUnplugin: () => createUnplugin,
22
+ createUnpluginResolver: () => createUnpluginResolver
23
+ });
19
24
  /**
20
25
  * Creates a Powerlines unplugin instance.
21
26
  *
@@ -91,5 +96,5 @@ function createUnplugin(context, options = {}) {
91
96
  }
92
97
 
93
98
  //#endregion
94
- export { createUnplugin, createUnpluginResolver };
99
+ export { createUnplugin, createUnpluginResolver, plugin_exports };
95
100
  //# sourceMappingURL=plugin.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.mjs","names":[],"sources":["../../../src/lib/unplugin/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 { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport type {\n TransformResult,\n UnpluginBuildContext,\n UnpluginContext\n} from \"unplugin\";\nimport { setParseImpl } from \"unplugin\";\nimport { removeVirtualPrefix } from \"../../plugin-utils\";\nimport type { PluginContext, UnresolvedContext } from \"../../types/context\";\nimport type { UnpluginOptions } from \"../../types/unplugin\";\nimport { getString } from \"../utilities/source-file\";\nimport { combineContexts } from \"./helpers\";\nimport {\n createUnpluginModuleResolutionFunctions,\n CreateUnpluginModuleResolutionFunctionsOptions\n} from \"./module-resolution\";\n\nexport interface CreateUnpluginResolverOptions extends CreateUnpluginModuleResolutionFunctionsOptions {\n /**\n * A name to use for the unplugin instance. This is used for logging and to generate the plugin name. It does not affect the functionality of the plugin.\n *\n * @remarks\n * If not provided, the plugin will be named \"powerlines\". If provided, the plugin will be named `${name} - Powerlines` (e.g., \"MyPlugin - Powerlines\").\n *\n * @defaultValue \"powerlines\"\n */\n name?: string;\n\n /**\n * Whether to silence logging for the plugin hooks. This can be useful for plugins that run frequently or have hooks that are called often, to reduce noise in the logs. When set to `true`, the plugin will not log any messages for its hooks. When set to `false` (the default), the plugin will log messages for its hooks as normal.\n *\n * @defaultValue false\n */\n silenceHookLogging?: boolean;\n}\n\n/**\n * Creates a Powerlines unplugin instance.\n *\n * @param context - The plugin context.\n * @returns The unplugin instance.\n */\nexport function createUnpluginResolver<TContext extends UnresolvedContext>(\n context: TContext,\n options: CreateUnpluginResolverOptions = {}\n): () => UnpluginOptions<TContext> {\n setParseImpl(context.parse);\n\n const name = options.name || \"powerlines\";\n\n const logger = context.extendLogger(\n !options.silenceHookLogging && name !== \"powerlines\" ? { source: name } : {}\n );\n logger.debug(`Initializing ${titleCase(name)} plugin`);\n\n try {\n const { resolveId, load } =\n createUnpluginModuleResolutionFunctions<TContext>(context, options);\n\n return () => ({\n name:\n name.toLowerCase() === \"powerlines\"\n ? \"powerlines\"\n : `powerlines:${kebabCase(name)}`,\n context,\n resolveId,\n load\n });\n } catch (error) {\n logger.error(error instanceof Error ? error.message : String(error));\n\n throw error;\n }\n}\n\nexport interface CreateUnpluginOptions extends CreateUnpluginResolverOptions {}\n\n/**\n * Creates a Powerlines unplugin instance.\n *\n * @param context - The plugin context.\n * @returns The unplugin instance.\n */\nexport function createUnplugin<TContext extends PluginContext = PluginContext>(\n context: TContext,\n options: CreateUnpluginOptions = {}\n): () => UnpluginOptions<TContext> {\n setParseImpl(context.parse.bind(context));\n\n const name = options.name || \"powerlines\";\n\n const logger = context.extendLogger(\n !options.silenceHookLogging && name !== \"powerlines\" ? { source: name } : {}\n );\n logger.debug(`Initializing ${titleCase(name)} plugin`);\n\n try {\n const { resolveId, load } =\n createUnpluginModuleResolutionFunctions<TContext>(context, options);\n\n async function buildStart(this: UnpluginBuildContext) {\n if (!options.silenceHookLogging) {\n logger.debug(\"Powerlines build plugin starting...\");\n }\n\n await context.callHook(\"buildStart\", {\n sequential: true\n });\n }\n\n async function transform(\n this: UnpluginBuildContext & UnpluginContext,\n code: string,\n id: string\n ): Promise<TransformResult | null | undefined> {\n let transformed: TransformResult | string = code;\n\n for (const hook of context.environment.selectHooks(\"transform\")) {\n const result: TransformResult | string | undefined =\n await hook.handler.apply(combineContexts(context, this), [\n getString(transformed),\n removeVirtualPrefix(id)\n ] as [code: string, id: string]);\n if (result) {\n transformed = result;\n }\n }\n\n return transformed;\n }\n\n async function buildEnd(this: UnpluginBuildContext): Promise<void> {\n if (!options.silenceHookLogging) {\n logger.debug(\"Powerlines build plugin finishing...\");\n }\n\n return context.callHook(\"buildEnd\", {\n sequential: true\n });\n }\n\n async function writeBundle(): Promise<void> {\n if (!options.silenceHookLogging) {\n logger.debug(\"Finalizing Powerlines project output...\");\n }\n\n return context.callHook(\"writeBundle\", {\n sequential: true\n });\n }\n\n return () => ({\n name:\n name.toLowerCase() === \"powerlines\"\n ? \"powerlines\"\n : `powerlines:${kebabCase(name)}`,\n context,\n resolveId,\n load,\n transform,\n buildStart,\n buildEnd,\n writeBundle,\n vite: {\n sharedDuringBuild: true\n }\n });\n } catch (error) {\n logger.error(error instanceof Error ? error.message : String(error));\n\n throw error;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA6DA,SAAgB,uBACd,SACA,UAAyC,CAAC,GACT;CACjC,aAAa,QAAQ,KAAK;CAE1B,MAAM,OAAO,QAAQ,QAAQ;CAE7B,MAAM,SAAS,QAAQ,aACrB,CAAC,QAAQ,sBAAsB,SAAS,eAAe,EAAE,QAAQ,KAAK,IAAI,CAAC,CAC7E;CACA,OAAO,MAAM,gBAAgB,UAAU,IAAI,EAAE,QAAQ;CAErD,IAAI;EACF,MAAM,EAAE,WAAW,SACjB,wCAAkD,SAAS,OAAO;EAEpE,cAAc;GACZ,MACE,KAAK,YAAY,MAAM,eACnB,eACA,cAAc,UAAU,IAAI;GAClC;GACA;GACA;EACF;CACF,SAAS,OAAO;EACd,OAAO,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;EAEnE,MAAM;CACR;AACF;;;;;;;AAUA,SAAgB,eACd,SACA,UAAiC,CAAC,GACD;CACjC,aAAa,QAAQ,MAAM,KAAK,OAAO,CAAC;CAExC,MAAM,OAAO,QAAQ,QAAQ;CAE7B,MAAM,SAAS,QAAQ,aACrB,CAAC,QAAQ,sBAAsB,SAAS,eAAe,EAAE,QAAQ,KAAK,IAAI,CAAC,CAC7E;CACA,OAAO,MAAM,gBAAgB,UAAU,IAAI,EAAE,QAAQ;CAErD,IAAI;EACF,MAAM,EAAE,WAAW,SACjB,wCAAkD,SAAS,OAAO;EAEpE,eAAe,aAAuC;GACpD,IAAI,CAAC,QAAQ,oBACX,OAAO,MAAM,qCAAqC;GAGpD,MAAM,QAAQ,SAAS,cAAc,EACnC,YAAY,KACd,CAAC;EACH;EAEA,eAAe,UAEb,MACA,IAC6C;GAC7C,IAAI,cAAwC;GAE5C,KAAK,MAAM,QAAQ,QAAQ,YAAY,YAAY,WAAW,GAAG;IAC/D,MAAM,SACJ,MAAM,KAAK,QAAQ,MAAM,gBAAgB,SAAS,IAAI,GAAG,CACvD,UAAU,WAAW,GACrB,oBAAoB,EAAE,CACxB,CAA+B;IACjC,IAAI,QACF,cAAc;GAElB;GAEA,OAAO;EACT;EAEA,eAAe,WAAoD;GACjE,IAAI,CAAC,QAAQ,oBACX,OAAO,MAAM,sCAAsC;GAGrD,OAAO,QAAQ,SAAS,YAAY,EAClC,YAAY,KACd,CAAC;EACH;EAEA,eAAe,cAA6B;GAC1C,IAAI,CAAC,QAAQ,oBACX,OAAO,MAAM,yCAAyC;GAGxD,OAAO,QAAQ,SAAS,eAAe,EACrC,YAAY,KACd,CAAC;EACH;EAEA,cAAc;GACZ,MACE,KAAK,YAAY,MAAM,eACnB,eACA,cAAc,UAAU,IAAI;GAClC;GACA;GACA;GACA;GACA;GACA;GACA;GACA,MAAM,EACJ,mBAAmB,KACrB;EACF;CACF,SAAS,OAAO;EACd,OAAO,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;EAEnE,MAAM;CACR;AACF"}
1
+ {"version":3,"file":"plugin.mjs","names":[],"sources":["../../../src/lib/unplugin/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 { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport type {\n TransformResult,\n UnpluginBuildContext,\n UnpluginContext\n} from \"unplugin\";\nimport { setParseImpl } from \"unplugin\";\nimport { removeVirtualPrefix } from \"../../plugin-utils\";\nimport type { PluginContext, UnresolvedContext } from \"../../types/context\";\nimport type { UnpluginOptions } from \"../../types/unplugin\";\nimport { getString } from \"../utilities/source-file\";\nimport { combineContexts } from \"./helpers\";\nimport {\n createUnpluginModuleResolutionFunctions,\n CreateUnpluginModuleResolutionFunctionsOptions\n} from \"./module-resolution\";\n\nexport interface CreateUnpluginResolverOptions extends CreateUnpluginModuleResolutionFunctionsOptions {\n /**\n * A name to use for the unplugin instance. This is used for logging and to generate the plugin name. It does not affect the functionality of the plugin.\n *\n * @remarks\n * If not provided, the plugin will be named \"powerlines\". If provided, the plugin will be named `${name} - Powerlines` (e.g., \"MyPlugin - Powerlines\").\n *\n * @defaultValue \"powerlines\"\n */\n name?: string;\n\n /**\n * Whether to silence logging for the plugin hooks. This can be useful for plugins that run frequently or have hooks that are called often, to reduce noise in the logs. When set to `true`, the plugin will not log any messages for its hooks. When set to `false` (the default), the plugin will log messages for its hooks as normal.\n *\n * @defaultValue false\n */\n silenceHookLogging?: boolean;\n}\n\n/**\n * Creates a Powerlines unplugin instance.\n *\n * @param context - The plugin context.\n * @returns The unplugin instance.\n */\nexport function createUnpluginResolver<TContext extends UnresolvedContext>(\n context: TContext,\n options: CreateUnpluginResolverOptions = {}\n): () => UnpluginOptions<TContext> {\n setParseImpl(context.parse);\n\n const name = options.name || \"powerlines\";\n\n const logger = context.extendLogger(\n !options.silenceHookLogging && name !== \"powerlines\" ? { source: name } : {}\n );\n logger.debug(`Initializing ${titleCase(name)} plugin`);\n\n try {\n const { resolveId, load } =\n createUnpluginModuleResolutionFunctions<TContext>(context, options);\n\n return () => ({\n name:\n name.toLowerCase() === \"powerlines\"\n ? \"powerlines\"\n : `powerlines:${kebabCase(name)}`,\n context,\n resolveId,\n load\n });\n } catch (error) {\n logger.error(error instanceof Error ? error.message : String(error));\n\n throw error;\n }\n}\n\nexport interface CreateUnpluginOptions extends CreateUnpluginResolverOptions {}\n\n/**\n * Creates a Powerlines unplugin instance.\n *\n * @param context - The plugin context.\n * @returns The unplugin instance.\n */\nexport function createUnplugin<TContext extends PluginContext = PluginContext>(\n context: TContext,\n options: CreateUnpluginOptions = {}\n): () => UnpluginOptions<TContext> {\n setParseImpl(context.parse.bind(context));\n\n const name = options.name || \"powerlines\";\n\n const logger = context.extendLogger(\n !options.silenceHookLogging && name !== \"powerlines\" ? { source: name } : {}\n );\n logger.debug(`Initializing ${titleCase(name)} plugin`);\n\n try {\n const { resolveId, load } =\n createUnpluginModuleResolutionFunctions<TContext>(context, options);\n\n async function buildStart(this: UnpluginBuildContext) {\n if (!options.silenceHookLogging) {\n logger.debug(\"Powerlines build plugin starting...\");\n }\n\n await context.callHook(\"buildStart\", {\n sequential: true\n });\n }\n\n async function transform(\n this: UnpluginBuildContext & UnpluginContext,\n code: string,\n id: string\n ): Promise<TransformResult | null | undefined> {\n let transformed: TransformResult | string = code;\n\n for (const hook of context.environment.selectHooks(\"transform\")) {\n const result: TransformResult | string | undefined =\n await hook.handler.apply(combineContexts(context, this), [\n getString(transformed),\n removeVirtualPrefix(id)\n ] as [code: string, id: string]);\n if (result) {\n transformed = result;\n }\n }\n\n return transformed;\n }\n\n async function buildEnd(this: UnpluginBuildContext): Promise<void> {\n if (!options.silenceHookLogging) {\n logger.debug(\"Powerlines build plugin finishing...\");\n }\n\n return context.callHook(\"buildEnd\", {\n sequential: true\n });\n }\n\n async function writeBundle(): Promise<void> {\n if (!options.silenceHookLogging) {\n logger.debug(\"Finalizing Powerlines project output...\");\n }\n\n return context.callHook(\"writeBundle\", {\n sequential: true\n });\n }\n\n return () => ({\n name:\n name.toLowerCase() === \"powerlines\"\n ? \"powerlines\"\n : `powerlines:${kebabCase(name)}`,\n context,\n resolveId,\n load,\n transform,\n buildStart,\n buildEnd,\n writeBundle,\n vite: {\n sharedDuringBuild: true\n }\n });\n } catch (error) {\n logger.error(error instanceof Error ? error.message : String(error));\n\n throw error;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DA,SAAgB,uBACd,SACA,UAAyC,CAAC,GACT;CACjC,aAAa,QAAQ,KAAK;CAE1B,MAAM,OAAO,QAAQ,QAAQ;CAE7B,MAAM,SAAS,QAAQ,aACrB,CAAC,QAAQ,sBAAsB,SAAS,eAAe,EAAE,QAAQ,KAAK,IAAI,CAAC,CAC7E;CACA,OAAO,MAAM,gBAAgB,UAAU,IAAI,EAAE,QAAQ;CAErD,IAAI;EACF,MAAM,EAAE,WAAW,SACjB,wCAAkD,SAAS,OAAO;EAEpE,cAAc;GACZ,MACE,KAAK,YAAY,MAAM,eACnB,eACA,cAAc,UAAU,IAAI;GAClC;GACA;GACA;EACF;CACF,SAAS,OAAO;EACd,OAAO,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;EAEnE,MAAM;CACR;AACF;;;;;;;AAUA,SAAgB,eACd,SACA,UAAiC,CAAC,GACD;CACjC,aAAa,QAAQ,MAAM,KAAK,OAAO,CAAC;CAExC,MAAM,OAAO,QAAQ,QAAQ;CAE7B,MAAM,SAAS,QAAQ,aACrB,CAAC,QAAQ,sBAAsB,SAAS,eAAe,EAAE,QAAQ,KAAK,IAAI,CAAC,CAC7E;CACA,OAAO,MAAM,gBAAgB,UAAU,IAAI,EAAE,QAAQ;CAErD,IAAI;EACF,MAAM,EAAE,WAAW,SACjB,wCAAkD,SAAS,OAAO;EAEpE,eAAe,aAAuC;GACpD,IAAI,CAAC,QAAQ,oBACX,OAAO,MAAM,qCAAqC;GAGpD,MAAM,QAAQ,SAAS,cAAc,EACnC,YAAY,KACd,CAAC;EACH;EAEA,eAAe,UAEb,MACA,IAC6C;GAC7C,IAAI,cAAwC;GAE5C,KAAK,MAAM,QAAQ,QAAQ,YAAY,YAAY,WAAW,GAAG;IAC/D,MAAM,SACJ,MAAM,KAAK,QAAQ,MAAM,gBAAgB,SAAS,IAAI,GAAG,CACvD,UAAU,WAAW,GACrB,oBAAoB,EAAE,CACxB,CAA+B;IACjC,IAAI,QACF,cAAc;GAElB;GAEA,OAAO;EACT;EAEA,eAAe,WAAoD;GACjE,IAAI,CAAC,QAAQ,oBACX,OAAO,MAAM,sCAAsC;GAGrD,OAAO,QAAQ,SAAS,YAAY,EAClC,YAAY,KACd,CAAC;EACH;EAEA,eAAe,cAA6B;GAC1C,IAAI,CAAC,QAAQ,oBACX,OAAO,MAAM,yCAAyC;GAGxD,OAAO,QAAQ,SAAS,eAAe,EACrC,YAAY,KACd,CAAC;EACH;EAEA,cAAc;GACZ,MACE,KAAK,YAAY,MAAM,eACnB,eACA,cAAc,UAAU,IAAI;GAClC;GACA;GACA;GACA;GACA;GACA;GACA;GACA,MAAM,EACJ,mBAAmB,KACrB;EACF;CACF,SAAS,OAAO;EACd,OAAO,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;EAEnE,MAAM;CACR;AACF"}
@@ -0,0 +1,23 @@
1
+
2
+
3
+ import __tsdown_shims_path from 'node:path'
4
+ import __tsdown_shims_url from 'node:url'
5
+
6
+ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
+ const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
+
9
+ const require_lib_unplugin_plugin = require('./plugin.cjs');
10
+ let vitest = require("vitest");
11
+
12
+ //#region src/lib/unplugin/plugin.test.ts
13
+ (0, vitest.describe)("base/core/src/lib/unplugin/plugin.ts", () => {
14
+ (0, vitest.it)("loads module exports", () => {
15
+ (0, vitest.expect)(require_lib_unplugin_plugin.plugin_exports).toBeDefined();
16
+ (0, vitest.expect)(typeof require_lib_unplugin_plugin.plugin_exports).toBe("object");
17
+ });
18
+ (0, vitest.it)("has at least one runtime export", () => {
19
+ (0, vitest.expect)(Object.keys(require_lib_unplugin_plugin.plugin_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,2 @@
1
+ import __tsdown_shims_path from 'node:path';
2
+ import __tsdown_shims_url from 'node:url';
@@ -0,0 +1,25 @@
1
+
2
+
3
+ import __tsdown_shims_path from 'node:path'
4
+ import __tsdown_shims_url from 'node:url'
5
+
6
+ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
+ const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
+
9
+ import { plugin_exports } from "./plugin.mjs";
10
+ import { describe, expect, it } from "vitest";
11
+
12
+ //#region src/lib/unplugin/plugin.test.ts
13
+ describe("base/core/src/lib/unplugin/plugin.ts", () => {
14
+ it("loads module exports", () => {
15
+ expect(plugin_exports).toBeDefined();
16
+ expect(typeof plugin_exports).toBe("object");
17
+ });
18
+ it("has at least one runtime export", () => {
19
+ expect(Object.keys(plugin_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
24
+ export { };
25
+ //# sourceMappingURL=plugin.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.test.mjs","names":["moduleExports"],"sources":["../../../src/lib/unplugin/plugin.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./plugin\";\n\ndescribe(\"base/core/src/lib/unplugin/plugin.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,8CAA8C;CACrD,GAAG,8BAA8B;EAC/B,OAAOA,cAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,cAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,cAAa,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AACH,CAAC"}
@@ -7,9 +7,16 @@ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPat
7
7
  const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
8
 
9
9
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
10
11
  let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
11
12
 
12
13
  //#region src/lib/utilities/file-header.ts
14
+ var file_header_exports = /* @__PURE__ */ require_runtime.__exportAll({
15
+ getFileHeader: () => getFileHeader,
16
+ getFileHeaderWarning: () => getFileHeaderWarning,
17
+ getFileHeaderWarningText: () => getFileHeaderWarningText,
18
+ getTypescriptFileHeader: () => getTypescriptFileHeader
19
+ });
13
20
  /**
14
21
  * Generates a file header comment with a warning about automatic overwriting.
15
22
  *
@@ -60,6 +67,12 @@ ${getFileHeader(context)}
60
67
  }
61
68
 
62
69
  //#endregion
70
+ Object.defineProperty(exports, 'file_header_exports', {
71
+ enumerable: true,
72
+ get: function () {
73
+ return file_header_exports;
74
+ }
75
+ });
63
76
  exports.getFileHeader = getFileHeader;
64
77
  exports.getFileHeaderWarning = getFileHeaderWarning;
65
78
  exports.getFileHeaderWarningText = getFileHeaderWarningText;
@@ -6,9 +6,16 @@ import __tsdown_shims_url from 'node:url'
6
6
  const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
7
  const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
8
 
9
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
9
10
  import { titleCase } from "@stryke/string-format/title-case";
10
11
 
11
12
  //#region src/lib/utilities/file-header.ts
13
+ var file_header_exports = /* @__PURE__ */ __exportAll({
14
+ getFileHeader: () => getFileHeader,
15
+ getFileHeaderWarning: () => getFileHeaderWarning,
16
+ getFileHeaderWarningText: () => getFileHeaderWarningText,
17
+ getTypescriptFileHeader: () => getTypescriptFileHeader
18
+ });
12
19
  /**
13
20
  * Generates a file header comment with a warning about automatic overwriting.
14
21
  *
@@ -59,5 +66,5 @@ ${getFileHeader(context)}
59
66
  }
60
67
 
61
68
  //#endregion
62
- export { getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getTypescriptFileHeader };
69
+ export { file_header_exports, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getTypescriptFileHeader };
63
70
  //# sourceMappingURL=file-header.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-header.mjs","names":[],"sources":["../../../src/lib/utilities/file-header.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 { titleCase } from \"@stryke/string-format/title-case\";\nimport { Context } from \"../../types/context\";\n\nexport interface FileHeaderOptions {\n directive?: string | null;\n prettierIgnore?: boolean;\n}\n\n/**\n * Generates a file header comment with a warning about automatic overwriting.\n *\n * @param overwrite - Whether the file will be automatically overwritten. If `false`, the warning will indicate that the file will not be overwritten. If `true` or omitted, the warning will indicate that the file will be overwritten.\n * @param framework - The name of the framework to include in the warning message. Defaults to \"powerlines\".\n * @returns A string containing the file header warning message.\n */\nexport function getFileHeaderWarningText(\n overwrite = true,\n framework = \"powerlines\"\n): string {\n return overwrite !== false\n ? `Do not edit this file manually - it will be overwritten automatically. Automatic overwrites can be disabled by using the \\`output.overwrite\\` option.`\n : `This file was generated on ${new Date().toLocaleString()} - it will not be overwritten by ${titleCase(framework)} while the \\`output.overwrite\\` option is set to \\`true\\`.`;\n}\n\n/**\n * Generates a file header warning message based on the provided context.\n *\n * @param context - The Powerlines context.\n * @returns A string containing the file header warning message.\n */\nexport function getFileHeaderWarning(context: Context): string {\n return getFileHeaderWarningText(\n context.config.output?.overwrite,\n context.config.framework?.name\n );\n}\n\n/**\n * Generates a file header comment for a generated source file, including a warning about automatic overwriting.\n *\n * @param context - The Powerlines context.\n * @param comment - The comment syntax to use for the header (e.g., `//` for JavaScript/TypeScript, `#` for Python). Defaults to `//`.\n * @returns A string containing the file header comment.\n */\nexport function getFileHeader(context: Context, comment = \"//\"): string {\n return `\n${comment} Generated by ${titleCase(context.config.framework?.name) || \"Powerlines\"}\n${comment} ${getFileHeaderWarning(context)}\n`;\n}\n\n/**\n * Generates a file header comment for a generated TypeScript source file, including a warning about automatic overwriting.\n *\n * @param context - The Powerlines context.\n * @param options - Additional options for generating the file header, such as a directive to include and whether to add a Prettier ignore comment.\n * @returns A string containing the file header comment for a TypeScript file.\n */\nexport function getTypescriptFileHeader(\n context: Context,\n options: FileHeaderOptions = {}\n): string {\n const { directive = null, prettierIgnore = false } = options;\n\n return `/* eslint-disable */\n// biome-ignore lint: disable\n${prettierIgnore ? `// prettier-ignore` : \"\"}${directive ? `\\n\\n${directive}\\n` : \"\\n\"}\n${getFileHeader(context)}\n\n`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiCA,SAAgB,yBACd,YAAY,MACZ,YAAY,cACJ;CACR,OAAO,cAAc,QACjB,0JACA,+CAA8B,IAAI,KAAK,GAAE,eAAe,EAAE,mCAAmC,UAAU,SAAS,EAAE;AACxH;;;;;;;AAQA,SAAgB,qBAAqB,SAA0B;CAC7D,OAAO,yBACL,QAAQ,OAAO,QAAQ,WACvB,QAAQ,OAAO,WAAW,IAC5B;AACF;;;;;;;;AASA,SAAgB,cAAc,SAAkB,UAAU,MAAc;CACtE,OAAO;EACP,QAAQ,gBAAgB,UAAU,QAAQ,OAAO,WAAW,IAAI,KAAK,aAAa;EAClF,QAAQ,GAAG,qBAAqB,OAAO,EAAE;;AAE3C;;;;;;;;AASA,SAAgB,wBACd,SACA,UAA6B,CAAC,GACtB;CACR,MAAM,EAAE,YAAY,MAAM,iBAAiB,UAAU;CAErD,OAAO;;EAEP,iBAAiB,uBAAuB,KAAK,YAAY,OAAO,UAAU,MAAM,KAAK;EACrF,cAAc,OAAO,EAAE;;;AAGzB"}
1
+ {"version":3,"file":"file-header.mjs","names":[],"sources":["../../../src/lib/utilities/file-header.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 { titleCase } from \"@stryke/string-format/title-case\";\nimport { Context } from \"../../types/context\";\n\nexport interface FileHeaderOptions {\n directive?: string | null;\n prettierIgnore?: boolean;\n}\n\n/**\n * Generates a file header comment with a warning about automatic overwriting.\n *\n * @param overwrite - Whether the file will be automatically overwritten. If `false`, the warning will indicate that the file will not be overwritten. If `true` or omitted, the warning will indicate that the file will be overwritten.\n * @param framework - The name of the framework to include in the warning message. Defaults to \"powerlines\".\n * @returns A string containing the file header warning message.\n */\nexport function getFileHeaderWarningText(\n overwrite = true,\n framework = \"powerlines\"\n): string {\n return overwrite !== false\n ? `Do not edit this file manually - it will be overwritten automatically. Automatic overwrites can be disabled by using the \\`output.overwrite\\` option.`\n : `This file was generated on ${new Date().toLocaleString()} - it will not be overwritten by ${titleCase(framework)} while the \\`output.overwrite\\` option is set to \\`true\\`.`;\n}\n\n/**\n * Generates a file header warning message based on the provided context.\n *\n * @param context - The Powerlines context.\n * @returns A string containing the file header warning message.\n */\nexport function getFileHeaderWarning(context: Context): string {\n return getFileHeaderWarningText(\n context.config.output?.overwrite,\n context.config.framework?.name\n );\n}\n\n/**\n * Generates a file header comment for a generated source file, including a warning about automatic overwriting.\n *\n * @param context - The Powerlines context.\n * @param comment - The comment syntax to use for the header (e.g., `//` for JavaScript/TypeScript, `#` for Python). Defaults to `//`.\n * @returns A string containing the file header comment.\n */\nexport function getFileHeader(context: Context, comment = \"//\"): string {\n return `\n${comment} Generated by ${titleCase(context.config.framework?.name) || \"Powerlines\"}\n${comment} ${getFileHeaderWarning(context)}\n`;\n}\n\n/**\n * Generates a file header comment for a generated TypeScript source file, including a warning about automatic overwriting.\n *\n * @param context - The Powerlines context.\n * @param options - Additional options for generating the file header, such as a directive to include and whether to add a Prettier ignore comment.\n * @returns A string containing the file header comment for a TypeScript file.\n */\nexport function getTypescriptFileHeader(\n context: Context,\n options: FileHeaderOptions = {}\n): string {\n const { directive = null, prettierIgnore = false } = options;\n\n return `/* eslint-disable */\n// biome-ignore lint: disable\n${prettierIgnore ? `// prettier-ignore` : \"\"}${directive ? `\\n\\n${directive}\\n` : \"\\n\"}\n${getFileHeader(context)}\n\n`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,SAAgB,yBACd,YAAY,MACZ,YAAY,cACJ;CACR,OAAO,cAAc,QACjB,0JACA,+CAA8B,IAAI,KAAK,GAAE,eAAe,EAAE,mCAAmC,UAAU,SAAS,EAAE;AACxH;;;;;;;AAQA,SAAgB,qBAAqB,SAA0B;CAC7D,OAAO,yBACL,QAAQ,OAAO,QAAQ,WACvB,QAAQ,OAAO,WAAW,IAC5B;AACF;;;;;;;;AASA,SAAgB,cAAc,SAAkB,UAAU,MAAc;CACtE,OAAO;EACP,QAAQ,gBAAgB,UAAU,QAAQ,OAAO,WAAW,IAAI,KAAK,aAAa;EAClF,QAAQ,GAAG,qBAAqB,OAAO,EAAE;;AAE3C;;;;;;;;AASA,SAAgB,wBACd,SACA,UAA6B,CAAC,GACtB;CACR,MAAM,EAAE,YAAY,MAAM,iBAAiB,UAAU;CAErD,OAAO;;EAEP,iBAAiB,uBAAuB,KAAK,YAAY,OAAO,UAAU,MAAM,KAAK;EACrF,cAAc,OAAO,EAAE;;;AAGzB"}
@@ -0,0 +1,23 @@
1
+
2
+
3
+ import __tsdown_shims_path from 'node:path'
4
+ import __tsdown_shims_url from 'node:url'
5
+
6
+ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
+ const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
+
9
+ const require_lib_utilities_file_header = require('./file-header.cjs');
10
+ let vitest = require("vitest");
11
+
12
+ //#region src/lib/utilities/file-header.test.ts
13
+ (0, vitest.describe)("base/core/src/lib/utilities/file-header.ts", () => {
14
+ (0, vitest.it)("loads module exports", () => {
15
+ (0, vitest.expect)(require_lib_utilities_file_header.file_header_exports).toBeDefined();
16
+ (0, vitest.expect)(typeof require_lib_utilities_file_header.file_header_exports).toBe("object");
17
+ });
18
+ (0, vitest.it)("has at least one runtime export", () => {
19
+ (0, vitest.expect)(Object.keys(require_lib_utilities_file_header.file_header_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,2 @@
1
+ import __tsdown_shims_path from 'node:path';
2
+ import __tsdown_shims_url from 'node:url';
@@ -0,0 +1,25 @@
1
+
2
+
3
+ import __tsdown_shims_path from 'node:path'
4
+ import __tsdown_shims_url from 'node:url'
5
+
6
+ const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
7
+ const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
8
+
9
+ import { file_header_exports } from "./file-header.mjs";
10
+ import { describe, expect, it } from "vitest";
11
+
12
+ //#region src/lib/utilities/file-header.test.ts
13
+ describe("base/core/src/lib/utilities/file-header.ts", () => {
14
+ it("loads module exports", () => {
15
+ expect(file_header_exports).toBeDefined();
16
+ expect(typeof file_header_exports).toBe("object");
17
+ });
18
+ it("has at least one runtime export", () => {
19
+ expect(Object.keys(file_header_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
24
+ export { };
25
+ //# sourceMappingURL=file-header.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-header.test.mjs","names":["moduleExports"],"sources":["../../../src/lib/utilities/file-header.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./file-header\";\n\ndescribe(\"base/core/src/lib/utilities/file-header.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,oDAAoD;CAC3D,GAAG,8BAA8B;EAC/B,OAAOA,mBAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,mBAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,mBAAa,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AACH,CAAC"}
@@ -18,6 +18,10 @@ let prettier_plugin_organize_imports = require("prettier-plugin-organize-imports
18
18
  prettier_plugin_organize_imports = require_runtime.__toESM(prettier_plugin_organize_imports, 1);
19
19
 
20
20
  //#region src/lib/utilities/format.ts
21
+ var format_exports = /* @__PURE__ */ require_runtime.__exportAll({
22
+ format: () => format,
23
+ formatFolder: () => formatFolder
24
+ });
21
25
  /**
22
26
  * Formats code using Prettier based on the file path.
23
27
  *
@@ -62,4 +66,10 @@ async function formatFolder(context, path) {
62
66
 
63
67
  //#endregion
64
68
  exports.format = format;
65
- exports.formatFolder = formatFolder;
69
+ exports.formatFolder = formatFolder;
70
+ Object.defineProperty(exports, 'format_exports', {
71
+ enumerable: true,
72
+ get: function () {
73
+ return format_exports;
74
+ }
75
+ });