powerlines 0.37.34 → 0.37.36

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 (273) hide show
  1. package/dist/{api-CKagZeJX.d.cts → api-D-Jj7gBV.d.cts} +3 -3
  2. package/dist/{api-CNaXa_TJ.d.ts → api-V7srJoFm.d.ts} +3 -3
  3. package/dist/api.cjs +2 -2
  4. package/dist/api.d.cts +1 -1
  5. package/dist/api.d.ts +1 -1
  6. package/dist/api.js +1 -1
  7. package/dist/astro.cjs +4 -4
  8. package/dist/astro.d.cts +1 -1
  9. package/dist/astro.d.ts +1 -1
  10. package/dist/astro.js +3 -3
  11. package/dist/chunk-4ZMXSGTF.cjs +12 -0
  12. package/dist/{chunk-2RPY4RCM.js → chunk-7EBAVG2H.js} +42 -41
  13. package/dist/{chunk-XM76ZBSK.js → chunk-BVKWNX7Q.js} +3 -3
  14. package/dist/{chunk-Z5X3K5LA.js → chunk-DHFLXVK7.js} +3 -3
  15. package/dist/{chunk-T2AQYNL2.cjs → chunk-DS4NQ6HY.cjs} +39 -38
  16. package/dist/{chunk-PGJAR3DA.cjs → chunk-FGJ6XPBJ.cjs} +5 -5
  17. package/dist/chunk-GMA3KYZJ.cjs +12 -0
  18. package/dist/{chunk-AHTPFT35.js → chunk-IG5WPC7V.js} +3 -3
  19. package/dist/{chunk-42GXE6HH.cjs → chunk-R4GXFTWP.cjs} +4 -4
  20. package/dist/{chunk-O33KJG26.js → chunk-SO5T2URL.js} +3 -3
  21. package/dist/{chunk-WA7UAV2K.js → chunk-SRNSE6AK.js} +3 -3
  22. package/dist/{chunk-C236YWT2.cjs → chunk-YJV5CG3S.cjs} +4 -4
  23. package/dist/esbuild.cjs +6 -6
  24. package/dist/esbuild.d.cts +1 -1
  25. package/dist/esbuild.d.ts +1 -1
  26. package/dist/esbuild.js +3 -3
  27. package/dist/farm.cjs +3 -3
  28. package/dist/farm.d.cts +1 -1
  29. package/dist/farm.d.ts +1 -1
  30. package/dist/farm.js +2 -2
  31. package/dist/index.cjs +10 -10
  32. package/dist/index.d.cts +2 -2
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +2 -2
  35. package/dist/lib/build/esbuild.cjs +5 -5
  36. package/dist/lib/build/esbuild.d.cts +1 -1
  37. package/dist/lib/build/esbuild.d.ts +1 -1
  38. package/dist/lib/build/esbuild.js +2 -2
  39. package/dist/lib/build/index.cjs +12 -12
  40. package/dist/lib/build/index.d.cts +2 -2
  41. package/dist/lib/build/index.d.ts +2 -2
  42. package/dist/lib/build/index.js +4 -4
  43. package/dist/lib/build/rolldown.d.cts +1 -1
  44. package/dist/lib/build/rolldown.d.ts +1 -1
  45. package/dist/lib/build/rollup.d.cts +1 -1
  46. package/dist/lib/build/rollup.d.ts +1 -1
  47. package/dist/lib/build/rspack.d.cts +1 -1
  48. package/dist/lib/build/rspack.d.ts +1 -1
  49. package/dist/lib/build/tsdown.d.cts +1 -1
  50. package/dist/lib/build/tsdown.d.ts +1 -1
  51. package/dist/lib/build/tsup.cjs +6 -6
  52. package/dist/lib/build/tsup.d.cts +1 -1
  53. package/dist/lib/build/tsup.d.ts +1 -1
  54. package/dist/lib/build/tsup.js +3 -3
  55. package/dist/lib/build/unbuild.d.cts +2 -2
  56. package/dist/lib/build/unbuild.d.ts +2 -2
  57. package/dist/lib/build/vite.cjs +5 -5
  58. package/dist/lib/build/vite.d.cts +1 -1
  59. package/dist/lib/build/vite.d.ts +1 -1
  60. package/dist/lib/build/vite.js +3 -3
  61. package/dist/lib/build/webpack.d.cts +1 -1
  62. package/dist/lib/build/webpack.d.ts +1 -1
  63. package/dist/lib/{chunk-2JWZTFXS.js → chunk-22CVJ3GB.js} +4 -4
  64. package/dist/lib/{chunk-2JWZTFXS.js.map → chunk-22CVJ3GB.js.map} +1 -1
  65. package/dist/lib/{chunk-QTOV3SHA.cjs → chunk-47MWIOWK.cjs} +4 -4
  66. package/dist/lib/{chunk-QTOV3SHA.cjs.map → chunk-47MWIOWK.cjs.map} +1 -1
  67. package/dist/lib/{chunk-Y36HVRRL.cjs → chunk-4DIBUT27.cjs} +21 -31
  68. package/dist/lib/chunk-4DIBUT27.cjs.map +1 -0
  69. package/dist/lib/{chunk-PNVVTXLD.cjs → chunk-5XL2KMBD.cjs} +4 -4
  70. package/dist/lib/{chunk-PNVVTXLD.cjs.map → chunk-5XL2KMBD.cjs.map} +1 -1
  71. package/dist/lib/{chunk-OIKMQA46.js → chunk-62FNLA4C.js} +38 -36
  72. package/dist/lib/chunk-62FNLA4C.js.map +1 -0
  73. package/dist/lib/{chunk-BQBAHE52.cjs → chunk-BHYCRVQO.cjs} +49 -47
  74. package/dist/lib/chunk-BHYCRVQO.cjs.map +1 -0
  75. package/dist/lib/{chunk-L3OTKQT7.cjs → chunk-FQMOHR6C.cjs} +4 -4
  76. package/dist/lib/{chunk-L3OTKQT7.cjs.map → chunk-FQMOHR6C.cjs.map} +1 -1
  77. package/dist/lib/{chunk-HFM5IVGD.cjs → chunk-GKYKBP64.cjs} +6 -6
  78. package/dist/lib/chunk-GKYKBP64.cjs.map +1 -0
  79. package/dist/lib/{chunk-YZNE7GOJ.cjs → chunk-GOC5UCU6.cjs} +4 -4
  80. package/dist/lib/{chunk-YZNE7GOJ.cjs.map → chunk-GOC5UCU6.cjs.map} +1 -1
  81. package/dist/lib/{chunk-JF4ZEC67.cjs → chunk-IH4B475X.cjs} +19 -19
  82. package/dist/lib/{chunk-JF4ZEC67.cjs.map → chunk-IH4B475X.cjs.map} +1 -1
  83. package/dist/lib/{chunk-DNSJN2LL.js → chunk-IUXE765Q.js} +3 -3
  84. package/dist/lib/{chunk-DNSJN2LL.js.map → chunk-IUXE765Q.js.map} +1 -1
  85. package/dist/lib/{chunk-7D4ANVQ3.js → chunk-KQGACHG6.js} +3 -3
  86. package/dist/lib/{chunk-7D4ANVQ3.js.map → chunk-KQGACHG6.js.map} +1 -1
  87. package/dist/lib/{chunk-ZK2C72JS.js → chunk-LJEWIZNL.js} +3 -3
  88. package/dist/lib/{chunk-ZK2C72JS.js.map → chunk-LJEWIZNL.js.map} +1 -1
  89. package/dist/lib/{chunk-N37JIOZ4.js → chunk-OE4RRA62.js} +22 -31
  90. package/dist/lib/chunk-OE4RRA62.js.map +1 -0
  91. package/dist/lib/{chunk-DW3OHFKB.js → chunk-OYYPCZW3.js} +3 -3
  92. package/dist/lib/{chunk-DW3OHFKB.js.map → chunk-OYYPCZW3.js.map} +1 -1
  93. package/dist/lib/{chunk-UOVILPP5.cjs → chunk-PAI37O2U.cjs} +4 -4
  94. package/dist/lib/{chunk-UOVILPP5.cjs.map → chunk-PAI37O2U.cjs.map} +1 -1
  95. package/dist/lib/{chunk-HX5UF7YV.js → chunk-RU36DRXO.js} +4 -4
  96. package/dist/lib/chunk-RU36DRXO.js.map +1 -0
  97. package/dist/lib/{chunk-X6CZ2G2G.js → chunk-SADDVAAV.js} +3 -3
  98. package/dist/lib/{chunk-X6CZ2G2G.js.map → chunk-SADDVAAV.js.map} +1 -1
  99. package/dist/lib/{chunk-37ISVVSL.js → chunk-TZGFR4HR.js} +3 -3
  100. package/dist/lib/{chunk-37ISVVSL.js.map → chunk-TZGFR4HR.js.map} +1 -1
  101. package/dist/lib/{chunk-O3ZBMF6Z.cjs → chunk-YQUWIJ2D.cjs} +6 -6
  102. package/dist/lib/{chunk-O3ZBMF6Z.cjs.map → chunk-YQUWIJ2D.cjs.map} +1 -1
  103. package/dist/lib/{config-D7uVz_j9.d.cts → config-BdpnZ9Jp.d.cts} +3 -3
  104. package/dist/lib/{config-B7VlKFtE.d.ts → config-DxhCES5f.d.ts} +3 -3
  105. package/dist/lib/config-file.d.cts +1 -1
  106. package/dist/lib/config-file.d.ts +1 -1
  107. package/dist/lib/contexts/api-context.cjs +5 -5
  108. package/dist/lib/contexts/api-context.d.cts +2 -2
  109. package/dist/lib/contexts/api-context.d.ts +2 -2
  110. package/dist/lib/contexts/api-context.js +4 -4
  111. package/dist/lib/contexts/context.cjs +3 -3
  112. package/dist/lib/contexts/context.d.cts +2 -2
  113. package/dist/lib/contexts/context.d.ts +2 -2
  114. package/dist/lib/contexts/context.js +2 -2
  115. package/dist/lib/contexts/environment-context.cjs +4 -4
  116. package/dist/lib/contexts/environment-context.d.cts +2 -2
  117. package/dist/lib/contexts/environment-context.d.ts +2 -2
  118. package/dist/lib/contexts/environment-context.js +3 -3
  119. package/dist/lib/contexts/index.cjs +7 -7
  120. package/dist/lib/contexts/index.d.cts +2 -2
  121. package/dist/lib/contexts/index.d.ts +2 -2
  122. package/dist/lib/contexts/index.js +4 -4
  123. package/dist/lib/contexts/plugin-context.d.cts +2 -2
  124. package/dist/lib/contexts/plugin-context.d.ts +2 -2
  125. package/dist/lib/entry.cjs +10 -14
  126. package/dist/lib/entry.d.cts +3 -10
  127. package/dist/lib/entry.d.ts +3 -10
  128. package/dist/lib/entry.js +1 -1
  129. package/dist/lib/fs/index.d.cts +1 -1
  130. package/dist/lib/fs/index.d.ts +1 -1
  131. package/dist/lib/fs/vfs.d.cts +1 -1
  132. package/dist/lib/fs/vfs.d.ts +1 -1
  133. package/dist/lib/index.cjs +23 -27
  134. package/dist/lib/index.d.cts +3 -3
  135. package/dist/lib/index.d.ts +3 -3
  136. package/dist/lib/index.js +8 -8
  137. package/dist/lib/{internal-CFBs3Fok.d.cts → internal-CInyirxk.d.cts} +1 -1
  138. package/dist/lib/{internal-Dlj-vo3a.d.ts → internal-x5TCXE5P.d.ts} +1 -1
  139. package/dist/lib/logger.d.cts +1 -1
  140. package/dist/lib/logger.d.ts +1 -1
  141. package/dist/lib/typescript/import-transformer.d.cts +1 -1
  142. package/dist/lib/typescript/import-transformer.d.ts +1 -1
  143. package/dist/lib/typescript/index.d.cts +1 -1
  144. package/dist/lib/typescript/index.d.ts +1 -1
  145. package/dist/lib/typescript/ts-morph.d.cts +1 -1
  146. package/dist/lib/typescript/ts-morph.d.ts +1 -1
  147. package/dist/lib/unplugin/factory.cjs +6 -6
  148. package/dist/lib/unplugin/factory.d.cts +1 -1
  149. package/dist/lib/unplugin/factory.d.ts +1 -1
  150. package/dist/lib/unplugin/factory.js +5 -5
  151. package/dist/lib/unplugin/helpers.d.cts +1 -1
  152. package/dist/lib/unplugin/helpers.d.ts +1 -1
  153. package/dist/lib/unplugin/index.cjs +6 -6
  154. package/dist/lib/unplugin/index.d.cts +1 -1
  155. package/dist/lib/unplugin/index.d.ts +1 -1
  156. package/dist/lib/unplugin/index.js +5 -5
  157. package/dist/lib/unplugin/plugin.d.cts +1 -1
  158. package/dist/lib/unplugin/plugin.d.ts +1 -1
  159. package/dist/lib/utilities/bundle.cjs +4 -4
  160. package/dist/lib/utilities/bundle.d.cts +1 -1
  161. package/dist/lib/utilities/bundle.d.ts +1 -1
  162. package/dist/lib/utilities/bundle.js +3 -3
  163. package/dist/lib/utilities/cache.d.cts +1 -1
  164. package/dist/lib/utilities/cache.d.ts +1 -1
  165. package/dist/lib/utilities/file-header.d.cts +1 -1
  166. package/dist/lib/utilities/file-header.d.ts +1 -1
  167. package/dist/lib/utilities/format.d.cts +1 -1
  168. package/dist/lib/utilities/format.d.ts +1 -1
  169. package/dist/lib/utilities/index.cjs +6 -6
  170. package/dist/lib/utilities/index.d.cts +1 -1
  171. package/dist/lib/utilities/index.d.ts +1 -1
  172. package/dist/lib/utilities/index.js +4 -4
  173. package/dist/lib/utilities/meta.d.cts +1 -1
  174. package/dist/lib/utilities/meta.d.ts +1 -1
  175. package/dist/lib/utilities/resolve.cjs +5 -5
  176. package/dist/lib/utilities/resolve.d.cts +1 -1
  177. package/dist/lib/utilities/resolve.d.ts +1 -1
  178. package/dist/lib/utilities/resolve.js +4 -4
  179. package/dist/lib/utilities/source-file.d.cts +1 -1
  180. package/dist/lib/utilities/source-file.d.ts +1 -1
  181. package/dist/lib/utilities/source-map.d.cts +1 -1
  182. package/dist/lib/utilities/source-map.d.ts +1 -1
  183. package/dist/lib/utilities/worker.d.cts +1 -1
  184. package/dist/lib/utilities/worker.d.ts +1 -1
  185. package/dist/lib/utilities/write-file.d.cts +1 -1
  186. package/dist/lib/utilities/write-file.d.ts +1 -1
  187. package/dist/next.cjs +4 -4
  188. package/dist/next.js +3 -3
  189. package/dist/nuxt.cjs +8 -8
  190. package/dist/nuxt.d.cts +1 -1
  191. package/dist/nuxt.d.ts +1 -1
  192. package/dist/nuxt.js +4 -4
  193. package/dist/plugin-utils/{context-BtofN7Mm.d.cts → context-Iv5cZYxg.d.cts} +3 -3
  194. package/dist/plugin-utils/{context-BtofN7Mm.d.ts → context-Iv5cZYxg.d.ts} +3 -3
  195. package/dist/plugin-utils/context-helpers.d.cts +1 -1
  196. package/dist/plugin-utils/context-helpers.d.ts +1 -1
  197. package/dist/plugin-utils/enforce.d.cts +1 -1
  198. package/dist/plugin-utils/enforce.d.ts +1 -1
  199. package/dist/plugin-utils/extend.d.cts +1 -1
  200. package/dist/plugin-utils/extend.d.ts +1 -1
  201. package/dist/plugin-utils/get-config-path.d.cts +1 -1
  202. package/dist/plugin-utils/get-config-path.d.ts +1 -1
  203. package/dist/plugin-utils/helpers.d.cts +1 -1
  204. package/dist/plugin-utils/helpers.d.ts +1 -1
  205. package/dist/plugin-utils/index.d.cts +1 -1
  206. package/dist/plugin-utils/index.d.ts +1 -1
  207. package/dist/plugin-utils/merge.d.cts +1 -1
  208. package/dist/plugin-utils/merge.d.ts +1 -1
  209. package/dist/plugin-utils/paths.d.cts +1 -1
  210. package/dist/plugin-utils/paths.d.ts +1 -1
  211. package/dist/rolldown.cjs +6 -6
  212. package/dist/rolldown.d.cts +1 -1
  213. package/dist/rolldown.d.ts +1 -1
  214. package/dist/rolldown.js +3 -3
  215. package/dist/rollup.cjs +3 -3
  216. package/dist/rollup.d.cts +1 -1
  217. package/dist/rollup.d.ts +1 -1
  218. package/dist/rollup.js +2 -2
  219. package/dist/rspack.cjs +3 -3
  220. package/dist/rspack.d.cts +1 -1
  221. package/dist/rspack.d.ts +1 -1
  222. package/dist/rspack.js +2 -2
  223. package/dist/tsdown.cjs +4 -4
  224. package/dist/tsdown.js +3 -3
  225. package/dist/tsup.cjs +4 -4
  226. package/dist/tsup.js +3 -3
  227. package/dist/types/api.d.cts +1 -1
  228. package/dist/types/api.d.ts +1 -1
  229. package/dist/types/babel.d.cts +1 -1
  230. package/dist/types/babel.d.ts +1 -1
  231. package/dist/types/commands.d.cts +1 -1
  232. package/dist/types/commands.d.ts +1 -1
  233. package/dist/types/config.d.cts +1 -1
  234. package/dist/types/config.d.ts +1 -1
  235. package/dist/types/context.d.cts +1 -1
  236. package/dist/types/context.d.ts +1 -1
  237. package/dist/types/hooks.d.cts +1 -1
  238. package/dist/types/hooks.d.ts +1 -1
  239. package/dist/types/index.d.cts +1 -1
  240. package/dist/types/index.d.ts +1 -1
  241. package/dist/types/internal.d.cts +1 -1
  242. package/dist/types/internal.d.ts +1 -1
  243. package/dist/types/plugin.d.cts +1 -1
  244. package/dist/types/plugin.d.ts +1 -1
  245. package/dist/types/resolved.d.cts +1 -1
  246. package/dist/types/resolved.d.ts +1 -1
  247. package/dist/types/unplugin.d.cts +1 -1
  248. package/dist/types/unplugin.d.ts +1 -1
  249. package/dist/unloader.cjs +3 -3
  250. package/dist/unloader.d.cts +1 -1
  251. package/dist/unloader.d.ts +1 -1
  252. package/dist/unloader.js +2 -2
  253. package/dist/unplugin.cjs +8 -8
  254. package/dist/unplugin.d.cts +1 -1
  255. package/dist/unplugin.d.ts +1 -1
  256. package/dist/unplugin.js +4 -4
  257. package/dist/vite.cjs +6 -6
  258. package/dist/vite.d.cts +1 -1
  259. package/dist/vite.d.ts +1 -1
  260. package/dist/vite.js +3 -3
  261. package/dist/webpack.cjs +6 -6
  262. package/dist/webpack.d.cts +1 -1
  263. package/dist/webpack.d.ts +1 -1
  264. package/dist/webpack.js +3 -3
  265. package/package.json +2 -2
  266. package/dist/chunk-6RYYGMVN.cjs +0 -12
  267. package/dist/chunk-JRDHZYK3.cjs +0 -12
  268. package/dist/lib/chunk-BQBAHE52.cjs.map +0 -1
  269. package/dist/lib/chunk-HFM5IVGD.cjs.map +0 -1
  270. package/dist/lib/chunk-HX5UF7YV.js.map +0 -1
  271. package/dist/lib/chunk-N37JIOZ4.js.map +0 -1
  272. package/dist/lib/chunk-OIKMQA46.js.map +0 -1
  273. package/dist/lib/chunk-Y36HVRRL.cjs.map +0 -1
