@powerlines/nx 0.11.231 → 0.11.232

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 (250) hide show
  1. package/dist/src/base/base-executor.cjs +2 -1
  2. package/dist/src/base/base-executor.d.cts +2 -2
  3. package/dist/src/base/base-executor.d.mts +2 -2
  4. package/dist/src/base/base-executor.mjs +2 -1
  5. package/dist/src/base/base-executor.schema.d.cts +1 -1
  6. package/dist/src/base/base-executor.schema.d.mts +1 -1
  7. package/dist/src/base/base-executor.untyped.cjs +1 -1
  8. package/dist/src/base/base-executor.untyped.d.cts +2 -6
  9. package/dist/src/base/base-executor.untyped.d.mts +2 -7
  10. package/dist/src/base/base-executor.untyped.mjs +1 -1
  11. package/dist/src/base/index.cjs +6 -0
  12. package/dist/src/base/index.d.cts +5 -0
  13. package/dist/src/base/index.d.mts +5 -0
  14. package/dist/src/base/index.mjs +6 -0
  15. package/dist/src/base-executor-BwNEuJr4.d.mts +2152 -0
  16. package/dist/src/base-executor-BwNEuJr4.d.mts.map +1 -0
  17. package/dist/src/base-executor-BxwoTM0e.d.cts +2150 -0
  18. package/dist/src/base-executor-BxwoTM0e.d.cts.map +1 -0
  19. package/dist/src/base-executor-D0PC7G0V.cjs +4646 -0
  20. package/dist/src/base-executor-ZxlpQ-df.mjs +4628 -0
  21. package/dist/src/base-executor-ZxlpQ-df.mjs.map +1 -0
  22. package/dist/{base-executor.schema-LJ14f-QU.d.mts → src/base-executor.schema-CZPuauLj.d.cts} +1 -1
  23. package/dist/src/base-executor.schema-CZPuauLj.d.cts.map +1 -0
  24. package/dist/{base-executor.schema-CH9f7UZz.d.cts → src/base-executor.schema-DiDI-Jcs.d.mts} +1 -1
  25. package/dist/src/base-executor.schema-DiDI-Jcs.d.mts.map +1 -0
  26. package/dist/src/base-executor.untyped-5iZFoBFu.d.mts +7 -0
  27. package/dist/src/base-executor.untyped-5iZFoBFu.d.mts.map +1 -0
  28. package/dist/{base-executor.untyped-Bet42T8_.mjs → src/base-executor.untyped-BKF-oUZS.mjs} +1 -1
  29. package/dist/src/base-executor.untyped-BKF-oUZS.mjs.map +1 -0
  30. package/dist/{base-executor.untyped-DUgXmZji.cjs → src/base-executor.untyped-CDbDTHgS.cjs} +1 -1
  31. package/dist/src/base-executor.untyped-DsIwfUqm.d.cts +7 -0
  32. package/dist/src/base-executor.untyped-DsIwfUqm.d.cts.map +1 -0
  33. package/dist/src/config-Dkb72RJI.cjs +239 -0
  34. package/dist/src/config-LoR-NIJg.mjs +147 -0
  35. package/dist/src/config-LoR-NIJg.mjs.map +1 -0
  36. package/dist/src/constants-BvU9n9qR.d.mts +8 -0
  37. package/dist/src/constants-BvU9n9qR.d.mts.map +1 -0
  38. package/dist/src/constants-CPcygc7m.d.cts +8 -0
  39. package/dist/src/constants-CPcygc7m.d.cts.map +1 -0
  40. package/dist/{constants-DPeeG_si.mjs → src/constants-DzvoYj5w.mjs} +1 -1
  41. package/dist/src/constants-DzvoYj5w.mjs.map +1 -0
  42. package/dist/src/executors/build/executor.cjs +19 -4
  43. package/dist/src/executors/build/executor.d.cts +165 -4
  44. package/dist/src/executors/build/executor.d.cts.map +1 -0
  45. package/dist/src/executors/build/executor.d.mts +165 -4
  46. package/dist/src/executors/build/executor.d.mts.map +1 -0
  47. package/dist/src/executors/build/executor.mjs +18 -3
  48. package/dist/src/executors/build/executor.mjs.map +1 -0
  49. package/dist/src/executors/build/untyped.cjs +3 -3
  50. package/dist/src/executors/build/untyped.d.cts +2 -2
  51. package/dist/src/executors/build/untyped.d.mts +2 -2
  52. package/dist/src/executors/build/untyped.mjs +2 -2
  53. package/dist/src/executors/clean/executor.cjs +13 -4
  54. package/dist/src/executors/clean/executor.d.cts +139 -4
  55. package/dist/src/executors/clean/executor.d.cts.map +1 -0
  56. package/dist/src/executors/clean/executor.d.mts +139 -4
  57. package/dist/src/executors/clean/executor.d.mts.map +1 -0
  58. package/dist/src/executors/clean/executor.mjs +13 -3
  59. package/dist/{executor-DriX4F9a.mjs.map → src/executors/clean/executor.mjs.map} +1 -1
  60. package/dist/src/executors/clean/untyped.cjs +2 -2
  61. package/dist/src/executors/clean/untyped.d.cts +2 -2
  62. package/dist/src/executors/clean/untyped.d.mts +2 -2
  63. package/dist/src/executors/clean/untyped.mjs +1 -1
  64. package/dist/src/executors/docs/executor.cjs +13 -4
  65. package/dist/src/executors/docs/executor.d.cts +155 -4
  66. package/dist/src/executors/docs/executor.d.cts.map +1 -0
  67. package/dist/src/executors/docs/executor.d.mts +155 -4
  68. package/dist/src/executors/docs/executor.d.mts.map +1 -0
  69. package/dist/src/executors/docs/executor.mjs +13 -3
  70. package/dist/{executor-CR4F9h0Q.mjs.map → src/executors/docs/executor.mjs.map} +1 -1
  71. package/dist/src/executors/docs/untyped.cjs +3 -3
  72. package/dist/src/executors/docs/untyped.d.cts +2 -2
  73. package/dist/src/executors/docs/untyped.d.mts +2 -2
  74. package/dist/src/executors/docs/untyped.mjs +2 -2
  75. package/dist/src/executors/lint/executor.cjs +13 -4
  76. package/dist/src/executors/lint/executor.d.cts +155 -4
  77. package/dist/src/executors/lint/executor.d.cts.map +1 -0
  78. package/dist/src/executors/lint/executor.d.mts +155 -4
  79. package/dist/src/executors/lint/executor.d.mts.map +1 -0
  80. package/dist/src/executors/lint/executor.mjs +13 -3
  81. package/dist/{executor-dakLe5jY.mjs.map → src/executors/lint/executor.mjs.map} +1 -1
  82. package/dist/src/executors/lint/untyped.cjs +3 -3
  83. package/dist/src/executors/lint/untyped.d.cts +2 -2
  84. package/dist/src/executors/lint/untyped.d.mts +2 -2
  85. package/dist/src/executors/lint/untyped.mjs +2 -2
  86. package/dist/src/executors/prepare/executor.cjs +19 -4
  87. package/dist/src/executors/prepare/executor.d.cts +155 -4
  88. package/dist/src/executors/prepare/executor.d.cts.map +1 -0
  89. package/dist/src/executors/prepare/executor.d.mts +155 -4
  90. package/dist/src/executors/prepare/executor.d.mts.map +1 -0
  91. package/dist/src/executors/prepare/executor.mjs +18 -3
  92. package/dist/src/executors/prepare/executor.mjs.map +1 -0
  93. package/dist/src/executors/prepare/untyped.cjs +2 -2
  94. package/dist/src/executors/prepare/untyped.d.cts +2 -2
  95. package/dist/src/executors/prepare/untyped.d.mts +2 -2
  96. package/dist/src/executors/prepare/untyped.mjs +2 -2
  97. package/dist/src/generators/sync/generator.cjs +11 -3
  98. package/dist/src/generators/sync/generator.d.cts +8 -2
  99. package/dist/src/generators/sync/generator.d.cts.map +1 -0
  100. package/dist/src/generators/sync/generator.d.mts +8 -2
  101. package/dist/src/generators/sync/generator.d.mts.map +1 -0
  102. package/dist/src/generators/sync/generator.mjs +10 -2
  103. package/dist/{generator-DeiwVUqC.mjs.map → src/generators/sync/generator.mjs.map} +1 -1
  104. package/dist/src/generators/sync/untyped.cjs +1 -1
  105. package/dist/src/generators/sync/untyped.d.cts +2 -2
  106. package/dist/src/generators/sync/untyped.d.mts +2 -2
  107. package/dist/src/helpers/constants.cjs +1 -1
  108. package/dist/src/helpers/constants.d.cts +2 -8
  109. package/dist/src/helpers/constants.d.mts +2 -8
  110. package/dist/src/helpers/constants.mjs +1 -1
  111. package/dist/src/helpers/index.cjs +9 -0
  112. package/dist/src/helpers/index.d.cts +5 -0
  113. package/dist/src/helpers/index.d.mts +5 -0
  114. package/dist/src/helpers/index.mjs +6 -0
  115. package/dist/src/helpers/plugin-utilities.cjs +3 -2
  116. package/dist/src/helpers/plugin-utilities.d.cts +3 -58
  117. package/dist/src/helpers/plugin-utilities.d.mts +3 -58
  118. package/dist/src/helpers/plugin-utilities.mjs +3 -2
  119. package/dist/src/index-DOvrmvAP.d.cts +1 -0
  120. package/dist/src/index-Dh6J9gb5.d.cts +1 -0
  121. package/dist/src/index-QAtBiMxG.d.cts +1 -0
  122. package/dist/src/index-c55Utzva.d.mts +1 -0
  123. package/dist/src/index.cjs +15 -0
  124. package/dist/src/index.d.cts +10 -0
  125. package/dist/src/index.d.mts +10 -0
  126. package/dist/src/index.mjs +11 -0
  127. package/dist/src/plugin/index.cjs +8 -4
  128. package/dist/src/plugin/index.d.cts +8 -3
  129. package/dist/src/plugin/index.d.cts.map +1 -0
  130. package/dist/src/plugin/index.d.mts +8 -3
  131. package/dist/src/plugin/index.d.mts.map +1 -0
  132. package/dist/src/plugin/index.mjs +9 -4
  133. package/dist/src/plugin/index.mjs.map +1 -0
  134. package/dist/src/plugin-BSBH78mm.cjs +0 -0
  135. package/dist/{plugin-CODFOru1.d.cts → src/plugin-Bpm6rlvQ.d.cts} +1 -1
  136. package/dist/src/plugin-Bpm6rlvQ.d.cts.map +1 -0
  137. package/dist/{plugin-DpjoI0QS.d.mts → src/plugin-DK05gCB5.d.mts} +1 -1
  138. package/dist/src/plugin-DK05gCB5.d.mts.map +1 -0
  139. package/dist/src/plugin-DRjpXVSI.mjs +1 -0
  140. package/dist/{plugin-utilities-CuJ0wEZS.cjs → src/plugin-utilities-B6thBT59.cjs} +16 -135
  141. package/dist/src/plugin-utilities-CYqug_T4.d.mts +58 -0
  142. package/dist/src/plugin-utilities-CYqug_T4.d.mts.map +1 -0
  143. package/dist/{plugin-utilities-DpjLrWCz.mjs → src/plugin-utilities-DGw6LPZ0.mjs} +15 -133
  144. package/dist/src/plugin-utilities-DGw6LPZ0.mjs.map +1 -0
  145. package/dist/src/plugin-utilities-rlfzc3UW.d.cts +58 -0
  146. package/dist/src/plugin-utilities-rlfzc3UW.d.cts.map +1 -0
  147. package/dist/src/types/index.cjs +2 -0
  148. package/dist/src/types/index.d.cts +3 -0
  149. package/dist/src/types/index.d.mts +3 -0
  150. package/dist/src/types/index.mjs +4 -0
  151. package/dist/src/types/plugin.cjs +1 -0
  152. package/dist/src/types/plugin.d.cts +1 -1
  153. package/dist/src/types/plugin.d.mts +1 -1
  154. package/dist/src/types/plugin.mjs +2 -0
  155. package/dist/src/types-CKPddlfS.cjs +0 -0
  156. package/dist/src/types-SpBueMV7.mjs +1 -0
  157. package/dist/{untyped-DKPJSDgJ.cjs → src/untyped-BgrXugMs.cjs} +2 -2
  158. package/dist/{untyped-BIEzjl_J.mjs → src/untyped-DCpTmHDS.mjs} +2 -2
  159. package/dist/src/untyped-DCpTmHDS.mjs.map +1 -0
  160. package/package.json +18 -46
  161. package/dist/base-executor-BKuqWAnc.d.mts +0 -28
  162. package/dist/base-executor-BKuqWAnc.d.mts.map +0 -1
  163. package/dist/base-executor-CL9md5FK.d.cts +0 -28
  164. package/dist/base-executor-CL9md5FK.d.cts.map +0 -1
  165. package/dist/base-executor-DIVmWt0_.mjs +0 -76
  166. package/dist/base-executor-DIVmWt0_.mjs.map +0 -1
  167. package/dist/base-executor-hfeykVFL.cjs +0 -83
  168. package/dist/base-executor.schema-CH9f7UZz.d.cts.map +0 -1
  169. package/dist/base-executor.schema-LJ14f-QU.d.mts.map +0 -1
  170. package/dist/base-executor.untyped-Bet42T8_.mjs.map +0 -1
  171. package/dist/chunk-CbDLau6x.cjs +0 -34
  172. package/dist/constants-DPeeG_si.mjs.map +0 -1
  173. package/dist/executor-9aTY5L1O.d.mts +0 -155
  174. package/dist/executor-9aTY5L1O.d.mts.map +0 -1
  175. package/dist/executor-BA-Xvw_2.cjs +0 -23
  176. package/dist/executor-BDu-MfKS.d.cts +0 -155
  177. package/dist/executor-BDu-MfKS.d.cts.map +0 -1
  178. package/dist/executor-BaJuosQ2.d.cts +0 -139
  179. package/dist/executor-BaJuosQ2.d.cts.map +0 -1
  180. package/dist/executor-BerELzzO.d.cts +0 -165
  181. package/dist/executor-BerELzzO.d.cts.map +0 -1
  182. package/dist/executor-C12a2R2m.d.mts +0 -165
  183. package/dist/executor-C12a2R2m.d.mts.map +0 -1
  184. package/dist/executor-CQoHBvIx.d.mts +0 -155
  185. package/dist/executor-CQoHBvIx.d.mts.map +0 -1
  186. package/dist/executor-CR4F9h0Q.mjs +0 -13
  187. package/dist/executor-CmOJDW7i.cjs +0 -30
  188. package/dist/executor-CsYeTG7f.d.mts +0 -155
  189. package/dist/executor-CsYeTG7f.d.mts.map +0 -1
  190. package/dist/executor-DXs-DQDq.cjs +0 -23
  191. package/dist/executor-DY3Q5btA.mjs +0 -18
  192. package/dist/executor-DY3Q5btA.mjs.map +0 -1
  193. package/dist/executor-DaM4shEF.d.mts +0 -139
  194. package/dist/executor-DaM4shEF.d.mts.map +0 -1
  195. package/dist/executor-DriX4F9a.mjs +0 -13
  196. package/dist/executor-DupYdy7P.cjs +0 -23
  197. package/dist/executor-_6Wimayo.d.cts +0 -155
  198. package/dist/executor-_6Wimayo.d.cts.map +0 -1
  199. package/dist/executor-dakLe5jY.mjs +0 -13
  200. package/dist/executor-gauQV_Qs.mjs +0 -18
  201. package/dist/executor-gauQV_Qs.mjs.map +0 -1
  202. package/dist/executor-q94V36zQ.d.cts +0 -155
  203. package/dist/executor-q94V36zQ.d.cts.map +0 -1
  204. package/dist/executor-tEMakUYi.cjs +0 -30
  205. package/dist/executors.cjs +0 -13
  206. package/dist/executors.d.cts +0 -9
  207. package/dist/executors.d.mts +0 -9
  208. package/dist/executors.mjs +0 -9
  209. package/dist/generator-DeiwVUqC.mjs +0 -11
  210. package/dist/generator-Dv37nXlF.d.cts +0 -8
  211. package/dist/generator-Dv37nXlF.d.cts.map +0 -1
  212. package/dist/generator-Uu2ErkQj.cjs +0 -22
  213. package/dist/generator-aA0eb35E.d.mts +0 -8
  214. package/dist/generator-aA0eb35E.d.mts.map +0 -1
  215. package/dist/generators-B8_tB0mD.d.cts +0 -17
  216. package/dist/generators-B8_tB0mD.d.cts.map +0 -1
  217. package/dist/generators-DymCAfYw.d.mts +0 -17
  218. package/dist/generators-DymCAfYw.d.mts.map +0 -1
  219. package/dist/generators.cjs +0 -5
  220. package/dist/generators.d.cts +0 -3
  221. package/dist/generators.d.mts +0 -3
  222. package/dist/generators.mjs +0 -4
  223. package/dist/index-BAMQksFF.d.mts +0 -8
  224. package/dist/index-BAMQksFF.d.mts.map +0 -1
  225. package/dist/index-C5yJ9lGj.d.cts +0 -8
  226. package/dist/index-C5yJ9lGj.d.cts.map +0 -1
  227. package/dist/index.cjs +0 -21
  228. package/dist/index.d.cts +0 -13
  229. package/dist/index.d.mts +0 -13
  230. package/dist/index.mjs +0 -14
  231. package/dist/plugin-B-zUI527.cjs +0 -12
  232. package/dist/plugin-BheScrsg.mjs +0 -8
  233. package/dist/plugin-BheScrsg.mjs.map +0 -1
  234. package/dist/plugin-CODFOru1.d.cts.map +0 -1
  235. package/dist/plugin-DpjoI0QS.d.mts.map +0 -1
  236. package/dist/plugin-utilities-DpjLrWCz.mjs.map +0 -1
  237. package/dist/src/base/base-executor.untyped.d.cts.map +0 -1
  238. package/dist/src/base/base-executor.untyped.d.mts.map +0 -1
  239. package/dist/src/helpers/constants.d.cts.map +0 -1
  240. package/dist/src/helpers/constants.d.mts.map +0 -1
  241. package/dist/src/helpers/plugin-utilities.d.cts.map +0 -1
  242. package/dist/src/helpers/plugin-utilities.d.mts.map +0 -1
  243. package/dist/untyped-BIEzjl_J.mjs.map +0 -1
  244. /package/dist/{executors-D7478W2S.cjs → src/base-BHJKI_1R.cjs} +0 -0
  245. /package/dist/{executors-C15iG1sF.mjs → src/base-BRSa-clf.mjs} +0 -0
  246. /package/dist/{constants-BHT2TeEj.cjs → src/constants-Dpoi7x5C.cjs} +0 -0
  247. /package/dist/{generators-q39_jUCw.cjs → src/helpers-Bx2yBrpn.cjs} +0 -0
  248. /package/dist/{generators-Bi9wzfNx.mjs → src/helpers-j01T2doK.mjs} +0 -0
  249. /package/dist/{executors-YbcSXKr5.d.mts → src/index-7rWKHdox.d.mts} +0 -0
  250. /package/dist/{executors-hX1C9GbI.d.cts → src/index-CRo77wc3.d.mts} +0 -0
