@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
@@ -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 { modules_exports } from "./modules.mjs";
10
+ import { describe, expect, it } from "vitest";
11
+
12
+ //#region src/plugin-utils/modules.test.ts
13
+ describe("base/core/src/plugin-utils/modules.ts", () => {
14
+ it("loads module exports", () => {
15
+ expect(modules_exports).toBeDefined();
16
+ expect(typeof modules_exports).toBe("object");
17
+ });
18
+ it("has at least one runtime export", () => {
19
+ expect(Object.keys(modules_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
24
+ export { };
25
+ //# sourceMappingURL=modules.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modules.test.mjs","names":["moduleExports"],"sources":["../../src/plugin-utils/modules.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./modules\";\n\ndescribe(\"base/core/src/plugin-utils/modules.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"}
@@ -7,11 +7,13 @@ 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_path_replace = require("@stryke/path/replace");
11
12
  let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
12
13
  let _stryke_path_join = require("@stryke/path/join");
13
14
 
14
15
  //#region src/plugin-utils/paths.ts
16
+ var paths_exports = /* @__PURE__ */ require_runtime.__exportAll({ replacePathTokens: () => replacePathTokens });
15
17
  /**
16
18
  * Replaces tokens in the given path string with their corresponding values from the context.
17
19
  *
@@ -60,4 +62,10 @@ function replacePathTokens(context, path) {
60
62
  }
61
63
 
62
64
  //#endregion
65
+ Object.defineProperty(exports, 'paths_exports', {
66
+ enumerable: true,
67
+ get: function () {
68
+ return paths_exports;
69
+ }
70
+ });
63
71
  exports.replacePathTokens = replacePathTokens;
@@ -6,11 +6,13 @@ 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 { replacePath } from "@stryke/path/replace";
10
11
  import { isSetString } from "@stryke/type-checks/is-set-string";
11
12
  import { joinPaths } from "@stryke/path/join";
12
13
 
13
14
  //#region src/plugin-utils/paths.ts
15
+ var paths_exports = /* @__PURE__ */ __exportAll({ replacePathTokens: () => replacePathTokens });
14
16
  /**
15
17
  * Replaces tokens in the given path string with their corresponding values from the context.
16
18
  *
@@ -59,5 +61,5 @@ function replacePathTokens(context, path) {
59
61
  }
60
62
 
61
63
  //#endregion
62
- export { replacePathTokens };
64
+ export { paths_exports, replacePathTokens };
63
65
  //# sourceMappingURL=paths.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"paths.mjs","names":[],"sources":["../../src/plugin-utils/paths.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 { joinPaths } from \"@stryke/path/join\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { IsUndefined } from \"@stryke/types/base\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Replaces tokens in the given path string with their corresponding values from the context.\n *\n * @remarks\n * The following tokens are supported:\n * - `{cwd}` - The current working directory.\n * - `{workspaceRoot}` - The current working directory (same as `{cwd}`).\n * - `{root}` - The root directory of the project (same as `{projectRoot}`).\n * - `{projectRoot}` - The root directory of the project (same as `{root}`).\n * - `{sourceRoot}` - The source root directory of the project (usually `{root}/src`).\n * - `{powerlinesPath}` - The directory where Powerlines is installed.\n * - `{cachePath}` - The environment's directory for cached files.\n * - `{dataPath}` - The environment's directory for data files.\n * - `{logPath}` - The environment's directory for log files.\n * - `{tempPath}` - The environment's directory for temporary files.\n * - `{configPath}` - The environment's directory for configuration files.\n * - `{output}` - The configured output directory for the project.\n * - `{outputPath}` - The configured output directory for the project.\n * - `{copy}` - The configured final/copied distribution directory for the project.\n * - `{copyPath}` - The configured final/copied distribution directory for the project.\n * - `{artifactsPath}` - The configured directory for build artifacts.\n * - `{builtinPath}` - The configured directory for generated built-in plugins.\n * - `{entryPath}` - The configured directory for generated entry files.\n *\n * @example\n * ```ts\n * const path = replacePathTokens(context, \"{root}/dist\");\n * // If context.config.root is \"/home/user/project\", this will return \"/home/user/project/dist\"\n *\n * const pathWithCopy = replacePathTokens(context, \"{copy}\");\n * // If context.config.output.copy.path is \"/home/user/project/dist-copy\", this will return \"/home/user/project/dist-copy\"\n * ```\n *\n * @param context - The context containing the values for the path tokens.\n * @param path - The path string with tokens to replace.\n * @returns The path string with tokens replaced by their corresponding values from the context.\n */\nexport function replacePathTokens(\n context: UnresolvedContext,\n path?: string\n): IsUndefined<typeof path> extends true ? undefined : string {\n if (!path) {\n return path as IsUndefined<typeof path> extends true ? undefined : string;\n }\n\n let result = path\n .replaceAll(\"{cwd}\", context.config.cwd || process.cwd())\n .replaceAll(\"{workspaceRoot}\", context.config.cwd || process.cwd())\n .replaceAll(\"{root}\", context.config.root)\n .replaceAll(\"{projectRoot}\", context.config.root)\n .replaceAll(\"{sourceRoot}\", joinPaths(context.config.root, \"src\"))\n // .replaceAll(\"{powerlinesPath}\", context.powerlinesPath)\n .replaceAll(\"{cachePath}\", context.cachePath)\n .replaceAll(\"{dataPath}\", context.dataPath)\n .replaceAll(\"{logPath}\", context.envPaths.log)\n .replaceAll(\"{tempPath}\", context.envPaths.temp)\n .replaceAll(\"{configPath}\", context.envPaths.config)\n .replaceAll(\n \"{artifactsPath}\",\n replacePath(context.artifactsPath, context.config.cwd)\n )\n .replaceAll(\n \"{builtinPath}\",\n replacePath(context.builtinsPath, context.config.cwd)\n )\n .replaceAll(\n \"{builtinsPath}\",\n replacePath(context.builtinsPath, context.config.cwd)\n )\n .replaceAll(\n \"{entryPath}\",\n replacePath(context.entryPath, context.config.cwd)\n );\n\n if (context.config.output) {\n if (isSetString(context.config.output.path)) {\n result = result\n .replaceAll(\"{outputPath}\", context.config.output.path)\n .replaceAll(\"{output}\", context.config.output.path);\n }\n if (\n context.config.output.copy &&\n isSetString(context.config.output.copy?.path)\n ) {\n result = result\n .replaceAll(\"{copyPath}\", context.config.output.copy.path)\n .replaceAll(\"{copy}\", context.config.output.copy.path);\n }\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DA,SAAgB,kBACd,SACA,MAC4D;CAC5D,IAAI,CAAC,MACH,OAAO;CAGT,IAAI,SAAS,KACV,WAAW,SAAS,QAAQ,OAAO,OAAO,QAAQ,IAAI,CAAC,EACvD,WAAW,mBAAmB,QAAQ,OAAO,OAAO,QAAQ,IAAI,CAAC,EACjE,WAAW,UAAU,QAAQ,OAAO,IAAI,EACxC,WAAW,iBAAiB,QAAQ,OAAO,IAAI,EAC/C,WAAW,gBAAgB,UAAU,QAAQ,OAAO,MAAM,KAAK,CAAC,EAEhE,WAAW,eAAe,QAAQ,SAAS,EAC3C,WAAW,cAAc,QAAQ,QAAQ,EACzC,WAAW,aAAa,QAAQ,SAAS,GAAG,EAC5C,WAAW,cAAc,QAAQ,SAAS,IAAI,EAC9C,WAAW,gBAAgB,QAAQ,SAAS,MAAM,EAClD,WACC,mBACA,YAAY,QAAQ,eAAe,QAAQ,OAAO,GAAG,CACvD,EACC,WACC,iBACA,YAAY,QAAQ,cAAc,QAAQ,OAAO,GAAG,CACtD,EACC,WACC,kBACA,YAAY,QAAQ,cAAc,QAAQ,OAAO,GAAG,CACtD,EACC,WACC,eACA,YAAY,QAAQ,WAAW,QAAQ,OAAO,GAAG,CACnD;CAEF,IAAI,QAAQ,OAAO,QAAQ;EACzB,IAAI,YAAY,QAAQ,OAAO,OAAO,IAAI,GACxC,SAAS,OACN,WAAW,gBAAgB,QAAQ,OAAO,OAAO,IAAI,EACrD,WAAW,YAAY,QAAQ,OAAO,OAAO,IAAI;EAEtD,IACE,QAAQ,OAAO,OAAO,QACtB,YAAY,QAAQ,OAAO,OAAO,MAAM,IAAI,GAE5C,SAAS,OACN,WAAW,cAAc,QAAQ,OAAO,OAAO,KAAK,IAAI,EACxD,WAAW,UAAU,QAAQ,OAAO,OAAO,KAAK,IAAI;CAE3D;CAEA,OAAO;AACT"}
1
+ {"version":3,"file":"paths.mjs","names":[],"sources":["../../src/plugin-utils/paths.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 { joinPaths } from \"@stryke/path/join\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { IsUndefined } from \"@stryke/types/base\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Replaces tokens in the given path string with their corresponding values from the context.\n *\n * @remarks\n * The following tokens are supported:\n * - `{cwd}` - The current working directory.\n * - `{workspaceRoot}` - The current working directory (same as `{cwd}`).\n * - `{root}` - The root directory of the project (same as `{projectRoot}`).\n * - `{projectRoot}` - The root directory of the project (same as `{root}`).\n * - `{sourceRoot}` - The source root directory of the project (usually `{root}/src`).\n * - `{powerlinesPath}` - The directory where Powerlines is installed.\n * - `{cachePath}` - The environment's directory for cached files.\n * - `{dataPath}` - The environment's directory for data files.\n * - `{logPath}` - The environment's directory for log files.\n * - `{tempPath}` - The environment's directory for temporary files.\n * - `{configPath}` - The environment's directory for configuration files.\n * - `{output}` - The configured output directory for the project.\n * - `{outputPath}` - The configured output directory for the project.\n * - `{copy}` - The configured final/copied distribution directory for the project.\n * - `{copyPath}` - The configured final/copied distribution directory for the project.\n * - `{artifactsPath}` - The configured directory for build artifacts.\n * - `{builtinPath}` - The configured directory for generated built-in plugins.\n * - `{entryPath}` - The configured directory for generated entry files.\n *\n * @example\n * ```ts\n * const path = replacePathTokens(context, \"{root}/dist\");\n * // If context.config.root is \"/home/user/project\", this will return \"/home/user/project/dist\"\n *\n * const pathWithCopy = replacePathTokens(context, \"{copy}\");\n * // If context.config.output.copy.path is \"/home/user/project/dist-copy\", this will return \"/home/user/project/dist-copy\"\n * ```\n *\n * @param context - The context containing the values for the path tokens.\n * @param path - The path string with tokens to replace.\n * @returns The path string with tokens replaced by their corresponding values from the context.\n */\nexport function replacePathTokens(\n context: UnresolvedContext,\n path?: string\n): IsUndefined<typeof path> extends true ? undefined : string {\n if (!path) {\n return path as IsUndefined<typeof path> extends true ? undefined : string;\n }\n\n let result = path\n .replaceAll(\"{cwd}\", context.config.cwd || process.cwd())\n .replaceAll(\"{workspaceRoot}\", context.config.cwd || process.cwd())\n .replaceAll(\"{root}\", context.config.root)\n .replaceAll(\"{projectRoot}\", context.config.root)\n .replaceAll(\"{sourceRoot}\", joinPaths(context.config.root, \"src\"))\n // .replaceAll(\"{powerlinesPath}\", context.powerlinesPath)\n .replaceAll(\"{cachePath}\", context.cachePath)\n .replaceAll(\"{dataPath}\", context.dataPath)\n .replaceAll(\"{logPath}\", context.envPaths.log)\n .replaceAll(\"{tempPath}\", context.envPaths.temp)\n .replaceAll(\"{configPath}\", context.envPaths.config)\n .replaceAll(\n \"{artifactsPath}\",\n replacePath(context.artifactsPath, context.config.cwd)\n )\n .replaceAll(\n \"{builtinPath}\",\n replacePath(context.builtinsPath, context.config.cwd)\n )\n .replaceAll(\n \"{builtinsPath}\",\n replacePath(context.builtinsPath, context.config.cwd)\n )\n .replaceAll(\n \"{entryPath}\",\n replacePath(context.entryPath, context.config.cwd)\n );\n\n if (context.config.output) {\n if (isSetString(context.config.output.path)) {\n result = result\n .replaceAll(\"{outputPath}\", context.config.output.path)\n .replaceAll(\"{output}\", context.config.output.path);\n }\n if (\n context.config.output.copy &&\n isSetString(context.config.output.copy?.path)\n ) {\n result = result\n .replaceAll(\"{copyPath}\", context.config.output.copy.path)\n .replaceAll(\"{copy}\", context.config.output.copy.path);\n }\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DA,SAAgB,kBACd,SACA,MAC4D;CAC5D,IAAI,CAAC,MACH,OAAO;CAGT,IAAI,SAAS,KACV,WAAW,SAAS,QAAQ,OAAO,OAAO,QAAQ,IAAI,CAAC,EACvD,WAAW,mBAAmB,QAAQ,OAAO,OAAO,QAAQ,IAAI,CAAC,EACjE,WAAW,UAAU,QAAQ,OAAO,IAAI,EACxC,WAAW,iBAAiB,QAAQ,OAAO,IAAI,EAC/C,WAAW,gBAAgB,UAAU,QAAQ,OAAO,MAAM,KAAK,CAAC,EAEhE,WAAW,eAAe,QAAQ,SAAS,EAC3C,WAAW,cAAc,QAAQ,QAAQ,EACzC,WAAW,aAAa,QAAQ,SAAS,GAAG,EAC5C,WAAW,cAAc,QAAQ,SAAS,IAAI,EAC9C,WAAW,gBAAgB,QAAQ,SAAS,MAAM,EAClD,WACC,mBACA,YAAY,QAAQ,eAAe,QAAQ,OAAO,GAAG,CACvD,EACC,WACC,iBACA,YAAY,QAAQ,cAAc,QAAQ,OAAO,GAAG,CACtD,EACC,WACC,kBACA,YAAY,QAAQ,cAAc,QAAQ,OAAO,GAAG,CACtD,EACC,WACC,eACA,YAAY,QAAQ,WAAW,QAAQ,OAAO,GAAG,CACnD;CAEF,IAAI,QAAQ,OAAO,QAAQ;EACzB,IAAI,YAAY,QAAQ,OAAO,OAAO,IAAI,GACxC,SAAS,OACN,WAAW,gBAAgB,QAAQ,OAAO,OAAO,IAAI,EACrD,WAAW,YAAY,QAAQ,OAAO,OAAO,IAAI;EAEtD,IACE,QAAQ,OAAO,OAAO,QACtB,YAAY,QAAQ,OAAO,OAAO,MAAM,IAAI,GAE5C,SAAS,OACN,WAAW,cAAc,QAAQ,OAAO,OAAO,KAAK,IAAI,EACxD,WAAW,UAAU,QAAQ,OAAO,OAAO,KAAK,IAAI;CAE3D;CAEA,OAAO;AACT"}
@@ -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_plugin_utils_paths = require('./paths.cjs');
10
+ let vitest = require("vitest");
11
+
12
+ //#region src/plugin-utils/paths.test.ts
13
+ (0, vitest.describe)("base/core/src/plugin-utils/paths.ts", () => {
14
+ (0, vitest.it)("loads module exports", () => {
15
+ (0, vitest.expect)(require_plugin_utils_paths.paths_exports).toBeDefined();
16
+ (0, vitest.expect)(typeof require_plugin_utils_paths.paths_exports).toBe("object");
17
+ });
18
+ (0, vitest.it)("has at least one runtime export", () => {
19
+ (0, vitest.expect)(Object.keys(require_plugin_utils_paths.paths_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 { paths_exports } from "./paths.mjs";
10
+ import { describe, expect, it } from "vitest";
11
+
12
+ //#region src/plugin-utils/paths.test.ts
13
+ describe("base/core/src/plugin-utils/paths.ts", () => {
14
+ it("loads module exports", () => {
15
+ expect(paths_exports).toBeDefined();
16
+ expect(typeof paths_exports).toBe("object");
17
+ });
18
+ it("has at least one runtime export", () => {
19
+ expect(Object.keys(paths_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
24
+ export { };
25
+ //# sourceMappingURL=paths.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths.test.mjs","names":["moduleExports"],"sources":["../../src/plugin-utils/paths.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./paths\";\n\ndescribe(\"base/core/src/plugin-utils/paths.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,6CAA6C;CACpD,GAAG,8BAA8B;EAC/B,OAAOA,aAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,aAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,aAAa,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AACH,CAAC"}
@@ -7,8 +7,18 @@ 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
 
11
12
  //#region src/plugin-utils/virtual.ts
13
+ var virtual_exports = /* @__PURE__ */ require_runtime.__exportAll({
14
+ VIRTUAL_MODULE_PREFIX: () => "\0",
15
+ VIRTUAL_MODULE_PREFIX_REGEX: () => VIRTUAL_MODULE_PREFIX_REGEX,
16
+ addVirtualPrefix: () => addVirtualPrefix,
17
+ createVirtualPrefixRegex: () => createVirtualPrefixRegex,
18
+ isVirtualModule: () => isVirtualModule,
19
+ prefixRegex: () => prefixRegex,
20
+ removeVirtualPrefix: () => removeVirtualPrefix
21
+ });
12
22
  const ESCAPE_REGEX = /[-/\\^$*+?.()|[\]{}]/g;
13
23
  function escapeRegex(str) {
14
24
  return str.replace(ESCAPE_REGEX, "\\$&");
@@ -85,4 +95,10 @@ exports.addVirtualPrefix = addVirtualPrefix;
85
95
  exports.createVirtualPrefixRegex = createVirtualPrefixRegex;
86
96
  exports.isVirtualModule = isVirtualModule;
87
97
  exports.prefixRegex = prefixRegex;
88
- exports.removeVirtualPrefix = removeVirtualPrefix;
98
+ exports.removeVirtualPrefix = removeVirtualPrefix;
99
+ Object.defineProperty(exports, 'virtual_exports', {
100
+ enumerable: true,
101
+ get: function () {
102
+ return virtual_exports;
103
+ }
104
+ });
@@ -6,7 +6,18 @@ 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";
10
+
9
11
  //#region src/plugin-utils/virtual.ts
12
+ var virtual_exports = /* @__PURE__ */ __exportAll({
13
+ VIRTUAL_MODULE_PREFIX: () => "\0",
14
+ VIRTUAL_MODULE_PREFIX_REGEX: () => VIRTUAL_MODULE_PREFIX_REGEX,
15
+ addVirtualPrefix: () => addVirtualPrefix,
16
+ createVirtualPrefixRegex: () => createVirtualPrefixRegex,
17
+ isVirtualModule: () => isVirtualModule,
18
+ prefixRegex: () => prefixRegex,
19
+ removeVirtualPrefix: () => removeVirtualPrefix
20
+ });
10
21
  const ESCAPE_REGEX = /[-/\\^$*+?.()|[\]{}]/g;
11
22
  function escapeRegex(str) {
12
23
  return str.replace(ESCAPE_REGEX, "\\$&");
@@ -77,5 +88,5 @@ function createVirtualPrefixRegex(id) {
77
88
  }
78
89
 
79
90
  //#endregion
80
- export { VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX, addVirtualPrefix, createVirtualPrefixRegex, isVirtualModule, prefixRegex, removeVirtualPrefix };
91
+ export { VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX, addVirtualPrefix, createVirtualPrefixRegex, isVirtualModule, prefixRegex, removeVirtualPrefix, virtual_exports };
81
92
  //# sourceMappingURL=virtual.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"virtual.mjs","names":[],"sources":["../../src/plugin-utils/virtual.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\nconst ESCAPE_REGEX = /[-/\\\\^$*+?.()|[\\]{}]/g;\nfunction escapeRegex(str: string): string {\n return str.replace(ESCAPE_REGEX, \"\\\\$&\");\n}\n\nexport const VIRTUAL_MODULE_PREFIX = \"\\0\";\nexport const VIRTUAL_MODULE_PREFIX_REGEX = prefixRegex(\"\\0\");\n\nexport interface PrefixRegexOptions {\n /**\n * Flags for the RegExp.\n */\n flags?: string;\n\n /**\n * The prefix to match. This will be escaped and used as the prefix in the generated RegExp.\n */\n prefix?: string;\n\n /**\n * Whether the prefix is optional. If true, the generated RegExp will match both strings that start with the prefix and strings that do not start with the prefix. Default is false.\n */\n isPrefixOptional?: boolean;\n}\n\n/**\n * Constructs a RegExp that matches a value that has the specified prefix. This is useful for plugin hook filters.\n *\n * @example\n * ```ts\n * import { prefixRegex } from '@rolldown/pluginutils';\n * const plugin = {\n * name: 'plugin',\n * resolveId: {\n * filter: { id: prefixRegex('foo') },\n * handler(id) {} // will only be called for IDs starting with `foo`\n * }\n * }\n * ```\n *\n * @param str - the string to match.\n * @param options - options for the RegExp.\n * @return a RegExp that matches the specified string with the specified prefix.\n */\nexport function prefixRegex(\n str: string,\n options: PrefixRegexOptions = {}\n): RegExp {\n const { flags, prefix, isPrefixOptional = false } = options;\n\n return new RegExp(\n `^${\n prefix\n ? isPrefixOptional\n ? `(${escapeRegex(prefix)})?`\n : `${escapeRegex(prefix)}`\n : \"\"\n }${escapeRegex(str)}`,\n flags\n );\n}\n\n/**\n * Adds the virtual module prefix to the given ID.\n *\n * @param id - The ID to add the virtual module prefix to.\n * @returns The ID with the virtual module prefix added.\n */\nexport function addVirtualPrefix(id: string): string {\n return `${VIRTUAL_MODULE_PREFIX}${id}`;\n}\n\n/**\n * Removes the virtual module prefix from the given ID, if it exists.\n *\n * @param id - The ID to remove the virtual module prefix from.\n * @returns The ID without the virtual module prefix.\n */\nexport function removeVirtualPrefix(id: string): string {\n return id.replace(VIRTUAL_MODULE_PREFIX_REGEX, \"\");\n}\n\n/**\n * Checks if the given ID is a virtual module by checking if it starts with the virtual module prefix.\n *\n * @param id - The ID to check.\n * @returns True if the ID is a virtual module, false otherwise.\n */\nexport function isVirtualModule(id: string): boolean {\n return id.startsWith(VIRTUAL_MODULE_PREFIX);\n}\n\n/**\n * Creates a regular expression that matches the given ID with the virtual module prefix.\n *\n * @param id - The ID to create a regular expression for.\n * @returns A regular expression that matches the given ID with the virtual module prefix.\n */\nexport function createVirtualPrefixRegex(id: string): RegExp {\n return prefixRegex(removeVirtualPrefix(id), {\n prefix: VIRTUAL_MODULE_PREFIX,\n isPrefixOptional: true\n });\n}\n"],"mappings":";;;;;;;;;AAkBA,MAAM,eAAe;AACrB,SAAS,YAAY,KAAqB;CACxC,OAAO,IAAI,QAAQ,cAAc,MAAM;AACzC;AAEA,MAAa,wBAAwB;AACrC,MAAa,8BAA8B,YAAY,IAAI;;;;;;;;;;;;;;;;;;;;AAsC3D,SAAgB,YACd,KACA,UAA8B,CAAC,GACvB;CACR,MAAM,EAAE,OAAO,QAAQ,mBAAmB,UAAU;CAEpD,OAAO,IAAI,OACT,IACE,SACI,mBACE,IAAI,YAAY,MAAM,EAAE,MACxB,GAAG,YAAY,MAAM,MACvB,KACH,YAAY,GAAG,KAClB,KACF;AACF;;;;;;;AAQA,SAAgB,iBAAiB,IAAoB;CACnD,OAAO,UAA2B;AACpC;;;;;;;AAQA,SAAgB,oBAAoB,IAAoB;CACtD,OAAO,GAAG,QAAQ,6BAA6B,EAAE;AACnD;;;;;;;AAQA,SAAgB,gBAAgB,IAAqB;CACnD,OAAO,GAAG,eAAgC;AAC5C;;;;;;;AAQA,SAAgB,yBAAyB,IAAoB;CAC3D,OAAO,YAAY,oBAAoB,EAAE,GAAG;EAC1C;EACA,kBAAkB;CACpB,CAAC;AACH"}
1
+ {"version":3,"file":"virtual.mjs","names":[],"sources":["../../src/plugin-utils/virtual.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\nconst ESCAPE_REGEX = /[-/\\\\^$*+?.()|[\\]{}]/g;\nfunction escapeRegex(str: string): string {\n return str.replace(ESCAPE_REGEX, \"\\\\$&\");\n}\n\nexport const VIRTUAL_MODULE_PREFIX = \"\\0\";\nexport const VIRTUAL_MODULE_PREFIX_REGEX = prefixRegex(\"\\0\");\n\nexport interface PrefixRegexOptions {\n /**\n * Flags for the RegExp.\n */\n flags?: string;\n\n /**\n * The prefix to match. This will be escaped and used as the prefix in the generated RegExp.\n */\n prefix?: string;\n\n /**\n * Whether the prefix is optional. If true, the generated RegExp will match both strings that start with the prefix and strings that do not start with the prefix. Default is false.\n */\n isPrefixOptional?: boolean;\n}\n\n/**\n * Constructs a RegExp that matches a value that has the specified prefix. This is useful for plugin hook filters.\n *\n * @example\n * ```ts\n * import { prefixRegex } from '@rolldown/pluginutils';\n * const plugin = {\n * name: 'plugin',\n * resolveId: {\n * filter: { id: prefixRegex('foo') },\n * handler(id) {} // will only be called for IDs starting with `foo`\n * }\n * }\n * ```\n *\n * @param str - the string to match.\n * @param options - options for the RegExp.\n * @return a RegExp that matches the specified string with the specified prefix.\n */\nexport function prefixRegex(\n str: string,\n options: PrefixRegexOptions = {}\n): RegExp {\n const { flags, prefix, isPrefixOptional = false } = options;\n\n return new RegExp(\n `^${\n prefix\n ? isPrefixOptional\n ? `(${escapeRegex(prefix)})?`\n : `${escapeRegex(prefix)}`\n : \"\"\n }${escapeRegex(str)}`,\n flags\n );\n}\n\n/**\n * Adds the virtual module prefix to the given ID.\n *\n * @param id - The ID to add the virtual module prefix to.\n * @returns The ID with the virtual module prefix added.\n */\nexport function addVirtualPrefix(id: string): string {\n return `${VIRTUAL_MODULE_PREFIX}${id}`;\n}\n\n/**\n * Removes the virtual module prefix from the given ID, if it exists.\n *\n * @param id - The ID to remove the virtual module prefix from.\n * @returns The ID without the virtual module prefix.\n */\nexport function removeVirtualPrefix(id: string): string {\n return id.replace(VIRTUAL_MODULE_PREFIX_REGEX, \"\");\n}\n\n/**\n * Checks if the given ID is a virtual module by checking if it starts with the virtual module prefix.\n *\n * @param id - The ID to check.\n * @returns True if the ID is a virtual module, false otherwise.\n */\nexport function isVirtualModule(id: string): boolean {\n return id.startsWith(VIRTUAL_MODULE_PREFIX);\n}\n\n/**\n * Creates a regular expression that matches the given ID with the virtual module prefix.\n *\n * @param id - The ID to create a regular expression for.\n * @returns A regular expression that matches the given ID with the virtual module prefix.\n */\nexport function createVirtualPrefixRegex(id: string): RegExp {\n return prefixRegex(removeVirtualPrefix(id), {\n prefix: VIRTUAL_MODULE_PREFIX,\n isPrefixOptional: true\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkBA,MAAM,eAAe;AACrB,SAAS,YAAY,KAAqB;CACxC,OAAO,IAAI,QAAQ,cAAc,MAAM;AACzC;AAEA,MAAa,wBAAwB;AACrC,MAAa,8BAA8B,YAAY,IAAI;;;;;;;;;;;;;;;;;;;;AAsC3D,SAAgB,YACd,KACA,UAA8B,CAAC,GACvB;CACR,MAAM,EAAE,OAAO,QAAQ,mBAAmB,UAAU;CAEpD,OAAO,IAAI,OACT,IACE,SACI,mBACE,IAAI,YAAY,MAAM,EAAE,MACxB,GAAG,YAAY,MAAM,MACvB,KACH,YAAY,GAAG,KAClB,KACF;AACF;;;;;;;AAQA,SAAgB,iBAAiB,IAAoB;CACnD,OAAO,UAA2B;AACpC;;;;;;;AAQA,SAAgB,oBAAoB,IAAoB;CACtD,OAAO,GAAG,QAAQ,6BAA6B,EAAE;AACnD;;;;;;;AAQA,SAAgB,gBAAgB,IAAqB;CACnD,OAAO,GAAG,eAAgC;AAC5C;;;;;;;AAQA,SAAgB,yBAAyB,IAAoB;CAC3D,OAAO,YAAY,oBAAoB,EAAE,GAAG;EAC1C;EACA,kBAAkB;CACpB,CAAC;AACH"}
@@ -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_plugin_utils_virtual = require('./virtual.cjs');
10
+ let vitest = require("vitest");
11
+
12
+ //#region src/plugin-utils/virtual.test.ts
13
+ (0, vitest.describe)("base/core/src/plugin-utils/virtual.ts", () => {
14
+ (0, vitest.it)("loads module exports", () => {
15
+ (0, vitest.expect)(require_plugin_utils_virtual.virtual_exports).toBeDefined();
16
+ (0, vitest.expect)(typeof require_plugin_utils_virtual.virtual_exports).toBe("object");
17
+ });
18
+ (0, vitest.it)("has at least one runtime export", () => {
19
+ (0, vitest.expect)(Object.keys(require_plugin_utils_virtual.virtual_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 { virtual_exports } from "./virtual.mjs";
10
+ import { describe, expect, it } from "vitest";
11
+
12
+ //#region src/plugin-utils/virtual.test.ts
13
+ describe("base/core/src/plugin-utils/virtual.ts", () => {
14
+ it("loads module exports", () => {
15
+ expect(virtual_exports).toBeDefined();
16
+ expect(typeof virtual_exports).toBe("object");
17
+ });
18
+ it("has at least one runtime export", () => {
19
+ expect(Object.keys(virtual_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
24
+ export { };
25
+ //# sourceMappingURL=virtual.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtual.test.mjs","names":["moduleExports"],"sources":["../../src/plugin-utils/virtual.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./virtual\";\n\ndescribe(\"base/core/src/plugin-utils/virtual.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"}
@@ -1 +1 @@
1
- {"version":3,"file":"fs.d.cts","names":[],"sources":["../../schemas/fs.ts"],"mappings":";;;cAKa,YAAA;AAAA,cACA,yBAAA,SAAkC,CAAA,CAAE,MAAM;EAAA,gBACrB,MAAA;;;UADK,CAAA,CAAA,UAAA;EAAA;EAAA,IAMjC,GAAA,CAAA;EAAA,IAGA,GAAA,CAAI,KAAA;EAAA,IAGJ,KAAA,CAAA;EAAA,IAGA,KAAA,CAAM,KAAA;EAGM,QAAA,CAAA;AAAA;;;;;cAML,YAAA,SAAqB,CAAA,CAAE,MAAA;EAAA,gBAClB,YAAA,SAAY,yBAAA;EAAA,gBACI,MAAA;;;;;;SAMzB,WAAA,EAAa,CAAA,CAAE,QAAA,CAAS,yBAAA;EAdP;AAAA;AAM1B;;EAN0B,IAmBpB,EAAA,CAAA;EAAA,IAGA,EAAA,CAAG,KAAA;;;;;MAOH,IAAA,CAAA;EAAA,IAGA,IAAA,CAAK,KA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EAGlB,OAAA;EAGA,QAAA,CAAS,MAAA,WAAiB,CAAA,CAAE,IAAA,CAAK,MAAA;EAAA,IAG7B,GAAA,CAAI,KAAA,EAAO,CAAA,CAAE,IAAA,CAAK,MAAA;EAGtB,aAAA,CAAc,KAAA,EAAO,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,WAAA;EAGrC,cAAA,IAAkB,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,WAAA;EAAA,IAG9B,OAAA,IAAW,CAAA,CAAE,IAAA,CAAK,WAAA;EAGtB,WAAA;EAGA,YAAA,CAAa,MAAA,WAAiB,CAAA,CAAE,IAAA,CAAK,WAAA;EAAA,IAGjC,OAAA,CAAQ,KAAA,EAAO,CAAA,CAAE,IAAA,CAAK,WAAA;EAG1B,cAAA,CAAe,KAAA,EAAO,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,YAAA;EAGtC,eAAA,IAAmB,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,YAAA;EAAA,IAG/B,QAAA,IAAY,CAAA,CAAE,IAAA,CAAK,YAAA;EAGvB,YAAA;EAGA,aAAA,CAAc,MAAA,WAAiB,CAAA,CAAE,IAAA,CAAK,YAAA;EAAA,IAGlC,QAAA,CAAS,KAAA,EAAO,CAAA,CAAE,IAAA,CAAK,YAAA;EAGX,QAAA;AAAA"}
@@ -7,12 +7,14 @@ 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_path_append = require("@stryke/path/append");
11
12
  let _stryke_path_join = require("@stryke/path/join");
12
13
  let node_path = require("node:path");
13
14
  let _stryke_path_correct_path = require("@stryke/path/correct-path");
14
15
 
15
16
  //#region src/storage/base.ts
17
+ var base_exports = /* @__PURE__ */ require_runtime.__exportAll({ BaseStorageAdapter: () => BaseStorageAdapter });
16
18
  /**
17
19
  * Abstract base class for storage adapters, providing a template for storage operations.
18
20
  */
@@ -221,4 +223,10 @@ var BaseStorageAdapter = class {
221
223
  };
222
224
 
223
225
  //#endregion
224
- exports.BaseStorageAdapter = BaseStorageAdapter;
226
+ exports.BaseStorageAdapter = BaseStorageAdapter;
227
+ Object.defineProperty(exports, 'base_exports', {
228
+ enumerable: true,
229
+ get: function () {
230
+ return base_exports;
231
+ }
232
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.cts","names":[],"sources":["../../src/storage/base.ts"],"mappings":";;;;;UA0BiB,qBAAA;EACf,IAAA;EACA,UAAA;EACA,MAAA;AAAA;;;;uBAMoB,kBAAA,kBACH,qBAAA,GAAwB,qBAAA,aAC9B,cAAA;EAAA;YA+BC,OAAA,EAAS,OAAA;EAjCD;;;EAAA,SAWJ,IAAA;EAVyB;;;EAelC,OAAA,EAAS,QAAA;EAiBK;;;;;;EAAA,SATL,MAAA,GAAS,aAAA;EAqIU;;;;;;cA5HvB,OAAA,EAAS,OAAA,EACnB,OAAA,GAAS,QAAA;EAmQiB;;;;;;EAAA,SAtPZ,UAAA,CAAW,GAAA;EA7ChB;;;;;;EAqDE,MAAA,CAAO,GAAA,WAAc,OAAA;EA/BlB;;;;;;EAAA,SAyCA,OAAA,CAAQ,GAAA;EAlBR;;;;;;EA0BH,GAAA,CAAI,GAAA,WAAc,OAAA;EAAlB;;;;;;EAAA,SAUG,OAAA,CAAQ,GAAA,UAAa,KAAA;EAQpB;;;;;;EAAJ,GAAA,CAAI,GAAA,UAAa,KAAA,WAAgB,OAAA;EAkBT;;;;;EAP9B,SAAA,CAAU,CAAA;EAkCV;;;;;EA3BM,KAAA,CAAM,OAAA,WAAkB,OAAA;EAuEZ;;;;;EAAA,SA9D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  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 { appendPath } from "@stryke/path/append";
10
11
  import { joinPaths } from "@stryke/path/join";
11
12
  import { resolve } from "node:path";
12
13
  import { correctPath } from "@stryke/path/correct-path";
13
14
 
14
15
  //#region src/storage/base.ts
16
+ var base_exports = /* @__PURE__ */ __exportAll({ BaseStorageAdapter: () => BaseStorageAdapter });
15
17
  /**
16
18
  * Abstract base class for storage adapters, providing a template for storage operations.
17
19
  */
@@ -220,5 +222,5 @@ var BaseStorageAdapter = class {
220
222
  };
221
223
 
222
224
  //#endregion
223
- export { BaseStorageAdapter };
225
+ export { BaseStorageAdapter, base_exports };
224
226
  //# sourceMappingURL=base.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.mjs","names":["#isDisposed"],"sources":["../../src/storage/base.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 { appendPath } from \"@stryke/path/append\";\nimport { correctPath } from \"@stryke/path/correct-path\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { MaybePromise } from \"@stryke/types/base\";\nimport { resolve } from \"node:path\";\nimport { Context } from \"../types/context\";\nimport { StorageAdapter, StoragePreset } from \"../types/fs\";\n\nexport interface StorageAdapterOptions {\n base: string;\n isReadOnly?: boolean;\n ignore?: string | string[];\n}\n\n/**\n * Abstract base class for storage adapters, providing a template for storage operations.\n */\nexport abstract class BaseStorageAdapter<\n TOptions extends StorageAdapterOptions = StorageAdapterOptions\n> implements StorageAdapter {\n /**\n * Indicates whether the storage adapter has been disposed.\n */\n #isDisposed = false;\n\n /**\n * A name identifying the storage adapter type.\n */\n public abstract name: string;\n\n /**\n * Configuration options for the storage adapter.\n */\n public options: TOptions;\n\n /**\n * The storage preset for the adapter.\n *\n * @remarks\n * This can be used as an alternate way to identify the type of storage being used.\n */\n public readonly preset?: StoragePreset | null = null;\n\n /**\n * Constructor for the BaseStorageAdapter.\n *\n * @param context - The Powerlines context.\n * @param options - Configuration options for the storage adapter.\n */\n public constructor(\n protected context: Context,\n options: TOptions = { base: \"/\" } as TOptions\n ) {\n this.options = options;\n this.options.base = resolve(options.base);\n this.options.isReadOnly = !!options.isReadOnly;\n }\n\n /**\n * Synchronously checks if a key exists in the storage.\n *\n * @param key - The key to check for existence.\n * @returns Returns `true` if the key exists, otherwise `false`.\n */\n public abstract existsSync(key: string): boolean;\n\n /**\n * Asynchronously checks if a key exists in the storage.\n *\n * @param key - The key to check for existence.\n * @returns A promise that resolves to `true` if the key exists, otherwise `false`.\n */\n public async exists(key: string): Promise<boolean> {\n return this.existsSync(key);\n }\n\n /**\n * Synchronously retrieves the value associated with a given key.\n *\n * @param key - The key whose value is to be retrieved.\n * @returns The value associated with the key, or `null` if the key does not exist.\n */\n public abstract getSync(key: string): string | null;\n\n /**\n * Asynchronously retrieves the value associated with a given key.\n *\n * @param key - The key whose value is to be retrieved.\n * @returns A promise that resolves to the value associated with the key, or `null` if the key does not exist.\n */\n public async get(key: string): Promise<string | null> {\n return this.getSync(key);\n }\n\n /**\n * Synchronously sets the value for a given key.\n *\n * @param key - The key to set the value for.\n * @param value - The value to set.\n */\n public abstract setSync(key: string, value: string): void;\n\n /**\n * Asynchronously sets the value for a given key.\n *\n * @param key - The key to set the value for.\n * @param value - The value to set.\n */\n public async set(key: string, value: string): Promise<void> {\n if (!this.isReadOnly && (!this.existsSync(key) || this.overwrite)) {\n this.setSync(key, value);\n }\n }\n\n /**\n * Synchronously creates a directory at the specified path.\n *\n * @param _ - The path of the directory to create.\n */\n public mkdirSync(_: string) {}\n\n /**\n * Creates a directory at the specified path.\n *\n * @param dirPath - The path of the directory to create.\n */\n public async mkdir(dirPath: string): Promise<void> {\n return Promise.resolve(this.mkdirSync(dirPath));\n }\n\n /**\n * Synchronously removes a key from the storage.\n *\n * @param key - The key to remove.\n */\n public abstract removeSync(key: string): void;\n\n /**\n * Asynchronously removes a key from the storage.\n *\n * @param key - The key to remove.\n */\n public async remove(key: string): Promise<void> {\n if (!this.isReadOnly && this.overwrite) {\n this.removeSync(key);\n }\n }\n\n /**\n * Synchronously removes all entries from the storage that match the provided base path.\n *\n * @param base - The base path to clear keys from.\n */\n public clearSync(base?: string) {\n if (!this.isReadOnly && this.overwrite) {\n const keys = this.listSync(base || this.options.base);\n if (!keys.length) {\n return;\n }\n\n keys.map(key =>\n this.removeSync(\n base && !key.startsWith(base) ? joinPaths(base, key) : key\n )\n );\n }\n }\n\n /**\n * Asynchronously removes all entries from the storage that match the provided base path.\n *\n * @param base - The base path to clear keys from.\n * @returns A promise that resolves when the operation is complete.\n */\n public async clear(base?: string): Promise<void> {\n if (!this.isReadOnly && this.overwrite) {\n const keys = await this.list(base || this.options.base);\n if (!keys.length) {\n return;\n }\n\n await Promise.all(\n keys.map(async key =>\n this.remove(\n base && !key.startsWith(base) ? joinPaths(base, key) : key\n )\n )\n );\n }\n }\n\n /**\n * Lists all keys under a given base path synchronously.\n *\n * @param base - The base path to list keys from.\n * @returns An array of keys under the specified base path.\n */\n public abstract listSync(base?: string): string[];\n\n /**\n * Asynchronously lists all keys under a given base path.\n *\n * @param base - The base path to list keys from.\n * @returns A promise that resolves to an array of keys under the specified base path.\n */\n public async list(base?: string): Promise<string[]> {\n return this.listSync(base);\n }\n\n /**\n * Synchronously checks if the given key is a directory.\n *\n * @param _ - The key to check.\n * @returns `true` if the key is a directory, otherwise `false`.\n */\n public isDirectorySync(_: string): boolean {\n return false;\n }\n\n /**\n * Checks if the given key is a directory.\n *\n * @param key - The key to check.\n * @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.\n */\n public async isDirectory(key: string) {\n return Promise.resolve(this.isDirectorySync(key));\n }\n\n /**\n * Synchronously checks if the given key is a file.\n *\n * @param key - The key to check.\n * @returns `true` if the key is a file, otherwise `false`.\n */\n public isFileSync(key: string): boolean {\n return this.existsSync(key) && !this.isDirectorySync(key);\n }\n\n /**\n * Checks if the given key is a file.\n *\n * @param key - The key to check.\n * @returns A promise that resolves to `true` if the key is a file, otherwise `false`.\n */\n public async isFile(key: string) {\n return Promise.resolve(this.isFileSync(key));\n }\n\n /**\n * Disposes of the storage adapter, releasing any held resources.\n *\n * @returns A promise that resolves when the disposal is complete.\n */\n public dispose(): MaybePromise<void> {\n return Promise.resolve();\n }\n\n /**\n * Async dispose method to clean up resources.\n *\n * @returns A promise that resolves when disposal is complete.\n */\n public async [Symbol.asyncDispose]() {\n return this._dispose();\n }\n\n /**\n * Determines if the storage adapter is read-only based on the provided options.\n *\n * @returns `true` if the storage adapter is read-only, otherwise `false`.\n */\n protected get isReadOnly() {\n return !!this.options.isReadOnly;\n }\n\n /**\n * Determines if the storage adapter should overwrite existing keys based on the provided options and context configuration.\n *\n * @returns `true` if the storage adapter should overwrite existing keys, otherwise `false`.\n */\n protected get overwrite() {\n return !this.isReadOnly && this.context.config.output.overwrite !== false;\n }\n\n /**\n * Resolves a given key to its full path within the storage adapter.\n *\n * @param key - The key to resolve.\n * @returns The resolved full path for the key.\n */\n protected resolve(key?: string) {\n if (!key) {\n return this.options.base;\n }\n\n if (/\\.\\.:|\\.\\.$/.test(key)) {\n throw new Error(\n `[${this.name}]: Invalid key: ${JSON.stringify(key)} provided to storage adapter.`\n );\n }\n\n return appendPath(correctPath(key).replace(/:/g, \"/\"), this.options.base);\n }\n\n /**\n * Disposes of the storage adapter, releasing any held resources.\n *\n * @returns A promise that resolves when the disposal is complete.\n */\n protected async _dispose(): Promise<void> {\n if (!this.#isDisposed) {\n await Promise.resolve(this.dispose());\n this.#isDisposed = true;\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmCA,IAAsB,qBAAtB,MAE4B;CA+Bd;;;;CA3BZ,cAAc;;;;CAUd,AAAO;;;;;;;CAQP,AAAgB,SAAgC;;;;;;;CAQhD,AAAO,YACL,AAAU,SACV,UAAoB,EAAE,MAAM,IAAI,GAChC;EAFU;EAGV,KAAK,UAAU;EACf,KAAK,QAAQ,OAAO,QAAQ,QAAQ,IAAI;EACxC,KAAK,QAAQ,aAAa,CAAC,CAAC,QAAQ;CACtC;;;;;;;CAgBA,MAAa,OAAO,KAA+B;EACjD,OAAO,KAAK,WAAW,GAAG;CAC5B;;;;;;;CAgBA,MAAa,IAAI,KAAqC;EACpD,OAAO,KAAK,QAAQ,GAAG;CACzB;;;;;;;CAgBA,MAAa,IAAI,KAAa,OAA8B;EAC1D,IAAI,CAAC,KAAK,eAAe,CAAC,KAAK,WAAW,GAAG,KAAK,KAAK,YACrD,KAAK,QAAQ,KAAK,KAAK;CAE3B;;;;;;CAOA,AAAO,UAAU,GAAW,CAAC;;;;;;CAO7B,MAAa,MAAM,SAAgC;EACjD,OAAO,QAAQ,QAAQ,KAAK,UAAU,OAAO,CAAC;CAChD;;;;;;CAcA,MAAa,OAAO,KAA4B;EAC9C,IAAI,CAAC,KAAK,cAAc,KAAK,WAC3B,KAAK,WAAW,GAAG;CAEvB;;;;;;CAOA,AAAO,UAAU,MAAe;EAC9B,IAAI,CAAC,KAAK,cAAc,KAAK,WAAW;GACtC,MAAM,OAAO,KAAK,SAAS,QAAQ,KAAK,QAAQ,IAAI;GACpD,IAAI,CAAC,KAAK,QACR;GAGF,KAAK,KAAI,QACP,KAAK,WACH,QAAQ,CAAC,IAAI,WAAW,IAAI,IAAI,UAAU,MAAM,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AW,YAAY,GAAG,EAAE,QAAQ,MAAM,GAAG,GAAG,KAAK,QAAQ,IAAI;CAC1E;;;;;;CAOA,MAAgB,WAA0B;EACxC,IAAI,CAAC,KAAKA,aAAa;GACrB,MAAM,QAAQ,QAAQ,KAAK,QAAQ,CAAC;GACpC,KAAKA,cAAc;EACrB;CACF;AACF"}
1
+ {"version":3,"file":"base.mjs","names":["#isDisposed"],"sources":["../../src/storage/base.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 { appendPath } from \"@stryke/path/append\";\nimport { correctPath } from \"@stryke/path/correct-path\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { MaybePromise } from \"@stryke/types/base\";\nimport { resolve } from \"node:path\";\nimport { Context } from \"../types/context\";\nimport { StorageAdapter, StoragePreset } from \"../types/fs\";\n\nexport interface StorageAdapterOptions {\n base: string;\n isReadOnly?: boolean;\n ignore?: string | string[];\n}\n\n/**\n * Abstract base class for storage adapters, providing a template for storage operations.\n */\nexport abstract class BaseStorageAdapter<\n TOptions extends StorageAdapterOptions = StorageAdapterOptions\n> implements StorageAdapter {\n /**\n * Indicates whether the storage adapter has been disposed.\n */\n #isDisposed = false;\n\n /**\n * A name identifying the storage adapter type.\n */\n public abstract name: string;\n\n /**\n * Configuration options for the storage adapter.\n */\n public options: TOptions;\n\n /**\n * The storage preset for the adapter.\n *\n * @remarks\n * This can be used as an alternate way to identify the type of storage being used.\n */\n public readonly preset?: StoragePreset | null = null;\n\n /**\n * Constructor for the BaseStorageAdapter.\n *\n * @param context - The Powerlines context.\n * @param options - Configuration options for the storage adapter.\n */\n public constructor(\n protected context: Context,\n options: TOptions = { base: \"/\" } as TOptions\n ) {\n this.options = options;\n this.options.base = resolve(options.base);\n this.options.isReadOnly = !!options.isReadOnly;\n }\n\n /**\n * Synchronously checks if a key exists in the storage.\n *\n * @param key - The key to check for existence.\n * @returns Returns `true` if the key exists, otherwise `false`.\n */\n public abstract existsSync(key: string): boolean;\n\n /**\n * Asynchronously checks if a key exists in the storage.\n *\n * @param key - The key to check for existence.\n * @returns A promise that resolves to `true` if the key exists, otherwise `false`.\n */\n public async exists(key: string): Promise<boolean> {\n return this.existsSync(key);\n }\n\n /**\n * Synchronously retrieves the value associated with a given key.\n *\n * @param key - The key whose value is to be retrieved.\n * @returns The value associated with the key, or `null` if the key does not exist.\n */\n public abstract getSync(key: string): string | null;\n\n /**\n * Asynchronously retrieves the value associated with a given key.\n *\n * @param key - The key whose value is to be retrieved.\n * @returns A promise that resolves to the value associated with the key, or `null` if the key does not exist.\n */\n public async get(key: string): Promise<string | null> {\n return this.getSync(key);\n }\n\n /**\n * Synchronously sets the value for a given key.\n *\n * @param key - The key to set the value for.\n * @param value - The value to set.\n */\n public abstract setSync(key: string, value: string): void;\n\n /**\n * Asynchronously sets the value for a given key.\n *\n * @param key - The key to set the value for.\n * @param value - The value to set.\n */\n public async set(key: string, value: string): Promise<void> {\n if (!this.isReadOnly && (!this.existsSync(key) || this.overwrite)) {\n this.setSync(key, value);\n }\n }\n\n /**\n * Synchronously creates a directory at the specified path.\n *\n * @param _ - The path of the directory to create.\n */\n public mkdirSync(_: string) {}\n\n /**\n * Creates a directory at the specified path.\n *\n * @param dirPath - The path of the directory to create.\n */\n public async mkdir(dirPath: string): Promise<void> {\n return Promise.resolve(this.mkdirSync(dirPath));\n }\n\n /**\n * Synchronously removes a key from the storage.\n *\n * @param key - The key to remove.\n */\n public abstract removeSync(key: string): void;\n\n /**\n * Asynchronously removes a key from the storage.\n *\n * @param key - The key to remove.\n */\n public async remove(key: string): Promise<void> {\n if (!this.isReadOnly && this.overwrite) {\n this.removeSync(key);\n }\n }\n\n /**\n * Synchronously removes all entries from the storage that match the provided base path.\n *\n * @param base - The base path to clear keys from.\n */\n public clearSync(base?: string) {\n if (!this.isReadOnly && this.overwrite) {\n const keys = this.listSync(base || this.options.base);\n if (!keys.length) {\n return;\n }\n\n keys.map(key =>\n this.removeSync(\n base && !key.startsWith(base) ? joinPaths(base, key) : key\n )\n );\n }\n }\n\n /**\n * Asynchronously removes all entries from the storage that match the provided base path.\n *\n * @param base - The base path to clear keys from.\n * @returns A promise that resolves when the operation is complete.\n */\n public async clear(base?: string): Promise<void> {\n if (!this.isReadOnly && this.overwrite) {\n const keys = await this.list(base || this.options.base);\n if (!keys.length) {\n return;\n }\n\n await Promise.all(\n keys.map(async key =>\n this.remove(\n base && !key.startsWith(base) ? joinPaths(base, key) : key\n )\n )\n );\n }\n }\n\n /**\n * Lists all keys under a given base path synchronously.\n *\n * @param base - The base path to list keys from.\n * @returns An array of keys under the specified base path.\n */\n public abstract listSync(base?: string): string[];\n\n /**\n * Asynchronously lists all keys under a given base path.\n *\n * @param base - The base path to list keys from.\n * @returns A promise that resolves to an array of keys under the specified base path.\n */\n public async list(base?: string): Promise<string[]> {\n return this.listSync(base);\n }\n\n /**\n * Synchronously checks if the given key is a directory.\n *\n * @param _ - The key to check.\n * @returns `true` if the key is a directory, otherwise `false`.\n */\n public isDirectorySync(_: string): boolean {\n return false;\n }\n\n /**\n * Checks if the given key is a directory.\n *\n * @param key - The key to check.\n * @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.\n */\n public async isDirectory(key: string) {\n return Promise.resolve(this.isDirectorySync(key));\n }\n\n /**\n * Synchronously checks if the given key is a file.\n *\n * @param key - The key to check.\n * @returns `true` if the key is a file, otherwise `false`.\n */\n public isFileSync(key: string): boolean {\n return this.existsSync(key) && !this.isDirectorySync(key);\n }\n\n /**\n * Checks if the given key is a file.\n *\n * @param key - The key to check.\n * @returns A promise that resolves to `true` if the key is a file, otherwise `false`.\n */\n public async isFile(key: string) {\n return Promise.resolve(this.isFileSync(key));\n }\n\n /**\n * Disposes of the storage adapter, releasing any held resources.\n *\n * @returns A promise that resolves when the disposal is complete.\n */\n public dispose(): MaybePromise<void> {\n return Promise.resolve();\n }\n\n /**\n * Async dispose method to clean up resources.\n *\n * @returns A promise that resolves when disposal is complete.\n */\n public async [Symbol.asyncDispose]() {\n return this._dispose();\n }\n\n /**\n * Determines if the storage adapter is read-only based on the provided options.\n *\n * @returns `true` if the storage adapter is read-only, otherwise `false`.\n */\n protected get isReadOnly() {\n return !!this.options.isReadOnly;\n }\n\n /**\n * Determines if the storage adapter should overwrite existing keys based on the provided options and context configuration.\n *\n * @returns `true` if the storage adapter should overwrite existing keys, otherwise `false`.\n */\n protected get overwrite() {\n return !this.isReadOnly && this.context.config.output.overwrite !== false;\n }\n\n /**\n * Resolves a given key to its full path within the storage adapter.\n *\n * @param key - The key to resolve.\n * @returns The resolved full path for the key.\n */\n protected resolve(key?: string) {\n if (!key) {\n return this.options.base;\n }\n\n if (/\\.\\.:|\\.\\.$/.test(key)) {\n throw new Error(\n `[${this.name}]: Invalid key: ${JSON.stringify(key)} provided to storage adapter.`\n );\n }\n\n return appendPath(correctPath(key).replace(/:/g, \"/\"), this.options.base);\n }\n\n /**\n * Disposes of the storage adapter, releasing any held resources.\n *\n * @returns A promise that resolves when the disposal is complete.\n */\n protected async _dispose(): Promise<void> {\n if (!this.#isDisposed) {\n await Promise.resolve(this.dispose());\n this.#isDisposed = true;\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAmCA,IAAsB,qBAAtB,MAE4B;CA+Bd;;;;CA3BZ,cAAc;;;;CAUd,AAAO;;;;;;;CAQP,AAAgB,SAAgC;;;;;;;CAQhD,AAAO,YACL,AAAU,SACV,UAAoB,EAAE,MAAM,IAAI,GAChC;EAFU;EAGV,KAAK,UAAU;EACf,KAAK,QAAQ,OAAO,QAAQ,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3B;;;;;;;CAQA,AAAO,gBAAgB,GAAoB;EACzC,OAAO;CACT;;;;;;;CAQA,MAAa,YAAY,KAAa;EACpC,OAAO,QAAQ,QAAQ,KAAK,gBAAgB,GAAG,CAAC;CAClD;;;;;;;CAQA,AAAO,WAAW,KAAsB;EACtC,OAAO,KAAK,WAAW,GAAG,KAAK,CAAC,KAAK,gBAAgB,GAAG;CAC1D;;;;;;;CAQA,MAAa,OAAO,KAAa;EAC/B,OAAO,QAAQ,QAAQ,KAAK,WAAW,GAAG,CAAC;CAC7C;;;;;;CAOA,AAAO,UAA8B;EACnC,OAAO,QAAQ,QAAQ;CACzB;;;;;;CAOA,OAAc,OAAO,gBAAgB;EACnC,OAAO,KAAK,SAAS;CACvB;;;;;;CAOA,IAAc,aAAa;EACzB,OAAO,CAAC,CAAC,KAAK,QAAQ;CACxB;;;;;;CAOA,IAAc,YAAY;EACxB,OAAO,CAAC,KAAK,cAAc,KAAK,QAAQ,OAAO,OAAO,cAAc;CACtE;;;;;;;CAQA,AAAU,QAAQ,KAAc;EAC9B,IAAI,CAAC,KACH,OAAO,KAAK,QAAQ;EAGtB,IAAI,cAAc,KAAK,GAAG,GACxB,MAAM,IAAI,MACR,IAAI,KAAK,KAAK,kBAAkB,KAAK,UAAU,GAAG,EAAE,8BACtD;EAGF,OAAO,WAAW,YAAY,GAAG,EAAE,QAAQ,MAAM,GAAG,GAAG,KAAK,QAAQ,IAAI;CAC1E;;;;;;CAOA,MAAgB,WAA0B;EACxC,IAAI,CAAC,KAAKA,aAAa;GACrB,MAAM,QAAQ,QAAQ,KAAK,QAAQ,CAAC;GACpC,KAAKA,cAAc;EACrB;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_storage_base = require('./base.cjs');
10
+ let vitest = require("vitest");
11
+
12
+ //#region src/storage/base.test.ts
13
+ (0, vitest.describe)("base/core/src/storage/base.ts", () => {
14
+ (0, vitest.it)("loads module exports", () => {
15
+ (0, vitest.expect)(require_storage_base.base_exports).toBeDefined();
16
+ (0, vitest.expect)(typeof require_storage_base.base_exports).toBe("object");
17
+ });
18
+ (0, vitest.it)("has at least one runtime export", () => {
19
+ (0, vitest.expect)(Object.keys(require_storage_base.base_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 { base_exports } from "./base.mjs";
10
+ import { describe, expect, it } from "vitest";
11
+
12
+ //#region src/storage/base.test.ts
13
+ describe("base/core/src/storage/base.ts", () => {
14
+ it("loads module exports", () => {
15
+ expect(base_exports).toBeDefined();
16
+ expect(typeof base_exports).toBe("object");
17
+ });
18
+ it("has at least one runtime export", () => {
19
+ expect(Object.keys(base_exports).length).toBeGreaterThan(0);
20
+ });
21
+ });
22
+
23
+ //#endregion
24
+ export { };
25
+ //# sourceMappingURL=base.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.test.mjs","names":["moduleExports"],"sources":["../../src/storage/base.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./base\";\n\ndescribe(\"base/core/src/storage/base.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,uCAAuC;CAC9C,GAAG,8BAA8B;EAC/B,OAAOA,YAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,YAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,YAAa,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_lib_utilities_file_header = require('../lib/utilities/file-header.cjs');
11
12
  const require_storage_base = require('./base.cjs');
12
13
  const require_storage_helpers = require('./helpers.cjs');
@@ -21,6 +22,7 @@ let _stryke_fs_helpers = require("@stryke/fs/helpers");
21
22
  let node_fs_promises = require("node:fs/promises");
22
23
 
23
24
  //#region src/storage/file-system.ts
25
+ var file_system_exports = /* @__PURE__ */ require_runtime.__exportAll({ FileSystemStorageAdapter: () => FileSystemStorageAdapter });
24
26
  /**
25
27
  * File system storage adapter implementation.
26
28
  */
@@ -184,4 +186,10 @@ var FileSystemStorageAdapter = class extends require_storage_base.BaseStorageAda
184
186
  };
185
187
 
186
188
  //#endregion
187
- exports.FileSystemStorageAdapter = FileSystemStorageAdapter;
189
+ exports.FileSystemStorageAdapter = FileSystemStorageAdapter;
190
+ Object.defineProperty(exports, 'file_system_exports', {
191
+ enumerable: true,
192
+ get: function () {
193
+ return file_system_exports;
194
+ }
195
+ });
@@ -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 { getFileHeaderWarningText } from "../lib/utilities/file-header.mjs";
10
11
  import { BaseStorageAdapter } from "./base.mjs";
11
12
  import { ignoreNotfound } from "./helpers.mjs";
@@ -20,6 +21,7 @@ import { createDirectory, createDirectorySync } from "@stryke/fs/helpers";
20
21
  import { unlink } from "node:fs/promises";
21
22
 
22
23
  //#region src/storage/file-system.ts
24
+ var file_system_exports = /* @__PURE__ */ __exportAll({ FileSystemStorageAdapter: () => FileSystemStorageAdapter });
23
25
  /**
24
26
  * File system storage adapter implementation.
25
27
  */
@@ -183,5 +185,5 @@ var FileSystemStorageAdapter = class extends BaseStorageAdapter {
183
185
  };
184
186
 
185
187
  //#endregion
186
- export { FileSystemStorageAdapter };
188
+ export { FileSystemStorageAdapter, file_system_exports };
187
189
  //# sourceMappingURL=file-system.mjs.map