@@ -744,14 +744,14 @@ interface CommonUserConfig extends BaseConfig {
744
744
  */
745
745
  configFile?: string;
746
746
  /**
747
- * Should the Powerlines CLI processes skip installing missing packages?
747
+ * Should the Powerlines processes automatically install missing package dependencies?
748
748
  *
749
749
  * @remarks
750
- * This option is useful for CI/CD environments where the installation of packages is handled by a different process.
750
+ * When set to `true`, Powerlines will attempt to install any missing dependencies using the package manager detected in the project (e.g., npm, yarn, pnpm). This can be useful for ensuring that all required packages are available during the build and preparation phases.
751
751
  *
752
752
  * @defaultValue false
753
753
  */
754
- skipInstalls?: boolean;
754
+ autoInstall?: boolean;
755
755
  /**
756
756
  * Should the compiler processes skip any improvements that make use of cache?
757
757
  *
@@ -744,14 +744,14 @@ interface CommonUserConfig extends BaseConfig {
744
744
  */
745
745
  configFile?: string;
746
746
  /**
747
- * Should the Powerlines CLI processes skip installing missing packages?
747
+ * Should the Powerlines processes automatically install missing package dependencies?
748
748
  *
749
749
  * @remarks
750
- * This option is useful for CI/CD environments where the installation of packages is handled by a different process.
750
+ * When set to `true`, Powerlines will attempt to install any missing dependencies using the package manager detected in the project (e.g., npm, yarn, pnpm). This can be useful for ensuring that all required packages are available during the build and preparation phases.
751
751
  *
752
752
  * @defaultValue false
753
753
  */
754
- skipInstalls?: boolean;
754
+ autoInstall?: boolean;
755
755
  /**
756
756
  * Should the compiler processes skip any improvements that make use of cache?
757
757
  *
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkT2AQYNL2_cjs = require('./chunk-T2AQYNL2.cjs');
3
+ var chunkDS4NQ6HY_cjs = require('./chunk-DS4NQ6HY.cjs');
4
4
  require('./chunk-B6DVCLP5.cjs');
5
5
  require('./chunk-V5WOGN7O.cjs');
6
6
  require('./chunk-Z6ARQDHR.cjs');
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PowerlinesAPI", {
12
12
  enumerable: true,
13
- get: function () { return chunkT2AQYNL2_cjs.PowerlinesAPI; }
13
+ get: function () { return chunkDS4NQ6HY_cjs.PowerlinesAPI; }
14
14
  });
15
15
  //# sourceMappingURL=api.cjs.map
16
16
  //# sourceMappingURL=api.cjs.map
package/dist/api.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-CKagZeJX.cjs';
1
+ import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-D-Jj7gBV.cjs';
2
2
  import '@stryke/types/base';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/http/fetch';
package/dist/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-CNaXa_TJ.js';
1
+ import { cy as ResolvedConfig, A as API, ba as APIContext, a6 as InitialUserConfig, ac as PrepareInlineConfig, aa as NewInlineConfig, ab as CleanInlineConfig, ad as BuildInlineConfig, ae as LintInlineConfig, af as DocsInlineConfig, ag as DeployInlineConfig, d7 as CallHookOptions, be as EnvironmentContext, bT as InferHookParameters, bf as PluginContext, bR as InferHookFunction } from './api-V7srJoFm.js';
2
2
  import '@stryke/types/base';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/http/fetch';
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { PowerlinesAPI } from './chunk-2RPY4RCM.js';
1
+ export { PowerlinesAPI } from './chunk-7EBAVG2H.js';
2
2
  import './chunk-PQXP7XQK.js';
3
3
  import './chunk-NITQ5IYP.js';
4
4
  import './chunk-2MYPFASJ.js';
package/dist/astro.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkC236YWT2_cjs = require('./chunk-C236YWT2.cjs');
5
+ var chunkYJV5CG3S_cjs = require('./chunk-YJV5CG3S.cjs');
6
6
  require('./chunk-VBGDN56Q.cjs');
7
- require('./chunk-PGJAR3DA.cjs');
8
- require('./chunk-T2AQYNL2.cjs');
7
+ require('./chunk-FGJ6XPBJ.cjs');
8
+ require('./chunk-DS4NQ6HY.cjs');
9
9
  require('./chunk-B6DVCLP5.cjs');
10
10
  require('./chunk-V5WOGN7O.cjs');
11
11
  require('./chunk-Z6ARQDHR.cjs');
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
15
15
  var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
16
16
  vite: {
17
17
  plugins: [
18
- chunkC236YWT2_cjs.vite_default(config)
18
+ chunkYJV5CG3S_cjs.vite_default(config)
19
19
  ]
20
20
  }
21
21
  }), "astro");
package/dist/astro.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AstroUserConfig } from 'astro';
2
- import { cz as ViteResolvedConfig } from './api-CKagZeJX.cjs';
2
+ import { cz as ViteResolvedConfig } from './api-D-Jj7gBV.cjs';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/http/fetch';
package/dist/astro.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AstroUserConfig } from 'astro';
2
- import { cz as ViteResolvedConfig } from './api-CNaXa_TJ.js';
2
+ import { cz as ViteResolvedConfig } from './api-V7srJoFm.js';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/http/fetch';
package/dist/astro.js CHANGED
@@ -1,7 +1,7 @@
1
- import { vite_default } from './chunk-AHTPFT35.js';
1
+ import { vite_default } from './chunk-IG5WPC7V.js';
2
2
  import './chunk-FJHS7DAU.js';
3
- import './chunk-Z5X3K5LA.js';
4
- import './chunk-2RPY4RCM.js';
3
+ import './chunk-DHFLXVK7.js';
4
+ import './chunk-7EBAVG2H.js';
5
5
  import './chunk-PQXP7XQK.js';
6
6
  import './chunk-NITQ5IYP.js';
7
7
  import './chunk-2MYPFASJ.js';
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkFGJ6XPBJ_cjs = require('./chunk-FGJ6XPBJ.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var webpack = unplugin.createWebpackPlugin(chunkFGJ6XPBJ_cjs.createUnpluginFactory("webpack"));
7
+ var webpack_default = webpack;
8
+
9
+ exports.webpack = webpack;
10
+ exports.webpack_default = webpack_default;
11
+ //# sourceMappingURL=chunk-4ZMXSGTF.cjs.map
12
+ //# sourceMappingURL=chunk-4ZMXSGTF.cjs.map
@@ -25,10 +25,10 @@ import chalk5 from 'chalk';
25
25
  import Handlebars from 'handlebars';
26
26
  import { declare } from '@babel/helper-plugin-utils';
27
27
  import * as t from '@babel/types';
28
+ import { prettyBytes } from '@stryke/string-format/pretty-bytes';
29
+ import { InMemoryFileSystemHost, Project, DiagnosticCategory } from 'ts-morph';
28
30
  import { LogLevelLabel } from '@storm-software/config-tools/types';
29
- import ts, { flattenDiagnosticMessageText } from 'typescript';
30
31
  import defu7, { createDefu, defu } from 'defu';
31
- import { InMemoryFileSystemHost, Project } from 'ts-morph';
32
32
  import { getPackageName, hasPackageVersion, getPackageVersion } from '@stryke/string-format/package';
33
33
  import { getObjectDiff } from '@donedeal0/superdiff';
34
34
  import { readJsonFile, readJsonFileSync } from '@stryke/fs/json';
@@ -36,6 +36,7 @@ import { StormJSON } from '@stryke/json/storm-json';
36
36
  import { hasFileExtension, findFilePath, findFileName, findFileExtensionSafe, findFileDotExtensionSafe, relativePath } from '@stryke/path/file-path-fns';
37
37
  import { titleCase } from '@stryke/string-format/title-case';
38
38
  import { existsSync, exists } from '@stryke/fs/exists';
39
+ import ts from 'typescript';
39
40
  import { getWorkspaceConfig } from '@storm-software/config-tools/get-config';
40
41
  import { loadConfig } from 'c12';
41
42
  import { getEnvPaths } from '@stryke/env/get-env-paths';
@@ -60,9 +61,8 @@ import { isDirectory, isFile } from '@stryke/fs/is-file';
60
61
  import * as $ from '@stryke/capnp';
61
62
  import { readFileBuffer, readFileBufferSync, writeFileBuffer } from '@stryke/fs/buffer';
62
63
  import { isAbsolutePath } from '@stryke/path/is-type';
63
- import { prettyBytes } from '@stryke/string-format/pretty-bytes';
64
64
  import { isRegExp } from '@stryke/type-checks/is-regexp';
65
- import { Blob } from 'node:buffer';
65
+ import { Blob as Blob$1 } from 'node:buffer';
66
66
  import { fileURLToPath } from 'node:url';
67
67
  import { getLogFn, getLogLevel } from '@storm-software/config-tools/logger';
68
68
  import { getColor } from '@storm-software/config-tools/utilities/colors';
@@ -80,7 +80,7 @@ import '@stryke/fs/remove-file';
80
80
 
81
81
  // package.json
82
82
  var name = "powerlines";
83
- var version = "0.37.33";
83
+ var version = "0.37.35";
84
84
  var package_default = {
85
85
  version};
86
86
  function resolveModulePath(nodePath, state) {
@@ -299,7 +299,7 @@ function formatTypes(code) {
299
299
  }
300
300
  __name(formatTypes, "formatTypes");
301
301
  async function emitTypes(context, files) {
302
- context.log(LogLevelLabel.TRACE, `Running the TypeScript compiler for ${files.length} generated runtime files.`);
302
+ context.debug(`Running the TypeScript compiler for ${files.length} generated runtime files.`);
303
303
  const program = createProgram(context, {
304
304
  skipAddingFilesFromTsConfig: true
305
305
  });
@@ -307,34 +307,35 @@ async function emitTypes(context, files) {
307
307
  const result = program.emitToMemory({
308
308
  emitOnlyDtsFiles: true
309
309
  });
310
- let builtinModules = "";
311
- for (const file of result.getFiles()) {
312
- if (!file.filePath.endsWith(".map")) {
313
- if (context.builtins.some((builtin) => builtin === file.filePath || context.fs.metadata[builtin]?.id && context.fs.metadata[builtin]?.id === file.filePath)) {
314
- const module = await context.fs.resolve(file.filePath);
315
- builtinModules += `
316
- declare module "${module}" {
317
- ${file.text.trim().replace(/^\s*export\s*declare\s*/gm, "export ").replace(/^\s*declare\s*/gm, "")}
318
- }
319
- `;
320
- }
310
+ const diagnostics = result.getDiagnostics();
311
+ if (diagnostics && diagnostics.length > 0) {
312
+ if (diagnostics.some((d) => d.getCategory() === DiagnosticCategory.Error)) {
313
+ throw new Error(`The Typescript emit process failed while generating built-in types:
314
+ ${diagnostics.filter((d) => d.getCategory() === DiagnosticCategory.Error).map((d) => `-${d.getSourceFile() ? `${d.getSourceFile()?.getFilePath()}:` : ""} ${String(d.getMessageText())} (at ${d.getStart()}:${d.getLength()})`).join("\n")}`);
315
+ } else if (diagnostics.some((d) => d.getCategory() === DiagnosticCategory.Warning)) {
316
+ context.warn(`The Typescript emit process completed with warnings while generating built-in types:
317
+ ${diagnostics.filter((d) => d.getCategory() === DiagnosticCategory.Warning).map((d) => `-${d.getSourceFile() ? `${d.getSourceFile()?.getFilePath()}:` : ""} ${String(d.getMessageText())} (at ${d.getStart()}:${d.getLength()})`).join("\n")}`);
318
+ } else {
319
+ context.debug(`The Typescript emit process completed with diagnostic messages while generating built-in types:
320
+ ${diagnostics.map((d) => `-${d.getSourceFile() ? `${d.getSourceFile()?.getFilePath()}:` : ""} ${String(d.getMessageText())} (at ${d.getStart()}:${d.getLength()})`).join("\n")}`);
321
321
  }
322
322
  }
323
- const diagnosticMessages = [];
324
- result.getDiagnostics().forEach((diagnostic) => {
325
- if (diagnostic.getSourceFile()?.getBaseName()) {
326
- diagnosticMessages.push(`${diagnostic.getSourceFile()?.getBaseName()} (${(diagnostic.getLineNumber() ?? 0) + 1}): ${flattenDiagnosticMessageText(diagnostic.getMessageText().toString(), "\n")}`);
327
- } else {
328
- diagnosticMessages.push(flattenDiagnosticMessageText(diagnostic.getMessageText().toString(), "\n"));
323
+ const emittedFiles = result.getFiles();
324
+ context.debug(`The TypeScript compiler emitted ${emittedFiles.length} files for built-in types.`);
325
+ let builtinModules = "";
326
+ for (const emittedFile of emittedFiles) {
327
+ if (!emittedFile.filePath.endsWith(".map")) {
328
+ context.trace(`Processing emitted built-in types file: ${emittedFile.filePath}`);
329
+ builtinModules += `
330
+ declare module "${replaceExtension(replacePath(emittedFile.filePath, context.builtinsPath))}" {
331
+ ${emittedFile.text.trim().replace(/^\s*export\s*declare\s*/gm, "export ").replace(/^\s*declare\s*/gm, "")}
332
+ }
333
+ `;
329
334
  }
330
- });
331
- const diagnosticMessage = diagnosticMessages.join("\n");
332
- if (diagnosticMessage) {
333
- throw new Error(`TypeScript compilation failed:
334
-
335
- ${diagnosticMessage.length > 5e3 ? `${diagnosticMessage.slice(0, 5e3)}...` : diagnosticMessage}`);
336
335
  }
337
- return formatTypes(builtinModules);
336
+ builtinModules = formatTypes(builtinModules);
337
+ context.debug(`A TypeScript declaration file (size: ${prettyBytes(new Blob(toArray(builtinModules)).size)}) emitted for the built-in modules types.`);
338
+ return builtinModules;
338
339
  }
339
340
  __name(emitTypes, "emitTypes");
340
341
  var mergeResults = createDefu((obj, key, value) => {
@@ -419,7 +420,7 @@ async function installPackage(context, packageName, dev = false) {
419
420
  if (!await isPackageListed(getPackageName(packageName), {
420
421
  cwd: context.config.projectRoot
421
422
  })) {
422
- if (context.config.skipInstalls !== true) {
423
+ if (context.config.autoInstall) {
423
424
  context.log(LogLevelLabel.WARN, `The package "${packageName}" is not installed. It will be installed automatically.`);
424
425
  const result = await install(packageName, {
425
426
  cwd: context.config.projectRoot,
@@ -430,7 +431,7 @@ async function installPackage(context, packageName, dev = false) {
430
431
  throw new Error(`An error occurred while installing the package "${packageName}"`);
431
432
  }
432
433
  } else {
433
- context.log(LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "skipInstalls" option is set to true, it will not be installed automatically.`);
434
+ context.log(LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "autoInstall" option is set to false, it will not be installed automatically.`);
434
435
  }
435
436
  } else if (hasPackageVersion(packageName) && !process.env.POWERLINES_SKIP_VERSION_CHECK) {
436
437
  const isMatching = await doesPackageMatch(getPackageName(packageName), getPackageVersion(packageName), context.config.projectRoot);
@@ -942,7 +943,7 @@ function resolveEntriesSync(context, typeDefinitions) {
942
943
  name: typeDefinition.name
943
944
  });
944
945
  }
945
- return listFilesSync(filePath).map((file) => resolveEntry(context, {
946
+ return context.fs.listSync(filePath).map((file) => resolveEntry(context, {
946
947
  file,
947
948
  name: typeDefinition.name
948
949
  }));
@@ -2438,7 +2439,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2438
2439
  async write(path, data = "", options = {}) {
2439
2440
  const meta = options.meta ?? {};
2440
2441
  const { relativeKey, adapter } = this.#getStorage(options.storage || path);
2441
- this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(data)).size)})`);
2442
+ this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob$1(toArray(data)).size)})`);
2442
2443
  let code = data;
2443
2444
  try {
2444
2445
  if (!options.skipFormat) {
@@ -2448,7 +2449,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2448
2449
  this.#log(LogLevelLabel.WARN, `Failed to format file ${this.#normalizePath(path)} before writing: ${err.message}`);
2449
2450
  code = data;
2450
2451
  }