@@ -0,0 +1,58 @@
1
+ import { t as NxPluginOptions } from "./plugin-Bpm6rlvQ.cjs";
2
+ import { CreateNodesV2 } from "@nx/devkit";
3
+
4
+ //#region src/helpers/plugin-utilities.d.ts
5
+
6
+ /**
7
+ * Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
8
+ *
9
+ * @param framework - The framework name to use in the input strings
10
+ * @returns An array of Nx input strings for the configuration file
11
+ */
12
+ declare function getNxTargetInputs(framework: string): string[];
13
+ /**
14
+ * Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
15
+ *
16
+ * @param framework - The framework name to use in the input strings
17
+ * @returns An array of Nx input strings for the configuration file
18
+ */
19
+ declare function getNxPluginInputs(framework: string): string;
20
+ interface CreateNxPluginOptions {
21
+ /**
22
+ * The name of the Nx plugin to create
23
+ *
24
+ * @remarks
25
+ * This will be used in logging and project tagging.
26
+ *
27
+ * @defaultValue "\{framework\}/plugin/nx"
28
+ */
29
+ name?: string;
30
+ /**
31
+ * The folder where the generated runtime artifacts will be located
32
+ *
33
+ * @remarks
34
+ * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
35
+ *
36
+ * @defaultValue "\{projectRoot\}/.powerlines"
37
+ */
38
+ artifactsFolder?: string;
39
+ /**
40
+ * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
41
+ *
42
+ * @remarks
43
+ * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsFolder | output.artifactsFolder}, this value will be used as the default.
44
+ *
45
+ * @defaultValue "powerlines"
46
+ */
47
+ framework?: string;
48
+ }
49
+ /**
50
+ * Creates an Nx plugin that integrates Powerlines into the Nx build process.
51
+ *
52
+ * @param opts - Options for creating the Nx plugin
53
+ * @returns A CreateNodesV2 function that can be used as an Nx plugin
54
+ */
55
+ declare function createNxPlugin<TOptions extends NxPluginOptions = NxPluginOptions>(opts?: CreateNxPluginOptions): CreateNodesV2<TOptions>;
56
+ //#endregion
57
+ export { getNxTargetInputs as i, createNxPlugin as n, getNxPluginInputs as r, CreateNxPluginOptions as t };
58
+ //# sourceMappingURL=plugin-utilities-rlfzc3UW.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-utilities-rlfzc3UW.d.cts","names":[],"sources":["../../src/helpers/plugin-utilities.ts"],"sourcesContent":[],"mappings":";;;;;;;AAkEA;AAUA;AAMA;AAsCA;AACmB,iBAvDH,iBAAA,CAuDG,SAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA;;;;;;;iBA7CH,iBAAA;UAMC,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsCD,gCACG,kBAAkB,wBAC5B,wBAAwB,cAAc"}
@@ -0,0 +1,2 @@
1
+ require('../plugin-BSBH78mm.cjs');
2
+ require('../types-CKPddlfS.cjs');
@@ -0,0 +1,3 @@
1
+ import { t as NxPluginOptions } from "../plugin-Bpm6rlvQ.cjs";
2
+ import "../index-Dh6J9gb5.cjs";
3
+ export { NxPluginOptions };
@@ -0,0 +1,3 @@
1
+ import { t as NxPluginOptions } from "../plugin-DK05gCB5.mjs";
2
+ import "../index-CRo77wc3.mjs";
3
+ export { NxPluginOptions };
@@ -0,0 +1,4 @@
1
+ import "../plugin-DRjpXVSI.mjs";
2
+ import "../types-SpBueMV7.mjs";
3
+
4
+ export { };
@@ -0,0 +1 @@
1
+ require('../plugin-BSBH78mm.cjs');
@@ -1,2 +1,2 @@
1
- import { t as NxPluginOptions } from "../../plugin-CODFOru1.cjs";
1
+ import { t as NxPluginOptions } from "../plugin-Bpm6rlvQ.cjs";
2
2
  export { NxPluginOptions };
