@powerlines/nx 0.11.221 → 0.11.223

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 (287) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/{src/base/base-executor.d.ts → base-executor-BKuqWAnc.d.mts} +14 -12
  3. package/dist/base-executor-BKuqWAnc.d.mts.map +1 -0
  4. package/dist/base-executor-CL9md5FK.d.cts +28 -0
  5. package/dist/base-executor-CL9md5FK.d.cts.map +1 -0
  6. package/dist/base-executor-DIVmWt0_.mjs +76 -0
  7. package/dist/base-executor-DIVmWt0_.mjs.map +1 -0
  8. package/dist/base-executor-hfeykVFL.cjs +83 -0
  9. package/dist/base-executor.schema-CH9f7UZz.d.cts +131 -0
  10. package/dist/base-executor.schema-CH9f7UZz.d.cts.map +1 -0
  11. package/dist/base-executor.schema-LJ14f-QU.d.mts +131 -0
  12. package/dist/base-executor.schema-LJ14f-QU.d.mts.map +1 -0
  13. package/dist/base-executor.untyped-Bet42T8_.mjs +139 -0
  14. package/dist/base-executor.untyped-Bet42T8_.mjs.map +1 -0
  15. package/dist/base-executor.untyped-DUgXmZji.cjs +144 -0
  16. package/dist/chunk-CbDLau6x.cjs +34 -0
  17. package/dist/constants-BHT2TeEj.cjs +39 -0
  18. package/dist/constants-DPeeG_si.mjs +34 -0
  19. package/dist/constants-DPeeG_si.mjs.map +1 -0
  20. package/dist/executor-9aTY5L1O.d.mts +155 -0
  21. package/dist/executor-9aTY5L1O.d.mts.map +1 -0
  22. package/dist/executor-BA-Xvw_2.cjs +23 -0
  23. package/dist/executor-BDu-MfKS.d.cts +155 -0
  24. package/dist/executor-BDu-MfKS.d.cts.map +1 -0
  25. package/dist/executor-BaJuosQ2.d.cts +139 -0
  26. package/dist/executor-BaJuosQ2.d.cts.map +1 -0
  27. package/dist/executor-BerELzzO.d.cts +165 -0
  28. package/dist/executor-BerELzzO.d.cts.map +1 -0
  29. package/dist/executor-C12a2R2m.d.mts +165 -0
  30. package/dist/executor-C12a2R2m.d.mts.map +1 -0
  31. package/dist/executor-CQoHBvIx.d.mts +155 -0
  32. package/dist/executor-CQoHBvIx.d.mts.map +1 -0
  33. package/dist/executor-CR4F9h0Q.mjs +13 -0
  34. package/dist/executor-CR4F9h0Q.mjs.map +1 -0
  35. package/dist/executor-CmOJDW7i.cjs +30 -0
  36. package/dist/executor-CsYeTG7f.d.mts +155 -0
  37. package/dist/executor-CsYeTG7f.d.mts.map +1 -0
  38. package/dist/executor-DXs-DQDq.cjs +23 -0
  39. package/dist/executor-DY3Q5btA.mjs +18 -0
  40. package/dist/executor-DY3Q5btA.mjs.map +1 -0
  41. package/dist/executor-DaM4shEF.d.mts +139 -0
  42. package/dist/executor-DaM4shEF.d.mts.map +1 -0
  43. package/dist/executor-DriX4F9a.mjs +13 -0
  44. package/dist/executor-DriX4F9a.mjs.map +1 -0
  45. package/dist/executor-DupYdy7P.cjs +23 -0
  46. package/dist/executor-_6Wimayo.d.cts +155 -0
  47. package/dist/executor-_6Wimayo.d.cts.map +1 -0
  48. package/dist/executor-dakLe5jY.mjs +13 -0
  49. package/dist/executor-dakLe5jY.mjs.map +1 -0
  50. package/dist/executor-gauQV_Qs.mjs +18 -0
  51. package/dist/executor-gauQV_Qs.mjs.map +1 -0
  52. package/dist/executor-q94V36zQ.d.cts +155 -0
  53. package/dist/executor-q94V36zQ.d.cts.map +1 -0
  54. package/dist/executor-tEMakUYi.cjs +30 -0
  55. package/dist/executors-C15iG1sF.mjs +1 -0
  56. package/dist/executors-D7478W2S.cjs +0 -0
  57. package/dist/executors-YbcSXKr5.d.mts +1 -0
  58. package/dist/executors-hX1C9GbI.d.cts +1 -0
  59. package/dist/executors.cjs +13 -0
  60. package/dist/executors.d.cts +9 -0
  61. package/dist/executors.d.mts +9 -11
  62. package/dist/executors.mjs +9 -9
  63. package/dist/generator-DeiwVUqC.mjs +11 -0
  64. package/dist/generator-DeiwVUqC.mjs.map +1 -0
  65. package/dist/generator-Dv37nXlF.d.cts +8 -0
  66. package/dist/generator-Dv37nXlF.d.cts.map +1 -0
  67. package/dist/generator-Uu2ErkQj.cjs +22 -0
  68. package/dist/generator-aA0eb35E.d.mts +8 -0
  69. package/dist/generator-aA0eb35E.d.mts.map +1 -0
  70. package/dist/generators-B8_tB0mD.d.cts +17 -0
  71. package/dist/generators-B8_tB0mD.d.cts.map +1 -0
  72. package/dist/generators-Bi9wzfNx.mjs +1 -0
  73. package/dist/generators-DymCAfYw.d.mts +17 -0
  74. package/dist/generators-DymCAfYw.d.mts.map +1 -0
  75. package/dist/generators-q39_jUCw.cjs +0 -0
  76. package/dist/generators.cjs +5 -0
  77. package/dist/generators.d.cts +3 -0
  78. package/dist/generators.d.mts +3 -19
  79. package/dist/generators.mjs +4 -3
  80. package/dist/index-BAMQksFF.d.mts +8 -0
  81. package/dist/index-BAMQksFF.d.mts.map +1 -0
  82. package/dist/index-C5yJ9lGj.d.cts +8 -0
  83. package/dist/index-C5yJ9lGj.d.cts.map +1 -0
  84. package/dist/index.cjs +21 -0
  85. package/dist/index.d.cts +13 -0
  86. package/dist/index.d.mts +13 -16
  87. package/dist/index.mjs +14 -14
  88. package/dist/plugin-A9gAUguP.cjs +12 -0
  89. package/dist/plugin-CODFOru1.d.cts +243 -0
  90. package/dist/plugin-CODFOru1.d.cts.map +1 -0
  91. package/dist/plugin-Dbr_Q4yi.mjs +8 -0
  92. package/dist/plugin-Dbr_Q4yi.mjs.map +1 -0
  93. package/dist/plugin-DpjoI0QS.d.mts +243 -0
  94. package/dist/plugin-DpjoI0QS.d.mts.map +1 -0
  95. package/dist/plugin-utilities-Ci8AHf-K.mjs +347 -0
  96. package/dist/plugin-utilities-Ci8AHf-K.mjs.map +1 -0
  97. package/dist/plugin-utilities-Ddlc3SiI.cjs +366 -0
  98. package/dist/src/base/base-executor.cjs +3 -0
  99. package/dist/src/base/base-executor.d.cts +3 -0
  100. package/dist/src/base/base-executor.d.mts +3 -26
  101. package/dist/src/base/base-executor.mjs +3 -3
  102. package/dist/src/base/base-executor.schema.d.cjs +0 -0
  103. package/dist/src/base/base-executor.schema.d.cts +2 -0
  104. package/dist/src/base/base-executor.schema.d.mts +2 -0
  105. package/dist/src/base/base-executor.untyped.cjs +3 -0
  106. package/dist/src/base/base-executor.untyped.d.cts +6 -0
  107. package/dist/src/base/base-executor.untyped.d.cts.map +1 -0
  108. package/dist/src/base/base-executor.untyped.d.mts +5 -3
  109. package/dist/src/base/base-executor.untyped.d.mts.map +1 -0
  110. package/dist/src/base/base-executor.untyped.mjs +3 -2
  111. package/dist/src/executors/build/executor.cjs +6 -0
  112. package/dist/src/executors/build/executor.d.cts +4 -0
  113. package/dist/src/executors/build/executor.d.mts +4 -7
  114. package/dist/src/executors/build/executor.mjs +4 -4
  115. package/dist/src/executors/build/untyped.cjs +26 -0
  116. package/dist/src/executors/build/untyped.d.cts +6 -0
  117. package/dist/src/executors/build/untyped.d.cts.map +1 -0
  118. package/dist/src/executors/build/untyped.d.mts +5 -3
  119. package/dist/src/executors/build/untyped.d.mts.map +1 -0
  120. package/dist/src/executors/build/untyped.mjs +23 -30
  121. package/dist/src/executors/build/untyped.mjs.map +1 -0
  122. package/dist/src/executors/clean/executor.cjs +6 -0
  123. package/dist/src/executors/clean/executor.d.cts +4 -0
  124. package/dist/src/executors/clean/executor.d.mts +4 -7
  125. package/dist/src/executors/clean/executor.mjs +4 -4
  126. package/dist/src/executors/clean/untyped.cjs +17 -0
  127. package/dist/src/executors/clean/untyped.d.cts +6 -0
  128. package/dist/src/executors/clean/untyped.d.cts.map +1 -0
  129. package/dist/src/executors/clean/untyped.d.mts +5 -3
  130. package/dist/src/executors/clean/untyped.d.mts.map +1 -0
  131. package/dist/src/executors/clean/untyped.mjs +12 -10
  132. package/dist/src/executors/clean/untyped.mjs.map +1 -0
  133. package/dist/src/executors/docs/executor.cjs +6 -0
  134. package/dist/src/executors/docs/executor.d.cts +4 -0
  135. package/dist/src/executors/docs/executor.d.mts +4 -7
  136. package/dist/src/executors/docs/executor.mjs +4 -4
  137. package/dist/src/executors/docs/untyped.cjs +18 -0
  138. package/dist/src/executors/docs/untyped.d.cts +6 -0
  139. package/dist/src/executors/docs/untyped.d.cts.map +1 -0
  140. package/dist/src/executors/docs/untyped.d.mts +5 -3
  141. package/dist/src/executors/docs/untyped.d.mts.map +1 -0
  142. package/dist/src/executors/docs/untyped.mjs +15 -13
  143. package/dist/src/executors/docs/untyped.mjs.map +1 -0
  144. package/dist/src/executors/lint/executor.cjs +6 -0
  145. package/dist/src/executors/lint/executor.d.cts +4 -0
  146. package/dist/src/executors/lint/executor.d.mts +4 -7
  147. package/dist/src/executors/lint/executor.mjs +4 -4
  148. package/dist/src/executors/lint/untyped.cjs +18 -0
  149. package/dist/src/executors/lint/untyped.d.cts +6 -0
  150. package/dist/src/executors/lint/untyped.d.cts.map +1 -0
  151. package/dist/src/executors/lint/untyped.d.mts +5 -3
  152. package/dist/src/executors/lint/untyped.d.mts.map +1 -0
  153. package/dist/src/executors/lint/untyped.mjs +15 -13
  154. package/dist/src/executors/lint/untyped.mjs.map +1 -0
  155. package/dist/src/executors/prepare/executor.cjs +6 -0
  156. package/dist/src/executors/prepare/executor.d.cts +4 -0
  157. package/dist/src/executors/prepare/executor.d.mts +4 -7
  158. package/dist/src/executors/prepare/executor.mjs +4 -4
  159. package/dist/src/executors/prepare/untyped.cjs +4 -0
  160. package/dist/src/executors/prepare/untyped.d.cts +6 -0
  161. package/dist/src/executors/prepare/untyped.d.cts.map +1 -0
  162. package/dist/src/executors/prepare/untyped.d.mts +5 -3
  163. package/dist/src/executors/prepare/untyped.d.mts.map +1 -0
  164. package/dist/src/executors/prepare/untyped.mjs +4 -3
  165. package/dist/src/generators/sync/generator.cjs +5 -0
  166. package/dist/src/generators/sync/generator.d.cts +2 -0
  167. package/dist/src/generators/sync/generator.d.mts +2 -6
  168. package/dist/src/generators/sync/generator.mjs +3 -2
  169. package/dist/src/generators/sync/untyped.cjs +23 -0
  170. package/dist/src/generators/sync/untyped.d.cts +6 -0
  171. package/dist/src/generators/sync/untyped.d.cts.map +1 -0
  172. package/dist/src/generators/sync/untyped.d.mts +5 -3
  173. package/dist/src/generators/sync/untyped.d.mts.map +1 -0
  174. package/dist/src/generators/sync/untyped.mjs +18 -16
  175. package/dist/src/generators/sync/untyped.mjs.map +1 -0
  176. package/dist/src/helpers/constants.cjs +3 -0
  177. package/dist/src/helpers/{constants.d.ts → constants.d.cts} +3 -1
  178. package/dist/src/helpers/constants.d.cts.map +1 -0
  179. package/dist/src/helpers/constants.d.mts +3 -1
  180. package/dist/src/helpers/constants.d.mts.map +1 -0
  181. package/dist/src/helpers/constants.mjs +3 -2
  182. package/dist/src/helpers/plugin-utilities.cjs +6 -0
  183. package/dist/src/helpers/plugin-utilities.d.cts +58 -0
  184. package/dist/src/helpers/plugin-utilities.d.cts.map +1 -0
  185. package/dist/src/helpers/plugin-utilities.d.mts +34 -31
  186. package/dist/src/helpers/plugin-utilities.d.mts.map +1 -0
  187. package/dist/src/helpers/plugin-utilities.mjs +4 -4
  188. package/dist/src/plugin/index.cjs +5 -0
  189. package/dist/src/plugin/index.d.cts +3 -0
  190. package/dist/src/plugin/index.d.mts +3 -6
  191. package/dist/src/plugin/index.mjs +5 -5
  192. package/dist/src/types/plugin.cjs +0 -0
  193. package/dist/src/types/plugin.d.cts +2 -0
  194. package/dist/src/types/plugin.d.mts +2 -241
  195. package/dist/src/types/plugin.mjs +1 -1
  196. package/dist/untyped-BIEzjl_J.mjs +27 -0
  197. package/dist/untyped-BIEzjl_J.mjs.map +1 -0
  198. package/dist/untyped-DKPJSDgJ.cjs +32 -0
  199. package/executors.json +1 -1
  200. package/generators.json +1 -1
  201. package/package.json +117 -88
  202. package/dist/chunk-23KFTIT2.mjs +0 -1
  203. package/dist/chunk-326QB2VK.mjs +0 -14
  204. package/dist/chunk-3BI2YVJ3.js +0 -156
  205. package/dist/chunk-3D3MU5VP.js +0 -26
  206. package/dist/chunk-4OMPO3GC.mjs +0 -154
  207. package/dist/chunk-ADMWJVSB.js +0 -374
  208. package/dist/chunk-DXL4NVUO.js +0 -18
  209. package/dist/chunk-F4QJKUNK.js +0 -18
  210. package/dist/chunk-GCIPEE4T.mjs +0 -28
  211. package/dist/chunk-IC47MFKB.mjs +0 -29
  212. package/dist/chunk-IDXFQ2WL.mjs +0 -15
  213. package/dist/chunk-IOBDAGVL.js +0 -30
  214. package/dist/chunk-IQVSZEQ6.js +0 -31
  215. package/dist/chunk-N2YKXZ5R.js +0 -2
  216. package/dist/chunk-NB2KHU33.mjs +0 -19
  217. package/dist/chunk-NXR5JH7F.js +0 -10
  218. package/dist/chunk-O6YSETKJ.mjs +0 -4
  219. package/dist/chunk-P5X6KXLE.js +0 -26
  220. package/dist/chunk-PKGTRC56.mjs +0 -15
  221. package/dist/chunk-PMQ5YVLP.js +0 -18
  222. package/dist/chunk-R577MOZR.js +0 -4928
  223. package/dist/chunk-RBIHD4JS.mjs +0 -4900
  224. package/dist/chunk-RLODK6TM.js +0 -281
  225. package/dist/chunk-RLYU2FOM.mjs +0 -366
  226. package/dist/chunk-SHUYVCID.js +0 -6
  227. package/dist/chunk-SQV3SFA4.mjs +0 -8
  228. package/dist/chunk-UV4HQO3Y.mjs +0 -1
  229. package/dist/chunk-W75JGXP2.mjs +0 -260
  230. package/dist/chunk-WIPWBPB3.mjs +0 -19
  231. package/dist/chunk-WUJKJGEW.js +0 -17
  232. package/dist/chunk-XO62WWX4.js +0 -2
  233. package/dist/chunk-ZERXJ7S6.mjs +0 -15
  234. package/dist/executor-AQVlPFta.d.ts +0 -163
  235. package/dist/executor-BNmIhtpF.d.mts +0 -153
  236. package/dist/executor-C0A5mFLO.d.mts +0 -137
  237. package/dist/executor-Cep8-Y3A.d.mts +0 -153
  238. package/dist/executor-CkyahICv.d.ts +0 -137
  239. package/dist/executor-DOsxw-Ih.d.ts +0 -153
  240. package/dist/executor-DUQbjUVt.d.ts +0 -153
  241. package/dist/executor-O3MDQSFT.d.ts +0 -153
  242. package/dist/executor-U4mVkhQK.d.mts +0 -163
  243. package/dist/executor-Xt5qNzC5.d.mts +0 -153
  244. package/dist/executors.d.ts +0 -11
  245. package/dist/executors.js +0 -34
  246. package/dist/generators.d.ts +0 -19
  247. package/dist/generators.js +0 -16
  248. package/dist/index.d.ts +0 -16
  249. package/dist/index.js +0 -51
  250. package/dist/src/base/base-executor.js +0 -12
  251. package/dist/src/base/base-executor.schema.d.d.mts +0 -129
  252. package/dist/src/base/base-executor.schema.d.d.ts +0 -129
  253. package/dist/src/base/base-executor.schema.d.js +0 -2
  254. package/dist/src/base/base-executor.schema.d.mjs +0 -1
  255. package/dist/src/base/base-executor.untyped.d.ts +0 -5
  256. package/dist/src/base/base-executor.untyped.js +0 -10
  257. package/dist/src/executors/build/executor.d.ts +0 -7
  258. package/dist/src/executors/build/executor.js +0 -19
  259. package/dist/src/executors/build/untyped.d.ts +0 -5
  260. package/dist/src/executors/build/untyped.js +0 -37
  261. package/dist/src/executors/clean/executor.d.ts +0 -7
  262. package/dist/src/executors/clean/executor.js +0 -19
  263. package/dist/src/executors/clean/untyped.d.ts +0 -5
  264. package/dist/src/executors/clean/untyped.js +0 -19
  265. package/dist/src/executors/docs/executor.d.ts +0 -7
  266. package/dist/src/executors/docs/executor.js +0 -19
  267. package/dist/src/executors/docs/untyped.d.ts +0 -5
  268. package/dist/src/executors/docs/untyped.js +0 -20
  269. package/dist/src/executors/lint/executor.d.ts +0 -7
  270. package/dist/src/executors/lint/executor.js +0 -19
  271. package/dist/src/executors/lint/untyped.d.ts +0 -5
  272. package/dist/src/executors/lint/untyped.js +0 -20
  273. package/dist/src/executors/prepare/executor.d.ts +0 -7
  274. package/dist/src/executors/prepare/executor.js +0 -19
  275. package/dist/src/executors/prepare/untyped.d.ts +0 -5
  276. package/dist/src/executors/prepare/untyped.js +0 -11
  277. package/dist/src/generators/sync/generator.d.ts +0 -6
  278. package/dist/src/generators/sync/generator.js +0 -17
  279. package/dist/src/generators/sync/untyped.d.ts +0 -5
  280. package/dist/src/generators/sync/untyped.js +0 -25
  281. package/dist/src/helpers/constants.js +0 -11
  282. package/dist/src/helpers/plugin-utilities.d.ts +0 -55
  283. package/dist/src/helpers/plugin-utilities.js +0 -21
  284. package/dist/src/plugin/index.d.ts +0 -6
  285. package/dist/src/plugin/index.js +0 -14
  286. package/dist/src/types/plugin.d.ts +0 -241
  287. package/dist/src/types/plugin.js +0 -2