2451
- this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(code)).size)})`);
2452
+ this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob$1(toArray(code)).size)})`);
2452
2453
  const id = this.#normalizeId(meta.id || relativeKey);
2453
2454
  this.metadata[id] = {
2454
2455
  type: "normal",
@@ -2470,7 +2471,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2470
2471
  writeSync(path, data = "", options = {}) {
2471
2472
  const meta = options.meta ?? {};
2472
2473
  const { relativeKey, adapter } = this.#getStorage(options.storage || path);
2473
- this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(data)).size)})`);
2474
+ this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob$1(toArray(data)).size)})`);
2474
2475
  const id = this.#normalizeId(meta.id || relativeKey);
2475
2476
  this.metadata[id] = {
2476
2477
  type: "normal",
@@ -2830,7 +2831,7 @@ var PowerlinesContext = class _PowerlinesContext {
2830
2831
  tsconfig: config.tsconfig,
2831
2832
  tsconfigRaw: config.tsconfigRaw,
2832
2833
  skipCache: config.skipCache,
2833
- skipInstalls: config.skipInstalls,
2834
+ autoInstall: config.autoInstall,
2834
2835
  entry: config.entry,
2835
2836
  output: config.output,
2836
2837
  plugins: config.plugins,
@@ -4432,7 +4433,7 @@ var PowerlinesAPI = class _PowerlinesAPI {
4432
4433
  order: "normal"
4433
4434
  });
4434
4435
  context.debug(`The configuration provided ${toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
4435
- ${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}.`);
4436
+ ${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}`);
4436
4437
  await resolveTsconfig(context);
4437
4438
  await installDependencies(context);
4438
4439
  await this.callHook("configResolved", {
@@ -4991,7 +4992,7 @@ Please ensure the value is one of the following:
4991
4992
  this.context.config.projectRoot
4992
4993
  ]
4993
4994
  });
4994
- if (!isInstalled && this.context.config.skipInstalls !== true) {
4995
+ if (!isInstalled && this.context.config.autoInstall) {
4995
4996
  this.#context.warn(`The plugin package "${pluginPath}" is not installed. It will be installed automatically.`);
4996
4997
  const result = await install(pluginPath, {
4997
4998
  cwd: this.context.config.projectRoot
@@ -5031,5 +5032,5 @@ Note: Please ensure the plugin package's default export is a class that extends
5031
5032
  };
5032
5033
 
5033
5034
  export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant, name, version };
5034
- //# sourceMappingURL=chunk-2RPY4RCM.js.map
5035
- //# sourceMappingURL=chunk-2RPY4RCM.js.map
5035
+ //# sourceMappingURL=chunk-7EBAVG2H.js.map
5036
+ //# sourceMappingURL=chunk-7EBAVG2H.js.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-Z5X3K5LA.js';
1
+ import { createUnpluginFactory } from './chunk-DHFLXVK7.js';
2
2
  import { createWebpackPlugin } from 'unplugin';
3
3
 
4
4
  var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
5
5
  var webpack_default = webpack;
6
6
 
7
7
  export { webpack, webpack_default };
8
- //# sourceMappingURL=chunk-XM76ZBSK.js.map
9
- //# sourceMappingURL=chunk-XM76ZBSK.js.map
8
+ //# sourceMappingURL=chunk-BVKWNX7Q.js.map
9
+ //# sourceMappingURL=chunk-BVKWNX7Q.js.map
@@ -1,4 +1,4 @@
1
- import { createLog, PowerlinesAPI } from './chunk-2RPY4RCM.js';
1
+ import { createLog, PowerlinesAPI } from './chunk-7EBAVG2H.js';
2
2
  import { __name } from './chunk-7QVYU63E.js';
3
3
  import { LogLevelLabel } from '@storm-software/config-tools/types';
4
4
  import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
@@ -134,5 +134,5 @@ function createUnpluginFactory(variant, decorate) {
134
134
  __name(createUnpluginFactory, "createUnpluginFactory");
135
135
 
136
136
  export { createUnpluginFactory, getString };
137
- //# sourceMappingURL=chunk-Z5X3K5LA.js.map
138
- //# sourceMappingURL=chunk-Z5X3K5LA.js.map
137
+ //# sourceMappingURL=chunk-DHFLXVK7.js.map
138
+ //# sourceMappingURL=chunk-DHFLXVK7.js.map
@@ -27,10 +27,10 @@ var chalk5 = require('chalk');
27
27
  var Handlebars = require('handlebars');
28
28
  var helperPluginUtils = require('@babel/helper-plugin-utils');
29
29
  var t = require('@babel/types');
30
+ var prettyBytes = require('@stryke/string-format/pretty-bytes');
31
+ var tsMorph = require('ts-morph');
30
32
  var types = require('@storm-software/config-tools/types');
31
- var ts = require('typescript');
32
33
  var defu7 = require('defu');
33
- var tsMorph = require('ts-morph');
34
34
  var _package = require('@stryke/string-format/package');
35
35
  var superdiff = require('@donedeal0/superdiff');
36
36
  var json = require('@stryke/fs/json');
@@ -38,6 +38,7 @@ var stormJson = require('@stryke/json/storm-json');
38
38
  var filePathFns = require('@stryke/path/file-path-fns');
39
39
  var titleCase = require('@stryke/string-format/title-case');
40
40
  var exists = require('@stryke/fs/exists');
41
+ var ts = require('typescript');
41
42
  var getConfig = require('@storm-software/config-tools/get-config');
42
43
  var c12 = require('c12');
43
44
  var getEnvPaths = require('@stryke/env/get-env-paths');
@@ -62,7 +63,6 @@ var isFile = require('@stryke/fs/is-file');
62
63
  var $ = require('@stryke/capnp');
63
64
  var buffer = require('@stryke/fs/buffer');
64
65
  var isType = require('@stryke/path/is-type');
65
- var prettyBytes = require('@stryke/string-format/pretty-bytes');
66
66
  var isRegexp = require('@stryke/type-checks/is-regexp');
67
67
  var buffer$1 = require('buffer');
68
68
  var url = require('url');
@@ -103,13 +103,13 @@ function _interopNamespace(e) {
103
103
  var chalk5__default = /*#__PURE__*/_interopDefault(chalk5);
104
104
  var Handlebars__default = /*#__PURE__*/_interopDefault(Handlebars);
105
105
  var t__namespace = /*#__PURE__*/_interopNamespace(t);
106
- var ts__default = /*#__PURE__*/_interopDefault(ts);
107
106
  var defu7__default = /*#__PURE__*/_interopDefault(defu7);
107
+ var ts__default = /*#__PURE__*/_interopDefault(ts);
108
108
  var $__namespace = /*#__PURE__*/_interopNamespace($);
109
109
 
110
110
  // package.json
111
111
  var name = "powerlines";
112
- var version = "0.37.33";
112
+ var version = "0.37.35";
113
113
  var package_default = {
114
114
  version};
115
115
  function resolveModulePath(nodePath, state) {
@@ -328,7 +328,7 @@ function formatTypes(code) {
328
328
  }
329
329
  chunkPK6SKIKE_cjs.__name(formatTypes, "formatTypes");
330
330
  async function emitTypes(context, files) {
331
- context.log(types.LogLevelLabel.TRACE, `Running the TypeScript compiler for ${files.length} generated runtime files.`);
331
+ context.debug(`Running the TypeScript compiler for ${files.length} generated runtime files.`);
332
332
  const program = createProgram(context, {
333
333
  skipAddingFilesFromTsConfig: true
334
334
  });
@@ -336,34 +336,35 @@ async function emitTypes(context, files) {
336
336
  const result = program.emitToMemory({
337
337
  emitOnlyDtsFiles: true
338
338
  });
339
- let builtinModules = "";
340
- for (const file of result.getFiles()) {
341
- if (!file.filePath.endsWith(".map")) {
342
- if (context.builtins.some((builtin) => builtin === file.filePath || context.fs.metadata[builtin]?.id && context.fs.metadata[builtin]?.id === file.filePath)) {
343
- const module = await context.fs.resolve(file.filePath);
344
- builtinModules += `
345
- declare module "${module}" {
346
- ${file.text.trim().replace(/^\s*export\s*declare\s*/gm, "export ").replace(/^\s*declare\s*/gm, "")}
347
- }
348
- `;
349
- }
339
+ const diagnostics = result.getDiagnostics();
340
+ if (diagnostics && diagnostics.length > 0) {
341
+ if (diagnostics.some((d) => d.getCategory() === tsMorph.DiagnosticCategory.Error)) {
342
+ throw new Error(`The Typescript emit process failed while generating built-in types:
343
+ ${diagnostics.filter((d) => d.getCategory() === tsMorph.DiagnosticCategory.Error).map((d) => `-${d.getSourceFile() ? `${d.getSourceFile()?.getFilePath()}:` : ""} ${String(d.getMessageText())} (at ${d.getStart()}:${d.getLength()})`).join("\n")}`);
344
+ } else if (diagnostics.some((d) => d.getCategory() === tsMorph.DiagnosticCategory.Warning)) {
345
+ context.warn(`The Typescript emit process completed with warnings while generating built-in types:
346
+ ${diagnostics.filter((d) => d.getCategory() === tsMorph.DiagnosticCategory.Warning).map((d) => `-${d.getSourceFile() ? `${d.getSourceFile()?.getFilePath()}:` : ""} ${String(d.getMessageText())} (at ${d.getStart()}:${d.getLength()})`).join("\n")}`);
347
+ } else {
348
+ context.debug(`The Typescript emit process completed with diagnostic messages while generating built-in types:
349
+ ${diagnostics.map((d) => `-${d.getSourceFile() ? `${d.getSourceFile()?.getFilePath()}:` : ""} ${String(d.getMessageText())} (at ${d.getStart()}:${d.getLength()})`).join("\n")}`);
350
350
  }
351
351
  }
352
- const diagnosticMessages = [];
353
- result.getDiagnostics().forEach((diagnostic) => {
354
- if (diagnostic.getSourceFile()?.getBaseName()) {
355
- diagnosticMessages.push(`${diagnostic.getSourceFile()?.getBaseName()} (${(diagnostic.getLineNumber() ?? 0) + 1}): ${ts.flattenDiagnosticMessageText(diagnostic.getMessageText().toString(), "\n")}`);
356
- } else {
357
- diagnosticMessages.push(ts.flattenDiagnosticMessageText(diagnostic.getMessageText().toString(), "\n"));
352
+ const emittedFiles = result.getFiles();
353
+ context.debug(`The TypeScript compiler emitted ${emittedFiles.length} files for built-in types.`);
354
+ let builtinModules = "";
355
+ for (const emittedFile of emittedFiles) {
356
+ if (!emittedFile.filePath.endsWith(".map")) {
357
+ context.trace(`Processing emitted built-in types file: ${emittedFile.filePath}`);
358
+ builtinModules += `
359
+ declare module "${replace.replaceExtension(replace.replacePath(emittedFile.filePath, context.builtinsPath))}" {
360
+ ${emittedFile.text.trim().replace(/^\s*export\s*declare\s*/gm, "export ").replace(/^\s*declare\s*/gm, "")}
361
+ }
362
+ `;
358
363
  }
359
- });
360
- const diagnosticMessage = diagnosticMessages.join("\n");
361
- if (diagnosticMessage) {
362
- throw new Error(`TypeScript compilation failed:
363
-
364
- ${diagnosticMessage.length > 5e3 ? `${diagnosticMessage.slice(0, 5e3)}...` : diagnosticMessage}`);
365
364
  }
366
- return formatTypes(builtinModules);
365
+ builtinModules = formatTypes(builtinModules);
366
+ context.debug(`A TypeScript declaration file (size: ${prettyBytes.prettyBytes(new Blob(toArray.toArray(builtinModules)).size)}) emitted for the built-in modules types.`);
367
+ return builtinModules;
367
368
  }
368
369
  chunkPK6SKIKE_cjs.__name(emitTypes, "emitTypes");
369
370
  var mergeResults = defu7.createDefu((obj, key, value) => {
@@ -448,7 +449,7 @@ async function installPackage(context, packageName, dev = false) {
448
449
  if (!await packageFns.isPackageListed(_package.getPackageName(packageName), {
449
450
  cwd: context.config.projectRoot
450
451
  })) {
451
- if (context.config.skipInstalls !== true) {
452
+ if (context.config.autoInstall) {
452
453
  context.log(types.LogLevelLabel.WARN, `The package "${packageName}" is not installed. It will be installed automatically.`);
453
454
  const result = await install.install(packageName, {
454
455
  cwd: context.config.projectRoot,
@@ -459,7 +460,7 @@ async function installPackage(context, packageName, dev = false) {
459
460
  throw new Error(`An error occurred while installing the package "${packageName}"`);
460
461
  }
461
462
  } else {
462
- context.log(types.LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "skipInstalls" option is set to true, it will not be installed automatically.`);
463
+ context.log(types.LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "autoInstall" option is set to false, it will not be installed automatically.`);
463
464
  }
464
465
  } else if (_package.hasPackageVersion(packageName) && !process.env.POWERLINES_SKIP_VERSION_CHECK) {
465
466
  const isMatching = await packageFns.doesPackageMatch(_package.getPackageName(packageName), _package.getPackageVersion(packageName), context.config.projectRoot);
@@ -971,7 +972,7 @@ function resolveEntriesSync(context, typeDefinitions) {
971
972
  name: typeDefinition.name
972
973
  });
973
974
  }
974
- return listFiles.listFilesSync(filePath).map((file) => resolveEntry(context, {
975
+ return context.fs.listSync(filePath).map((file) => resolveEntry(context, {
975
976
  file,
976
977
  name: typeDefinition.name
977
978
  }));
@@ -2859,7 +2860,7 @@ var PowerlinesContext = class _PowerlinesContext {
2859
2860
  tsconfig: config.tsconfig,
2860
2861
  tsconfigRaw: config.tsconfigRaw,
2861
2862
  skipCache: config.skipCache,
2862
- skipInstalls: config.skipInstalls,
2863
+ autoInstall: config.autoInstall,
2863
2864
  entry: config.entry,
2864
2865
  output: config.output,
2865
2866
  plugins: config.plugins,
@@ -4461,7 +4462,7 @@ var PowerlinesAPI = class _PowerlinesAPI {
4461
4462
  order: "normal"
4462
4463
  });
4463
4464
  context.debug(`The configuration provided ${toArray.toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
4464
- ${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}.`);
4465
+ ${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}`);
4465
4466
  await resolveTsconfig(context);
4466
4467
  await installDependencies(context);
4467
4468
  await this.callHook("configResolved", {
@@ -5020,7 +5021,7 @@ Please ensure the value is one of the following:
5020
5021
  this.context.config.projectRoot
5021
5022
  ]
5022
5023
  });