@@ -1,2 +1,2 @@
1
- import { t as NxPluginOptions } from "../../plugin-DpjoI0QS.mjs";
1
+ import { t as NxPluginOptions } from "../plugin-DK05gCB5.mjs";
2
2
  export { NxPluginOptions };
@@ -1 +1,3 @@
1
+ import "../plugin-DRjpXVSI.mjs";
2
+
1
3
  export { };
File without changes
@@ -0,0 +1 @@
1
+ export { };
@@ -1,5 +1,5 @@
1
- const require_chunk = require('./chunk-CbDLau6x.cjs');
2
- const require_base_executor_untyped = require('./base-executor.untyped-DUgXmZji.cjs');
1
+ const require_config = require('./config-Dkb72RJI.cjs');
2
+ const require_base_executor_untyped = require('./base-executor.untyped-CDbDTHgS.cjs');
3
3
  let untyped = require("untyped");
4
4
 
5
5
  //#region src/executors/prepare/untyped.ts
@@ -1,4 +1,4 @@
1
- import { t as base_executor_untyped_default } from "./base-executor.untyped-Bet42T8_.mjs";
1
+ import { t as base_executor_untyped_default } from "./base-executor.untyped-BKF-oUZS.mjs";
2
2
  import { defineUntypedSchema } from "untyped";