@@ -1,260 +0,0 @@
1
- import { __name } from './chunk-O6YSETKJ.mjs';
2
- import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
3
- import { toArray } from '@stryke/convert/to-array';
4
- import { murmurhash } from '@stryke/hash/murmurhash';
5
- import { getUniqueBy } from '@stryke/helpers/get-unique';
6
- import { appendPath } from '@stryke/path/append';
7
- import { isAbsolutePath } from '@stryke/path/is-type';
8
- import { joinPaths as joinPaths$1 } from '@stryke/path/join-paths';
9
- import { replacePath, replaceExtension } from '@stryke/path/replace';
10
- import { isObject } from '@stryke/type-checks/is-object';
11
- import { isRegExp } from '@stryke/type-checks/is-regexp';
12
- import { isSetString } from '@stryke/type-checks/is-set-string';
13
- import { isString } from '@stryke/type-checks/is-string';
14
- import { joinPaths } from '@stryke/path/join';
15
- import { getLogFn, getLogLevel } from '@storm-software/config-tools/logger';
16
- import { LogLevelLabel } from '@storm-software/config-tools/types';
17
- import { getColor } from '@storm-software/config-tools/utilities/colors';
18
- import { noop } from '@stryke/helpers/noop';
19
- import { kebabCase } from '@stryke/string-format/kebab-case';
20
- import { titleCase } from '@stryke/string-format/title-case';
21
- import chalk from 'chalk';
22
- import { listFiles } from '@stryke/fs/list-files';
23
- import { isParentPath } from '@stryke/path/is-parent-path';
24
- import { resolveConfig, format as format$1 } from 'prettier';
25
- import '@stryke/fs/read-file';
26
- import { isSetObject } from '@stryke/type-checks/is-set-object';
27
- import 'magic-string';
28
- import Diff from 'diff-match-patch';
29
- import '@stryke/fs/write-file';
30
- import { getWorkspaceConfig } from '@storm-software/config-tools/get-config';
31
- import { existsSync } from '@stryke/fs/exists';
32
- import { isFunction } from '@stryke/type-checks/is-function';
33
- import { loadConfig } from 'c12';
34
- import defu from 'defu';
35
-
36
- // ../core/src/lib/constants/meta.ts
37
- var ROOT_HASH_LENGTH = 45;
38
- var CACHE_HASH_LENGTH = 62;
39
-
40
- // ../core/src/lib/constants/environments.ts
41
- var DEFAULT_ENVIRONMENT = "default";
42
- var GLOBAL_ENVIRONMENT = "__global__";
43
- function replacePathTokens(context, path) {
44
- if (!path) {
45
- return path;
46
- }
47
- return path.replaceAll("{workspaceRoot}", context.workspaceConfig.workspaceRoot).replaceAll("{root}", context.config.root).replaceAll("{projectRoot}", context.config.root).replaceAll("{sourceRoot}", joinPaths(context.config.root, "src")).replaceAll("{powerlinesPath}", context.powerlinesPath).replaceAll("{cachePath}", context.cachePath).replaceAll("{dataPath}", context.dataPath).replaceAll("{logPath}", context.envPaths.log).replaceAll("{tempPath}", context.envPaths.temp).replaceAll("{configPath}", context.envPaths.config).replaceAll("{outputPath}", context.config.output.outputPath).replaceAll("{buildPath}", context.config.output.buildPath).replaceAll("{artifactsPath}", replacePath(context.artifactsPath, context.workspaceConfig.workspaceRoot)).replaceAll("{builtinPath}", replacePath(context.builtinsPath, context.workspaceConfig.workspaceRoot)).replaceAll("{entryPath}", replacePath(context.entryPath, context.workspaceConfig.workspaceRoot));
48
- }
49
- __name(replacePathTokens, "replacePathTokens");
50
-
51
- // ../core/src/lib/entry.ts
52
- function resolveEntryOutput(context, typeDefinition) {
53
- return replaceExtension(replacePath(replacePath(replacePath(replacePath(replacePath(typeDefinition.file, joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.root, "src")), joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.root)), joinPaths$1(context.config.root, "src")), context.config.root), "src"));
54
- }
55
- __name(resolveEntryOutput, "resolveEntryOutput");
56
- function resolveEntry(context, typeDefinition, input, output) {
57
- return {
58
- ...typeDefinition,
59
- input: isSetString(input) || isRegExp(input) ? {
60
- file: String(input)
61
- } : typeDefinition,
62
- output: output || resolveEntryOutput(context, typeDefinition)
63
- };
64
- }
65
- __name(resolveEntry, "resolveEntry");
66
- function isTypeDefinition(entry) {
67
- return !isString(entry) && entry.file !== void 0;
68
- }
69
- __name(isTypeDefinition, "isTypeDefinition");
70
- function isResolvedEntryTypeDefinition(entry) {
71
- return !isRegExp(entry) && isTypeDefinition(entry) && entry.output !== void 0;
72
- }
73
- __name(isResolvedEntryTypeDefinition, "isResolvedEntryTypeDefinition");
74
- function resolveEntriesSync(context, typeDefinitions) {
75
- return (isObject(typeDefinitions) ? Object.values(typeDefinitions).flat() : toArray(typeDefinitions)).map((entry) => {
76
- if (isResolvedEntryTypeDefinition(entry)) {
77
- return {
78
- ...entry,
79
- output: entry.output ? replacePathTokens(context, entry.output) : void 0,
80
- file: replacePathTokens(context, entry.file)
81
- };
82
- }
83
- let typeDefinition;
84
- if (isString(entry)) {
85
- typeDefinition = parseTypeDefinition(replacePathTokens(context, entry));
86
- } else if (isRegExp(entry)) {
87
- typeDefinition = {
88
- file: replacePathTokens(context, entry.source)
89
- };
90
- } else {
91
- typeDefinition = entry;
92
- typeDefinition.file = replacePathTokens(context, typeDefinition.file);
93
- }
94
- const filePath = isAbsolutePath(typeDefinition.file) ? typeDefinition.file : appendPath(typeDefinition.file, context.config.root);
95
- if (context.fs.isFileSync(filePath)) {
96
- return resolveEntry(context, {
97
- file: appendPath(filePath, context.workspaceConfig.workspaceRoot),
98
- name: typeDefinition.name
99
- });
100
- }
101
- return context.fs.globSync(appendPath(filePath, context.workspaceConfig.workspaceRoot)).map((file) => resolveEntry(context, {
102
- file,
103
- name: typeDefinition.name
104
- }));
105
- }).flat().filter(Boolean);
106
- }
107
- __name(resolveEntriesSync, "resolveEntriesSync");
108
- function getUniqueInputs(inputs = []) {
109
- return isObject(inputs) ? inputs : getUniqueBy(toArray(inputs), (item) => isSetString(item) ? item : murmurhash(item ?? {}, {
110
- maxLength: 24
111
- }));
112
- }
113
- __name(getUniqueInputs, "getUniqueInputs");
114
- var createLog = /* @__PURE__ */ __name((name, options = {}) => {
115
- const logLevel = options.logLevel === null ? LogLevelLabel.SILENT : options.logLevel || LogLevelLabel.INFO;
116
- if (logLevel === LogLevelLabel.SILENT) {
117
- return noop;
118
- }
119
- if (options.customLogger) {
120
- return options.customLogger;
121
- }
122
- return (type, ...args) => getLogFn(getLogLevel(type), {
123
- ...options,
124
- logLevel
125
- })(`${chalk.bold.hex(getColor("brand", options))(`${name ? kebabCase(name) : ""}${options.name ? `${name ? chalk.gray(" > ") : ""}${kebabCase(options.name)}` : ""}${chalk.gray(" > ")}`)}${args.join(" ")} `.trim());
126
- }, "createLog");
127
- var BADGE_COLORS = [
128
- "#00A0DD",
129
- "#6FCE4E",
130
- "#FBBF24",
131
- "#F43F5E",
132
- "#3B82F6",
133
- "#A855F7",
134
- "#469592",
135
- "#288EDF",
136
- "#D8B4FE",
137
- "#10B981",
138
- "#EF4444",
139
- "#F0EC56",
140
- "#F472B6",
141
- "#22D3EE",
142
- "#EAB308",
143
- "#84CC16",
144
- "#F87171",
145
- "#0EA5E9",
146
- "#D946EF",
147
- "#FACC15",
148
- "#34D399",
149
- "#8B5CF6"
150
- ];
151
- var extendLog = /* @__PURE__ */ __name((logFn, name) => {
152
- return (type, ...args) => logFn(type, ` ${chalk.inverse.hex(BADGE_COLORS[name.split("").map((char) => char.charCodeAt(0)).reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length] || BADGE_COLORS[0])(` ${titleCase(name)} `)} ${args.join(" ")} `);
153
- }, "extendLog");
154
- function getBaseFileHeader(context) {
155
- return `
156
- // Generated with ${titleCase(context.config.framework)}
157
- // Note: Do not edit this file manually - it will be overwritten automatically
158
- `;
159
- }
160
- __name(getBaseFileHeader, "getBaseFileHeader");
161
- function getFileHeader(context, options = {}) {
162
- const { directive = null, prettierIgnore = false } = options;
163
- return `/* eslint-disable */
164
- // biome-ignore lint: disable
165
- ${prettierIgnore ? `// prettier-ignore` : ""}${directive ? `
166
-
167
- ${directive}
168
- ` : "\n"}
169
- ${getBaseFileHeader(context)}
170
-
171
- `;
172
- }
173
- __name(getFileHeader, "getFileHeader");
174
- async function format(context, path, data, force = false) {
175
- if (!force && (isParentPath(path, appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot)) || isParentPath(path, appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot)))) {
176
- return data;
177
- }
178
- let code = data;
179
- const resolvedConfig = await resolveConfig(path);
180
- if (resolvedConfig) {
181
- code = await format$1(data, {
182
- absolutePath: path,
183
- ...resolvedConfig
184
- });
185
- }
186
- return code;
187
- }
188
- __name(format, "format");
189
- async function formatFolder(context, path) {
190
- if (!isParentPath(path, appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot)) && !isParentPath(path, appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot))) {
191
- await Promise.allSettled((await listFiles(path)).map(async (file) => {
192
- if (!isParentPath(file, appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot)) && !isParentPath(file, appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot))) {
193
- const data = await context.fs.read(file);
194
- if (data) {
195
- const formatted = await format(context, file, data);
196
- return context.fs.write(file, formatted);
197
- }
198
- }
199
- }));
200
- }
201
- }
202
- __name(formatFolder, "formatFolder");
203
- new Diff();
204
- async function loadWorkspaceConfig(workspaceRoot, cwd) {
205
- return defu({
206
- workspaceRoot
207
- }, await getWorkspaceConfig(true, {
208
- cwd,
209
- workspaceRoot,
210
- useDefault: true
211
- }));
212
- }
213
- __name(loadWorkspaceConfig, "loadWorkspaceConfig");
214
- async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
215
- let resolvedUserConfig = {};
216
- let resolvedUserConfigFile;
217
- if (configFile) {
218
- resolvedUserConfigFile = existsSync(replacePath(configFile, projectRoot)) ? replacePath(configFile, projectRoot) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot))) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot)) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), configFile) : void 0;
219
- }
220
- if (!resolvedUserConfigFile) {
221
- resolvedUserConfigFile = existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
222
- }
223
- if (resolvedUserConfigFile) {
224
- const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
225
- if (resolved) {
226
- let config = {};
227
- if (isFunction(resolved)) {
228
- config = await Promise.resolve(resolved({
229
- command,
230
- mode,
231
- isSsrBuild: false,
232
- isPreview: false
233
- }));
234
- }
235
- if (isSetObject(config)) {
236
- resolvedUserConfig = {
237
- ...config,
238
- config,
239
- configFile: resolvedUserConfigFile
240
- };
241
- }
242
- }
243
- }
244
- const result = await loadConfig({
245
- cwd: projectRoot,
246
- name: framework,
247
- envName: mode,
248
- globalRc: true,
249
- packageJson: true,
250
- dotenv: true,
251
- jiti
252
- });
253
- return defu(resolvedUserConfig, isSetObject(result?.config) ? {
254
- ...result.config,
255
- ...result
256
- } : {});
257
- }
258
- __name(loadUserConfigFile, "loadUserConfigFile");
259
-
260
- export { CACHE_HASH_LENGTH, DEFAULT_ENVIRONMENT, GLOBAL_ENVIRONMENT, ROOT_HASH_LENGTH, createLog, extendLog, format, formatFolder, getFileHeader, getUniqueInputs, loadUserConfigFile, loadWorkspaceConfig, replacePathTokens, resolveEntriesSync };
@@ -1,19 +0,0 @@
1
- import { withExecutor } from './chunk-RBIHD4JS.mjs';
2
- import { __name } from './chunk-O6YSETKJ.mjs';
3
- import defu from 'defu';
4
-
5
- async function executorFn(context, api) {
6
- await api.prepare(defu({
7
- command: "prepare",
8
- skipCache: context.options.skipCache,
9
- autoInstall: context.options.autoInstall
10
- }, context.inlineConfig));
11
- return {
12
- success: true
13
- };
14
- }
15
- __name(executorFn, "executorFn");
16
- var executor = withExecutor("prepare", executorFn);
17
- var executor_default = executor;
18
-
19
- export { executorFn, executor_default };
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
4
- var devkit = require('@nx/devkit');
5
-
6
- async function generatorFn(tree) {
7
- const nxJson = devkit.readNxJson(tree);
8
- const userOptions = nxJson?.sync?.generatorOptions?.["@powerlines/nx:sync"];
9
- return {
10
- outOfSyncMessage: userOptions?.outOfSyncMessage || "The legal-message.txt file needs to be created"
11
- };
12
- }
13
- chunkSHUYVCID_js.__name(generatorFn, "generatorFn");
14
- var generator_default = generatorFn;
15
-
16
- exports.generatorFn = generatorFn;
17
- exports.generator_default = generator_default;
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-
@@ -1,15 +0,0 @@
1
- import { withExecutor } from './chunk-RBIHD4JS.mjs';
2
- import { __name } from './chunk-O6YSETKJ.mjs';
3
-
4
- // src/executors/clean/executor.ts
5
- async function executorFn(context, api) {
6
- await api.clean(context.inlineConfig);
7
- return {
8
- success: true
9
- };
10
- }
11
- __name(executorFn, "executorFn");
12
- var executor = withExecutor("clean", executorFn);
13
- var executor_default = executor;
14
-
15
- export { executorFn, executor_default };
@@ -1,163 +0,0 @@
1
- import { PromiseExecutor } from '@nx/devkit';
2
- import { BaseExecutorResult } from '@storm-software/workspace-tools/types';
3
- import PowerlinesAPI from 'powerlines';
4
- import { PowerlinesExecutorContext } from './src/base/base-executor.js';
5
-
6
- // Generated by @storm-software/untyped
7
- // Do not edit this file directly
8
-
9
- interface BuildExecutorSchema {
10
- /**
11
- * Powerlines Configuration File
12
- *
13
- * The path to the Powerlines configuration file
14
- *
15
- * @default "{projectRoot}/powerlines.config.ts"
16
- *
17
- * @format path
18
- */
19
- configFile?: string,
20
-
21
- /**
22
- * Input Entry File(s)
23
- *
24
- * The entry file(s) that serve as the input for the project
25
- *
26
- * @default ["{sourceRoot}/index.ts"]
27
- *
28
- * @format path
29
- */
30
- input?: Array<string>,
31
-
32
- /**
33
- * TSConfig Path
34
- *
35
- * The path to the tsconfig file
36
- *
37
- * @default "{projectRoot}/tsconfig.json"
38
- *
39
- * @format path
40
- */
41
- tsconfig?: string,
42
-
43
- /**
44
- * Output Path
45
- *
46
- * The path to the output directory for the build artifacts
47
- *
48
- *
49
- * @format path
50
- */
51
- outputPath?: string,
52
-
53
- /**
54
- * Sourcemap
55
- *
56
- * Generate a sourcemap
57
- *
58
- */
59
- sourceMap?: boolean,
60
-
61
- /**
62
- * Format
63
- *
64
- * The format to build
65
- *
66
- * @default ["cjs","esm"]
67
- */
68
- format?: Array<string>,
69
-
70
- /**
71
- * Platform
72
- *
73
- * The platform to build
74
- *
75
- * @default "neutral"
76
- *
77
- * @enum neutral,node,browser
78
- */
79
- platform?: string,
80
-
81
- /**
82
- * External
83
- *
84
- * The external dependencies
85
- *
86
- */
87
- external?: Array<any>,
88
-
89
- /**
90
- * No External
91
- *
92
- * The dependencies that should not be treated as external
93
- *
94
- */
95
- noExternal?: Array<any>,
96
-
97
- /**
98
- * Skip Node Modules Bundle
99
- *
100
- * Skip bundling node_modules during the build process (if required)
101
- *
102
- */
103
- skipNodeModulesBundle?: boolean,
104
-
105
- /**
106
- * Mode
107
- *
108
- * The build mode
109
- *
110
- *
111
- * @enum development,test,production
112
- */
113
- mode?: string,
114
-
115
- /**
116
- * Log Level
117
- *
118
- * The log level to use for the build process
119
- *
120
- *
121
- * @enum fatal,error,warn,success,info,debug,trace,silent
122
- */
123
- logLevel?: string,
124
-
125
- /**
126
- * Define
127
- *
128
- * The `define` values
129
- *
130
- */
131
- define?: Record<string, string>,
132
-
133
- /**
134
- * Auto Install
135
- *
136
- * Automatically install dependencies during prepare stage
137
- *
138
- */
139
- autoInstall?: boolean,
140
-
141
- /**
142
- * Skip Cache
143
- *
144
- * Skip the caching mechanism during the build process (if required)
145
- *
146
- */
147
- skipCache?: boolean,
148
-
149
- /**
150
- * Entry Path(s)
151
- *
152
- * The entry path(s) for the package
153
- *
154
- *
155
- * @oneOf [object Object],[object Object]
156
- */
157
- entry?: any,
158
- }
159
-
160
- declare function executorFn(context: PowerlinesExecutorContext<"build", BuildExecutorSchema>, api: PowerlinesAPI): Promise<BaseExecutorResult>;
161
- declare const executor: PromiseExecutor<BuildExecutorSchema>;
162
-
163
- export { type BuildExecutorSchema as B, executorFn as a, executor as e };
@@ -1,153 +0,0 @@
1
- import { PromiseExecutor } from '@nx/devkit';
2
- import { BaseExecutorResult } from '@storm-software/workspace-tools/types';
3
- import PowerlinesAPI from 'powerlines';
4
- import { PowerlinesExecutorContext } from './src/base/base-executor.mjs';
5
-
6
- // Generated by @storm-software/untyped
7
- // Do not edit this file directly
8
-
9
- interface DocsExecutorSchema {
10
- /**
11
- * Powerlines Configuration File
12
- *
13
- * The path to the Powerlines configuration file
14
- *
15
- * @default "{projectRoot}/powerlines.config.ts"
16
- *
17
- * @format path
18
- */
19
- configFile?: string,
20
-
21
- /**
22
- * Input Entry File(s)
23
- *
24
- * The entry file(s) that serve as the input for the project
25
- *
26
- * @default ["{sourceRoot}/index.ts"]
27
- *
28
- * @format path
29
- */
30
- input?: Array<string>,
31
-
32
- /**
33
- * TSConfig Path
34
- *
35
- * The path to the tsconfig file
36
- *
37
- * @default "{projectRoot}/tsconfig.json"
38
- *
39
- * @format path
40
- */
41
- tsconfig?: string,
42
-
43
- /**
44
- * Output Path
45
- *
46
- * The path to the output directory for the build artifacts
47
- *
48
- *
49
- * @format path
50
- */
51
- outputPath?: string,
52
-
53
- /**
54
- * Sourcemap
55
- *
56
- * Generate a sourcemap
57
- *
58
- */
59
- sourceMap?: boolean,
60
-
61
- /**
62
- * Format
63
- *
64
- * The format to build
65
- *
66
- * @default ["cjs","esm"]
67
- */
68
- format?: Array<string>,
69
-
70
- /**
71
- * Platform
72
- *
73
- * The platform to build
74
- *
75
- * @default "neutral"
76
- *
77
- * @enum neutral,node,browser
78
- */
79
- platform?: string,
80
-
81
- /**
82
- * External
83
- *
84
- * The external dependencies
85
- *
86
- */
87
- external?: Array<any>,
88
-
89
- /**
90
- * No External
91
- *
92
- * The dependencies that should not be treated as external
93
- *
94
- */
95
- noExternal?: Array<any>,
96
-
97
- /**
98
- * Skip Node Modules Bundle
99
- *
100
- * Skip bundling node_modules during the build process (if required)
101
- *
102
- */
103
- skipNodeModulesBundle?: boolean,
104
-
105
- /**
106
- * Mode
107
- *
108
- * The build mode
109
- *
110
- *
111
- * @enum development,test,production
112
- */
113
- mode?: string,
114
-
115
- /**
116
- * Log Level
117
- *
118
- * The log level to use for the build process
119
- *
120
- *
121
- * @enum fatal,error,warn,success,info,debug,trace,silent
122
- */
123
- logLevel?: string,
124
-
125
- /**
126
- * Define
127
- *
128
- * The `define` values
129
- *
130
- */
131
- define?: Record<string, string>,
132
-
133
- /**
134
- * Auto Install
135
- *
136
- * Automatically install dependencies during prepare stage
137
- *
138
- */
139
- autoInstall?: boolean,
140
-
141
- /**
142
- * Skip Cache
143
- *
144
- * Skip the caching mechanism during the build process (if required)
145
- *
146
- */
147
- skipCache?: boolean,
148
- }
149
-
150
- declare function executorFn(context: PowerlinesExecutorContext<"docs", DocsExecutorSchema>, api: PowerlinesAPI): Promise<BaseExecutorResult>;
151
- declare const executor: PromiseExecutor<DocsExecutorSchema>;
152
-
153
- export { type DocsExecutorSchema as D, executorFn as a, executor as e };