5023
- if (!isInstalled && this.context.config.skipInstalls !== true) {
5024
+ if (!isInstalled && this.context.config.autoInstall) {
5024
5025
  this.#context.warn(`The plugin package "${pluginPath}" is not installed. It will be installed automatically.`);
5025
5026
  const result = await install.install(pluginPath, {
5026
5027
  cwd: this.context.config.projectRoot
@@ -5072,5 +5073,5 @@ exports.extendLog = extendLog;
5072
5073
  exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
5073
5074
  exports.name = name;
5074
5075
  exports.version = version;
5075
- //# sourceMappingURL=chunk-T2AQYNL2.cjs.map
5076
- //# sourceMappingURL=chunk-T2AQYNL2.cjs.map
5076
+ //# sourceMappingURL=chunk-DS4NQ6HY.cjs.map
5077
+ //# sourceMappingURL=chunk-DS4NQ6HY.cjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkT2AQYNL2_cjs = require('./chunk-T2AQYNL2.cjs');
3
+ var chunkDS4NQ6HY_cjs = require('./chunk-DS4NQ6HY.cjs');
4
4
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
5
5
  var types = require('@storm-software/config-tools/types');
6
6
  var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
27
27
  // src/lib/unplugin/factory.ts
28
28
  function createUnpluginFactory(variant, decorate) {
29
29
  return (config, meta) => {
30
- const log = chunkT2AQYNL2_cjs.createLog("unplugin", config);
30
+ const log = chunkDS4NQ6HY_cjs.createLog("unplugin", config);
31
31
  log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
32
32
  try {
33
33
  const userConfig = {
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
38
38
  let api;
39
39
  async function buildStart() {
40
40
  log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
41
- api = await chunkT2AQYNL2_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
41
+ api = await chunkDS4NQ6HY_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
42
42
  unplugin.setParseImpl(api.context.parse);
43
43
  log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
44
44
  await api.prepare({
@@ -137,5 +137,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
137
137
 
138
138
  exports.createUnpluginFactory = createUnpluginFactory;
139
139
  exports.getString = getString;
140
- //# sourceMappingURL=chunk-PGJAR3DA.cjs.map
141
- //# sourceMappingURL=chunk-PGJAR3DA.cjs.map
140
+ //# sourceMappingURL=chunk-FGJ6XPBJ.cjs.map
141
+ //# sourceMappingURL=chunk-FGJ6XPBJ.cjs.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkFGJ6XPBJ_cjs = require('./chunk-FGJ6XPBJ.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var rolldown = unplugin.createRolldownPlugin(chunkFGJ6XPBJ_cjs.createUnpluginFactory("rolldown"));
7
+ var rolldown_default = rolldown;
8
+
9
+ exports.rolldown = rolldown;
10
+ exports.rolldown_default = rolldown_default;
11
+ //# sourceMappingURL=chunk-GMA3KYZJ.cjs.map
12
+ //# sourceMappingURL=chunk-GMA3KYZJ.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-FJHS7DAU.js';
2
- import { createUnpluginFactory } from './chunk-Z5X3K5LA.js';
2
+ import { createUnpluginFactory } from './chunk-DHFLXVK7.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
5
5
  import defu from 'defu';
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
151
151
  var vite_default = vite;
152
152
 
153
153
  export { vite, vite_default };
154
- //# sourceMappingURL=chunk-AHTPFT35.js.map
155
- //# sourceMappingURL=chunk-AHTPFT35.js.map
154
+ //# sourceMappingURL=chunk-IG5WPC7V.js.map
155
+ //# sourceMappingURL=chunk-IG5WPC7V.js.map