3
3
 
4
4
  //#region src/executors/prepare/untyped.ts
@@ -24,4 +24,4 @@ var untyped_default = defineUntypedSchema({
24
24
 
25
25
  //#endregion
26
26
  export { untyped_default as t };
27
- //# sourceMappingURL=untyped-BIEzjl_J.mjs.map
27
+ //# sourceMappingURL=untyped-DCpTmHDS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"untyped-DCpTmHDS.mjs","names":["baseExecutorSchema"],"sources":["../../src/executors/prepare/untyped.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 { defineUntypedSchema } from \"untyped\";\nimport baseExecutorSchema from \"../../base/base-executor.untyped\";\n\nexport default defineUntypedSchema({\n ...baseExecutorSchema,\n $schema: {\n id: \"PrepareExecutorSchema\",\n title: \"Prepare Executor\",\n description:\n \"A type definition for the Powerlines - Prepare executor schema\",\n required: []\n },\n autoInstall: {\n $schema: {\n title: \"Auto Install\",\n type: \"boolean\",\n description: \"Automatically install dependencies during prepare stage\"\n }\n },\n skipCache: {\n $schema: {\n title: \"Skip Cache\",\n type: \"boolean\",\n description:\n \"Skip the caching mechanism during the build process (if required)\"\n }\n }\n});\n"],"mappings":";;;;AAqBA,sBAAe,oBAAoB;CACjC,GAAGA;CACH,SAAS;EACP,IAAI;EACJ,OAAO;EACP,aACE;EACF,UAAU,EAAE;EACb;CACD,aAAa,EACX,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;EACd,EACF;CACD,WAAW,EACT,SAAS;EACP,OAAO;EACP,MAAM;EACN,aACE;EACH,EACF;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/nx",
3
- "version": "0.11.231",
3
+ "version": "0.11.232",
4
4
  "private": false,
5
5
  "description": "A Nx plugin to support Powerlines development in Nx monorepos.",
6
6
  "repository": {
@@ -18,30 +18,30 @@
18
18
  "./generators/*/schema.json": "./dist/src/generators/*/schema.json",
19
19
  ".": {
20
20
  "import": {
21
- "types": "./dist/index.d.mts",
22
- "default": "./dist/index.mjs"
21
+ "types": "./dist/src/index.d.mts",
22
+ "default": "./dist/src/index.mjs"
23
23
  },
24
24
  "require": {
25
- "types": "./dist/index.d.cts",
26
- "default": "./dist/index.cjs"
25
+ "types": "./dist/src/index.d.cts",
26
+ "default": "./dist/src/index.cjs"
27
27
  },
28
28
  "default": {
29
- "types": "./dist/index.d.cts",
30
- "default": "./dist/index.cjs"
29
+ "types": "./dist/src/index.d.cts",
30
+ "default": "./dist/src/index.cjs"
31
31
  }
32
32
  },
33
33
  "./index": {
34
34
  "import": {
35
- "types": "./dist/index.d.mts",
36
- "default": "./dist/index.mjs"
35
+ "types": "./dist/src/index.d.mts",
36
+ "default": "./dist/src/index.mjs"
37
37
  },
38
38
  "require": {
39
- "types": "./dist/index.d.cts",
40
- "default": "./dist/index.cjs"
39
+ "types": "./dist/src/index.d.cts",
40
+ "default": "./dist/src/index.cjs"
41
41
  },
42
42
  "default": {
43
- "types": "./dist/index.d.cts",
44
- "default": "./dist/index.cjs"
43
+ "types": "./dist/src/index.d.cts",
44
+ "default": "./dist/src/index.cjs"
45
45
  }
46
46
  },
47
47
  "./base/*": {
@@ -100,34 +100,6 @@
100
100
  "default": "./dist/src/plugin/index.cjs"
101
101
  }
102
102
  },
103
- "./executors": {
104
- "import": {
105
- "types": "./dist/executors.d.mts",
106
- "default": "./dist/executors.mjs"
107
- },
108
- "require": {
109
- "types": "./dist/executors.d.cts",
110
- "default": "./dist/executors.cjs"
111
- },
112
- "default": {
113
- "types": "./dist/executors.d.cts",
114
- "default": "./dist/executors.cjs"
115
- }
116
- },
117
- "./generators": {
118
- "import": {
119
- "types": "./dist/generators.d.mts",
120
- "default": "./dist/generators.mjs"
121
- },
122
- "require": {
123
- "types": "./dist/generators.d.cts",
124
- "default": "./dist/generators.cjs"
125
- },
126
- "default": {
127
- "types": "./dist/generators.d.cts",
128
- "default": "./dist/generators.cjs"
129
- }
130
- },
131
103
  "./executors/*/untyped": {
132
104
  "import": {
133
105
  "types": "./dist/src/executors/*/untyped.d.mts",
@@ -196,9 +168,9 @@
196
168
  "generators.json",
197
169
  "migrations.json"
198
170
  ],
199
- "main": "./dist/index.cjs",
200
- "module": "./dist/index.mjs",
201
- "types": "./dist/index.d.cts",
171
+ "main": "./dist/src/index.cjs",
172
+ "module": "./dist/src/index.mjs",
173
+ "typings": "./dist/src/index.d.cts",
202
174
  "dependencies": {
203
175
  "@nx/devkit": "^22.5.3",
204
176
  "@storm-software/build-tools": "^0.158.91",
@@ -222,7 +194,7 @@
222
194
  "eslint-flat-config-utils": "^2.1.4",
223
195
  "jsonc-eslint-parser": "^2.4.2",
224
196
  "nx": "22.5.2",
225
- "powerlines": "^0.39.11"
197
+ "powerlines": "^0.39.12"
226
198
  },
227
199
  "peerDependencies": { "nx": ">=22.5.0", "powerlines": ">=0.39.2" },
228
200
  "peerDependenciesMeta": {
@@ -232,5 +204,5 @@
232
204
  "publishConfig": { "access": "public" },
233
205
  "executors": "./executors.json",
234
206
  "generators": "./generators.json",
235
- "gitHead": "e63eb5a0ecd0e5ee3e030388ad1c534b3ecb2136"
207
+ "gitHead": "cb34e2756e722735631673a7c06509d2640284c1"
236
208
  }
@@ -1,28 +0,0 @@
1
- import { t as BaseExecutorSchema } from "./base-executor.schema-LJ14f-QU.mjs";
2
- import PowerlinesAPI, { InlineConfig, PowerlinesCommand } from "powerlines";
3
- import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
4
- import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
5
- import { StormWorkspaceConfig } from "@storm-software/config/types";
6
-
7
- //#region src/base/base-executor.d.ts
8
- type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
9
- projectName: string;
10
- command: TCommand;
11
- options: TExecutorSchema;
12
- inlineConfig: InlineConfig;
13
- workspaceConfig: StormWorkspaceConfig;
14
- };
15
- /**
16
- * A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
17
- *
18
- * @remarks
19
- * This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.
20
- *
21
- * @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
22
- * @param executorFn - The function that will be executed when the command is run.
23
- * @returns A Promise that resolves to the result of the executor function.
24
- */
25
- declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: PowerlinesExecutorContext<TCommand, TExecutorSchema>, api: PowerlinesAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
26
- //#endregion
27
- export { withExecutor as n, PowerlinesExecutorContext as t };
28
- //# sourceMappingURL=base-executor-BKuqWAnc.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-BKuqWAnc.d.mts","names":[],"sources":["../src/base/base-executor.ts"],"sourcesContent":[],"mappings":";;;;;;;KAiCY,2CACO,oBAAoB,2CACb,qBAAqB,sBAC3C;EAHQ,WAAA,EAAA,MAAA;EACO,OAAA,EAIR,QAJQ;EAAoB,OAAA,EAK5B,eAL4B;EACb,YAAA,EAKV,YALU;EAAqB,eAAA,EAM5B,oBAN4B;CAC3C;;;;;;AAkBJ;;;;;AAIW,iBAJK,YAIL,CAAA,iBAHQ,iBAGR,GAH4B,iBAG5B,EAAA,wBAFe,kBAEf,GAFoC,kBAEpC,CAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,CAAA,OAAA,EAEE,yBAFF,CAE4B,QAF5B,EAEsC,eAFtC,CAAA,EAAA,GAAA,EAGF,aAHE,EAAA,GAKL,OALK,CAKG,kBALH,GAAA,IAAA,GAAA,SAAA,CAAA,GAML,kBANK,GAAA,IAAA,GAAA,SAAA,CAAA,EASR,eATQ,CASQ,eATR,CAAA"}
@@ -1,28 +0,0 @@
1
- import { t as BaseExecutorSchema } from "./base-executor.schema-CH9f7UZz.cjs";
2
- import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
3
- import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
4
- import PowerlinesAPI, { InlineConfig, PowerlinesCommand } from "powerlines";
5
- import { StormWorkspaceConfig } from "@storm-software/config/types";
6
-
7
- //#region src/base/base-executor.d.ts
8
- type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
9
- projectName: string;
10
- command: TCommand;
11
- options: TExecutorSchema;
12
- inlineConfig: InlineConfig;
13
- workspaceConfig: StormWorkspaceConfig;
14
- };
15
- /**
16
- * A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
17
- *
18
- * @remarks
19
- * This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.
20
- *
21
- * @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
22
- * @param executorFn - The function that will be executed when the command is run.
23
- * @returns A Promise that resolves to the result of the executor function.
24
- */
25
- declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: PowerlinesExecutorContext<TCommand, TExecutorSchema>, api: PowerlinesAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
26
- //#endregion
27
- export { withExecutor as n, PowerlinesExecutorContext as t };
28
- //# sourceMappingURL=base-executor-CL9md5FK.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-CL9md5FK.d.cts","names":[],"sources":["../src/base/base-executor.ts"],"sourcesContent":[],"mappings":";;;;;;;KAiCY,2CACO,oBAAoB,2CACb,qBAAqB,sBAC3C;EAHQ,WAAA,EAAA,MAAA;EACO,OAAA,EAIR,QAJQ;EAAoB,OAAA,EAK5B,eAL4B;EACb,YAAA,EAKV,YALU;EAAqB,eAAA,EAM5B,oBAN4B;CAC3C;;;;;;AAkBJ;;;;;AAIW,iBAJK,YAIL,CAAA,iBAHQ,iBAGR,GAH4B,iBAG5B,EAAA,wBAFe,kBAEf,GAFoC,kBAEpC,CAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,CAAA,OAAA,EAEE,yBAFF,CAE4B,QAF5B,EAEsC,eAFtC,CAAA,EAAA,GAAA,EAGF,aAHE,EAAA,GAKL,OALK,CAKG,kBALH,GAAA,IAAA,GAAA,SAAA,CAAA,GAML,kBANK,GAAA,IAAA,GAAA,SAAA,CAAA,EASR,eATQ,CASQ,eATR,CAAA"}
@@ -1,76 +0,0 @@
1
- import defu from "defu";
2
- import { writeError } from "@storm-software/config-tools/logger";
3
- import { withRunExecutor } from "@storm-software/workspace-tools/base/base-executor";
4
- import { isError } from "@stryke/type-checks/is-error";
5
- import PowerlinesAPI from "powerlines";
6
-
7
- //#region src/base/base-executor.ts
8
- /**
9
- * A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
10
- *
11
- * @remarks
12
- * This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.
13
- *
14
- * @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
15
- * @param executorFn - The function that will be executed when the command is run.
16
- * @returns A Promise that resolves to the result of the executor function.
17
- */
18
- function withExecutor(command, executorFn) {
19
- return withRunExecutor(`Powerlines ${command} command executor`, async (options, context, workspaceConfig) => {
20
- if (!context.projectName) throw new Error("The executor requires `projectName` on the context object.");
21
- if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
22
- const projectConfig = context.projectsConfigurations.projects[context.projectName];
23
- const api = await PowerlinesAPI.from(workspaceConfig.workspaceRoot, defu({
24
- input: options.input,
25
- output: {
26
- outputPath: options.outputPath ?? projectConfig.targets?.build?.options?.outputPath,
27
- format: options.format,
28
- sourceMap: options.sourceMap
29
- },
30
- resolve: {
31
- external: options.external,
32
- noExternal: options.noExternal,
33
- skipNodeModulesBundle: options.skipNodeModulesBundle
34
- },
35
- root: projectConfig.root,
36
- projectType: projectConfig.projectType,
37
- sourceRoot: projectConfig.sourceRoot,
38
- tsconfig: options.tsconfig,
39
- platform: options.platform,
40
- define: options.define,
41
- logLevel: options.logLevel,
42
- mode: options.mode
43
- }, options));
44
- try {
45
- return await Promise.resolve(executorFn(defu({
46
- projectName: context.projectName,
47
- options,
48
- workspaceConfig,
49
- inlineConfig: {
50
- command,
51
- configFile: options.configFile
52
- },
53
- command
54
- }, context), api));
55
- } catch (error) {
56
- writeError(`An error occurred while executing the Powerlines ${command} command executor: ${isError(error) ? `${error.message}
57
-
58
- ${error.stack}` : "Unknown error"}`);
59
- return { success: false };
60
- } finally {
61
- await api.finalize();
62
- }
63
- }, {
64
- skipReadingConfig: false,
65
- hooks: { applyDefaultOptions: (options) => {
66
- if (options.mode !== "development" && options.mode !== "test") options.mode = "production";
67
- options.outputPath ??= "dist/{projectRoot}";
68
- options.configFile ??= "{projectRoot}/powerlines.config.ts";
69
- return options;
70
- } }
71
- });
72
- }
73
-
74
- //#endregion
75
- export { withExecutor as t };
76
- //# sourceMappingURL=base-executor-DIVmWt0_.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor-DIVmWt0_.mjs","names":[],"sources":["../src/base/base-executor.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 { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport type {\n InitialUserConfig,\n InlineConfig,\n PowerlinesCommand\n} from \"powerlines\";\nimport PowerlinesAPI from \"powerlines\";\nimport { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type PowerlinesExecutorContext<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: TCommand;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\n};\n\n/**\n * A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.\n *\n * @remarks\n * This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.\n *\n * @param command - The command that the executor will handle (e.g., \"new\", \"prepare\", \"build\", etc.).\n * @param executorFn - The function that will be executed when the command is run.\n * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: TCommand,\n executorFn: (\n context: PowerlinesExecutorContext<TCommand, TExecutorSchema>,\n api: PowerlinesAPI\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Powerlines ${command} command executor`,\n async (\n options: TExecutorSchema,\n context: ExecutorContext,\n workspaceConfig: StormWorkspaceConfig\n ): Promise<BaseExecutorResult | null | undefined> => {\n if (!context.projectName) {\n throw new Error(\n \"The executor requires `projectName` on the context object.\"\n );\n }\n\n if (\n !context.projectName ||\n !context.projectsConfigurations?.projects ||\n !context.projectsConfigurations.projects[context.projectName] ||\n !context.projectsConfigurations.projects[context.projectName]?.root\n ) {\n throw new Error(\n \"The executor requires `projectsConfigurations` on the context object.\"\n );\n }\n\n const projectConfig =\n context.projectsConfigurations.projects[context.projectName]!;\n\n const api = await PowerlinesAPI.from(\n workspaceConfig.workspaceRoot,\n defu(\n {\n input: options.input,\n output: {\n outputPath:\n options.outputPath ??\n projectConfig.targets?.build?.options?.outputPath,\n format: options.format,\n sourceMap: options.sourceMap\n },\n resolve: {\n external: options.external,\n noExternal: options.noExternal,\n skipNodeModulesBundle: options.skipNodeModulesBundle\n },\n root: projectConfig.root,\n projectType: projectConfig.projectType,\n sourceRoot: projectConfig.sourceRoot,\n tsconfig: options.tsconfig,\n platform: options.platform,\n define: options.define,\n logLevel: options.logLevel,\n mode: options.mode\n },\n options\n ) as InitialUserConfig\n );\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n inlineConfig: {\n command,\n configFile: options.configFile\n },\n command\n },\n context\n ),\n api\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the Powerlines ${\n command\n } command executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n } finally {\n await api.finalize();\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n if (options.mode !== \"development\" && options.mode !== \"test\") {\n options.mode = \"production\";\n }\n\n options.outputPath ??= \"dist/{projectRoot}\";\n options.configFile ??= \"{projectRoot}/powerlines.config.ts\";\n\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAsDA,SAAgB,aAId,SACA,YAQkC;AAClC,QAAO,gBACL,cAAc,QAAQ,oBACtB,OACE,SACA,SACA,oBACmD;AACnD,MAAI,CAAC,QAAQ,YACX,OAAM,IAAI,MACR,6DACD;AAGH,MACE,CAAC,QAAQ,eACT,CAAC,QAAQ,wBAAwB,YACjC,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,gBACjD,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,cAAc,KAE/D,OAAM,IAAI,MACR,wEACD;EAGH,MAAM,gBACJ,QAAQ,uBAAuB,SAAS,QAAQ;EAElD,MAAM,MAAM,MAAM,cAAc,KAC9B,gBAAgB,eAChB,KACE;GACE,OAAO,QAAQ;GACf,QAAQ;IACN,YACE,QAAQ,cACR,cAAc,SAAS,OAAO,SAAS;IACzC,QAAQ,QAAQ;IAChB,WAAW,QAAQ;IACpB;GACD,SAAS;IACP,UAAU,QAAQ;IAClB,YAAY,QAAQ;IACpB,uBAAuB,QAAQ;IAChC;GACD,MAAM,cAAc;GACpB,aAAa,cAAc;GAC3B,YAAY,cAAc;GAC1B,UAAU,QAAQ;GAClB,UAAU,QAAQ;GAClB,QAAQ,QAAQ;GAChB,UAAU,QAAQ;GAClB,MAAM,QAAQ;GACf,EACD,QACD,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,WACE,KACE;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,YAAY,QAAQ;KACrB;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,cACE,oDACE,QACD,qBACC,QAAQ,MAAM,GACV,GAAG,MAAM,QAAQ;;EAE/B,MAAM,UACQ,kBAEP;AAED,UAAO,EAAE,SAAS,OAAO;YACjB;AACR,SAAM,IAAI,UAAU;;IAGxB;EACE,mBAAmB;EACnB,OAAO,EACL,sBAAsB,YAAsC;AAC1D,OAAI,QAAQ,SAAS,iBAAiB,QAAQ,SAAS,OACrD,SAAQ,OAAO;AAGjB,WAAQ,eAAe;AACvB,WAAQ,eAAe;AAEvB,UAAO;KAEV;EACF,CACF"}
@@ -1,83 +0,0 @@
1
- const require_chunk = require('./chunk-CbDLau6x.cjs');
2
- let defu = require("defu");
3
- defu = require_chunk.__toESM(defu);
4
- let __storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
5
- let __storm_software_workspace_tools_base_base_executor = require("@storm-software/workspace-tools/base/base-executor");
6
- let __stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
7
- let powerlines = require("powerlines");
8
- powerlines = require_chunk.__toESM(powerlines);
9
-
10
- //#region src/base/base-executor.ts
11
- /**
12
- * A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
13
- *
14
- * @remarks
15
- * This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.
16
- *
17
- * @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
18
- * @param executorFn - The function that will be executed when the command is run.
19
- * @returns A Promise that resolves to the result of the executor function.
20
- */
21
- function withExecutor(command, executorFn) {
22
- return (0, __storm_software_workspace_tools_base_base_executor.withRunExecutor)(`Powerlines ${command} command executor`, async (options, context, workspaceConfig) => {
23
- if (!context.projectName) throw new Error("The executor requires `projectName` on the context object.");
24
- if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
25
- const projectConfig = context.projectsConfigurations.projects[context.projectName];
26
- const api = await powerlines.default.from(workspaceConfig.workspaceRoot, (0, defu.default)({
27
- input: options.input,
28
- output: {
29
- outputPath: options.outputPath ?? projectConfig.targets?.build?.options?.outputPath,
30
- format: options.format,
31
- sourceMap: options.sourceMap
32
- },
33
- resolve: {
34
- external: options.external,
35
- noExternal: options.noExternal,
36
- skipNodeModulesBundle: options.skipNodeModulesBundle
37
- },
38
- root: projectConfig.root,
39
- projectType: projectConfig.projectType,
40
- sourceRoot: projectConfig.sourceRoot,
41
- tsconfig: options.tsconfig,
42
- platform: options.platform,
43
- define: options.define,
44
- logLevel: options.logLevel,
45
- mode: options.mode
46
- }, options));
47
- try {
48
- return await Promise.resolve(executorFn((0, defu.default)({
49
- projectName: context.projectName,
50
- options,
51
- workspaceConfig,
52
- inlineConfig: {
53
- command,
54
- configFile: options.configFile
55
- },
56
- command
57
- }, context), api));
58
- } catch (error) {
59
- (0, __storm_software_config_tools_logger.writeError)(`An error occurred while executing the Powerlines ${command} command executor: ${(0, __stryke_type_checks_is_error.isError)(error) ? `${error.message}
60
-
61
- ${error.stack}` : "Unknown error"}`);
62
- return { success: false };
63
- } finally {
64
- await api.finalize();
65
- }
66
- }, {
67
- skipReadingConfig: false,
68
- hooks: { applyDefaultOptions: (options) => {
69
- if (options.mode !== "development" && options.mode !== "test") options.mode = "production";
70
- options.outputPath ??= "dist/{projectRoot}";
71
- options.configFile ??= "{projectRoot}/powerlines.config.ts";
72
- return options;
73
- } }
74
- });
75
- }
76
-
77
- //#endregion
78
- Object.defineProperty(exports, 'withExecutor', {
79
- enumerable: true,
80
- get: function () {
81
- return withExecutor;
82
- }
83
- });
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor.schema-CH9f7UZz.d.cts","names":["BaseExecutorSchema","Array","Record"],"sources":["../src/base/base-executor.schema.d.ts"],"sourcesContent":["\n// Generated by @storm-software/untyped\n// Do not edit this file directly\n\nexport interface BaseExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * @default [\"{sourceRoot}/index.ts\"]\n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n}\n\n"],"mappings":";AAIA;;;AA8EYC,UA9EKD,kBAAAA,CA8ELC;EAQEA;;;;;;;;;;;;;;;;;;;;UAjELA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCCA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor.schema-LJ14f-QU.d.mts","names":["BaseExecutorSchema","Array","Record"],"sources":["../src/base/base-executor.schema.d.ts"],"sourcesContent":["\n// Generated by @storm-software/untyped\n// Do not edit this file directly\n\nexport interface BaseExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * @default [\"{sourceRoot}/index.ts\"]\n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n}\n\n"],"mappings":";AAIA;;;AA8EYC,UA9EKD,kBAAAA,CA8ELC;EAQEA;;;;;;;;;;;;;;;;;;;;UAjELA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCCA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-executor.untyped-Bet42T8_.mjs","names":[],"sources":["../src/base/base-executor.untyped.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 { defineUntypedSchema } from \"untyped\";\n\nexport default defineUntypedSchema({\n $schema: {\n id: \"BaseExecutorSchema\",\n title: \"Base Executor\",\n description:\n \"A shared/base schema type definition for Powerlines executors\",\n required: []\n },\n configFile: {\n $schema: {\n title: \"Powerlines Configuration File\",\n type: \"string\",\n format: \"path\",\n description: \"The path to the Powerlines configuration file\"\n },\n $default: \"{projectRoot}/powerlines.config.ts\"\n },\n input: {\n $schema: {\n title: \"Input Entry File(s)\",\n format: \"path\",\n type: \"array\",\n description: \"The entry file(s) that serve as the input for the project\",\n items: { type: \"string\" }\n },\n $default: [\"{sourceRoot}/index.ts\"]\n },\n tsconfig: {\n $schema: {\n title: \"TSConfig Path\",\n type: \"string\",\n format: \"path\",\n description: \"The path to the tsconfig file\"\n },\n $default: \"{projectRoot}/tsconfig.json\"\n },\n outputPath: {\n $schema: {\n title: \"Output Path\",\n type: \"string\",\n format: \"path\",\n description: \"The path to the output directory for the build artifacts\"\n }\n },\n sourceMap: {\n $schema: {\n title: \"Sourcemap\",\n type: \"boolean\",\n description: \"Generate a sourcemap\"\n }\n },\n format: {\n $schema: {\n title: \"Format\",\n type: \"array\",\n description: \"The format to build\",\n items: {\n type: \"string\",\n enum: [\"cjs\", \"esm\", \"iife\"]\n }\n },\n $resolve: (val: string[] = [\"cjs\", \"esm\"]) => ([] as string[]).concat(val)\n },\n platform: {\n $schema: {\n title: \"Platform\",\n type: \"string\",\n description: \"The platform to build\",\n enum: [\"neutral\", \"node\", \"browser\"]\n },\n $default: \"neutral\"\n },\n external: {\n $schema: {\n title: \"External\",\n type: \"array\",\n description: \"The external dependencies\"\n },\n $resolve: (val: string[] = []) => ([] as string[]).concat(val)\n },\n noExternal: {\n $schema: {\n title: \"No External\",\n type: \"array\",\n description: \"The dependencies that should not be treated as external\"\n },\n $resolve: (val: string[] = []) => ([] as string[]).concat(val)\n },\n skipNodeModulesBundle: {\n $schema: {\n title: \"Skip Node Modules Bundle\",\n type: \"boolean\",\n description:\n \"Skip bundling node_modules during the build process (if required)\"\n }\n },\n mode: {\n $schema: {\n title: \"Mode\",\n type: \"string\",\n description: \"The build mode\",\n enum: [\"development\", \"test\", \"production\"]\n }\n },\n logLevel: {\n $schema: {\n title: \"Log Level\",\n type: \"string\",\n description: \"The log level to use for the build process\",\n enum: [\n \"fatal\",\n \"error\",\n \"warn\",\n \"success\",\n \"info\",\n \"debug\",\n \"trace\",\n \"silent\"\n ]\n }\n },\n define: {\n $schema: {\n title: \"Define\",\n type: \"object\",\n tsType: \"Record<string, string>\",\n description: \"The `define` values\"\n },\n $resolve: (val: Record<string, string> = {}) => val,\n $default: {}\n }\n});\n"],"mappings":";;;AAoBA,oCAAe,oBAAoB;CACjC,SAAS;EACP,IAAI;EACJ,OAAO;EACP,aACE;EACF,UAAU,EAAE;EACb;CACD,YAAY;EACV,SAAS;GACP,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aAAa;GACd;EACD,UAAU;EACX;CACD,OAAO;EACL,SAAS;GACP,OAAO;GACP,QAAQ;GACR,MAAM;GACN,aAAa;GACb,OAAO,EAAE,MAAM,UAAU;GAC1B;EACD,UAAU,CAAC,wBAAwB;EACpC;CACD,UAAU;EACR,SAAS;GACP,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aAAa;GACd;EACD,UAAU;EACX;CACD,YAAY,EACV,SAAS;EACP,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;EACd,EACF;CACD,WAAW,EACT,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;EACd,EACF;CACD,QAAQ;EACN,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;GACb,OAAO;IACL,MAAM;IACN,MAAM;KAAC;KAAO;KAAO;KAAO;IAC7B;GACF;EACD,WAAW,MAAgB,CAAC,OAAO,MAAM,KAAM,EAAE,CAAc,OAAO,IAAI;EAC3E;CACD,UAAU;EACR,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;GACb,MAAM;IAAC;IAAW;IAAQ;IAAU;GACrC;EACD,UAAU;EACX;CACD,UAAU;EACR,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;GACd;EACD,WAAW,MAAgB,EAAE,KAAM,EAAE,CAAc,OAAO,IAAI;EAC/D;CACD,YAAY;EACV,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;GACd;EACD,WAAW,MAAgB,EAAE,KAAM,EAAE,CAAc,OAAO,IAAI;EAC/D;CACD,uBAAuB,EACrB,SAAS;EACP,OAAO;EACP,MAAM;EACN,aACE;EACH,EACF;CACD,MAAM,EACJ,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;EACb,MAAM;GAAC;GAAe;GAAQ;GAAa;EAC5C,EACF;CACD,UAAU,EACR,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;EACb,MAAM;GACJ;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACD;EACF,EACF;CACD,QAAQ;EACN,SAAS;GACP,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aAAa;GACd;EACD,WAAW,MAA8B,EAAE,KAAK;EAChD,UAAU,EAAE;EACb;CACF,CAAC"}
@@ -1,34 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
-
27
- //#endregion
28
-
29
- Object.defineProperty(exports, '__toESM', {
30
- enumerable: true,
31
- get: function () {
32
- return __toESM;
33
- }
34
- });
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants-DPeeG_si.mjs","names":[],"sources":["../src/helpers/constants.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\n/**\n * A list of Nx input strings that describe the Powerlines configuration file\n */\nexport const CONFIG_INPUTS = [\n \"{projectRoot}/{framework}.json\",\n \"{projectRoot}/{framework}.*.json\",\n \"{projectRoot}/{framework}.jsonc\",\n \"{projectRoot}/{framework}.*.jsonc\",\n \"{projectRoot}/{framework}.json5\",\n \"{projectRoot}/{framework}.*.json5\",\n \"{projectRoot}/{framework}.yaml\",\n \"{projectRoot}/{framework}.*.yaml\",\n \"{projectRoot}/{framework}.yml\",\n \"{projectRoot}/{framework}.*.yml\",\n \"{projectRoot}/{framework}.toml\",\n \"{projectRoot}/{framework}.*.toml\",\n \"{projectRoot}/{framework}.config.js\",\n \"{projectRoot}/{framework}.*.config.js\",\n \"{projectRoot}/{framework}.config.cjs\",\n \"{projectRoot}/{framework}.*.config.cjs\",\n \"{projectRoot}/{framework}.config.mjs\",\n \"{projectRoot}/{framework}.*.config.mjs\",\n \"{projectRoot}/{framework}.config.ts\",\n \"{projectRoot}/{framework}.*.config.ts\",\n \"{projectRoot}/{framework}.config.cts\",\n \"{projectRoot}/{framework}.*.config.cts\",\n \"{projectRoot}/{framework}.config.mts\",\n \"{projectRoot}/{framework}.*.config.mts\"\n] as const;\n"],"mappings":";;;;AAqBA,MAAa,gBAAgB;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}