@storm-software/workspace-tools 1.267.20 → 1.267.21

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 (255) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/chunk-22UY7NFX.js +41 -0
  4. package/dist/chunk-23BZQTB2.mjs +425 -0
  5. package/dist/{chunk-7O34DHUG.js → chunk-2AVWFUXP.js} +4 -19
  6. package/dist/{chunk-YAKIVJU6.mjs → chunk-2M22JVJQ.mjs} +307 -192
  7. package/dist/{chunk-GXIIWSRN.mjs → chunk-3EDSGFA5.mjs} +63 -54
  8. package/dist/chunk-3RG5ZIWI.js +10 -0
  9. package/dist/{chunk-AC5SI4YZ.js → chunk-3TYXXJKV.js} +11 -8
  10. package/dist/{chunk-7GXOAREP.mjs → chunk-3ZBMLG4D.mjs} +17 -14
  11. package/dist/chunk-437WGH2M.mjs +32 -0
  12. package/dist/{chunk-ULBTYC2B.js → chunk-4BECJRPP.js} +13 -42
  13. package/dist/chunk-4QRA66TH.mjs +379 -0
  14. package/dist/chunk-4S66IYQF.mjs +31 -0
  15. package/dist/{chunk-4JOIS7WW.js → chunk-4WHSR4FK.js} +24 -14
  16. package/dist/{chunk-JTAXCQX6.js → chunk-53DNHF7B.js} +7 -13
  17. package/dist/{chunk-GGGO542M.js → chunk-54FVHKCU.js} +36 -24
  18. package/dist/{chunk-23IRDNF3.mjs → chunk-5HUW3BTP.mjs} +37 -21
  19. package/dist/{chunk-7NN23VWS.mjs → chunk-5LB2F3L4.mjs} +80 -65
  20. package/dist/{chunk-UF6KFXG5.js → chunk-5VY5IBBQ.js} +20 -17
  21. package/dist/{chunk-6QO3KMZA.js → chunk-5ZFTWEKB.js} +2 -16
  22. package/dist/chunk-6EMYX25V.js +7 -0
  23. package/dist/chunk-6QZSAZZ3.mjs +64 -0
  24. package/dist/{chunk-2JA7WAH7.mjs → chunk-7AN4JMFC.mjs} +2 -16
  25. package/dist/{chunk-MXS2AKLY.mjs → chunk-7HWV6U3E.mjs} +33 -18
  26. package/dist/{chunk-GKL4BY2Y.js → chunk-A5CKB6IJ.js} +7 -8
  27. package/dist/{chunk-HSN5YXMG.mjs → chunk-ABE7UOMX.mjs} +24 -21
  28. package/dist/{chunk-6W2B4WA4.mjs → chunk-AHLKRK7D.mjs} +33 -18
  29. package/dist/{chunk-6CGAYKQL.js → chunk-AJ3C2EDW.js} +69 -44
  30. package/dist/chunk-AMW7VHFM.mjs +52 -0
  31. package/dist/chunk-AOFWKOAI.js +31 -0
  32. package/dist/{chunk-7YRW5HNX.js → chunk-AX3RSZT7.js} +42 -31
  33. package/dist/chunk-BFD7HHVZ.mjs +32 -0
  34. package/dist/{chunk-ZMFVKBRM.js → chunk-BWGJVRAS.js} +2 -13
  35. package/dist/{chunk-M6NHJNGU.js → chunk-CWBHZBTN.js} +277 -169
  36. package/dist/{chunk-BNYSKNEI.mjs → chunk-EKWR7TBP.mjs} +36 -24
  37. package/dist/chunk-EU6N7QT3.js +32 -0
  38. package/dist/chunk-EYXDS7SG.js +105 -0
  39. package/dist/chunk-F66XEAID.mjs +113 -0
  40. package/dist/chunk-FOFNKU5G.js +379 -0
  41. package/dist/{chunk-7NNHBZC5.js → chunk-GNOIETZR.js} +28 -17
  42. package/dist/chunk-GQQLBQPQ.mjs +32 -0
  43. package/dist/{chunk-7PRHEOCT.js → chunk-H5NKKUPV.js} +31 -18
  44. package/dist/{chunk-NM7WF6O5.mjs → chunk-HMJTTE4A.mjs} +39 -30
  45. package/dist/{chunk-ZCIEDGNG.mjs → chunk-HY3ZC5EZ.mjs} +10 -31
  46. package/dist/{chunk-OQPX75CG.js → chunk-I5MSPQMO.js} +31 -18
  47. package/dist/{chunk-WPRKDCZP.mjs → chunk-IEZKYJSF.mjs} +3 -6
  48. package/dist/{chunk-IWCQL3AQ.js → chunk-IL3R5ZVS.js} +10 -31
  49. package/dist/{chunk-P4OVFIT6.js → chunk-IZN2IVJ4.js} +19 -6
  50. package/dist/{chunk-UALZJZUK.js → chunk-J2Z4WP3E.js} +32 -16
  51. package/dist/{chunk-RBU35LQW.js → chunk-J4DYXH46.js} +70 -61
  52. package/dist/chunk-KP4RPOBI.mjs +105 -0
  53. package/dist/chunk-KR72GKIT.mjs +7 -0
  54. package/dist/chunk-L4NCVOB5.mjs +17 -0
  55. package/dist/{chunk-4Y6B6JDH.js → chunk-LBAVVYKU.js} +315 -136
  56. package/dist/{chunk-34WSVY5D.mjs → chunk-LSF4BHCI.mjs} +24 -14
  57. package/dist/chunk-M725BO42.mjs +32 -0
  58. package/dist/{chunk-SAWEMBTS.mjs → chunk-MF6VZSIO.mjs} +30 -17
  59. package/dist/{chunk-2I6S33ZD.mjs → chunk-MMBLGUC3.mjs} +311 -132
  60. package/dist/chunk-MZSZKV4N.mjs +47 -0
  61. package/dist/chunk-O6RRIC6I.js +32 -0
  62. package/dist/chunk-OKSECMVK.js +32 -0
  63. package/dist/chunk-Q2HYWACQ.mjs +50 -0
  64. package/dist/{chunk-LJFHW7ZR.mjs → chunk-QFWQZOVG.mjs} +14 -43
  65. package/dist/{chunk-DHGZTMND.js → chunk-QVYCDING.js} +4 -7
  66. package/dist/{chunk-Z4NKRWWJ.js → chunk-RJRBED5Q.js} +48 -32
  67. package/dist/chunk-S5Z4QGF3.js +64 -0
  68. package/dist/{chunk-KQL5XMNL.mjs → chunk-SITFTWPY.mjs} +23 -8
  69. package/dist/chunk-SNMXP6JV.mjs +41 -0
  70. package/dist/chunk-SPXJBMLY.js +50 -0
  71. package/dist/{chunk-7TLYMNLD.mjs → chunk-SW2E5MQJ.mjs} +4 -19
  72. package/dist/{chunk-OKW5O5P4.js → chunk-T7BALDKJ.js} +26 -22
  73. package/dist/chunk-TSYIV33W.js +32 -0
  74. package/dist/{chunk-S3IPRXVE.mjs → chunk-U65XVJ4Y.mjs} +1 -12
  75. package/dist/{chunk-D3U4WMSI.mjs → chunk-U7JFVMCK.mjs} +6 -12
  76. package/dist/chunk-UIPUSUAB.js +425 -0
  77. package/dist/{chunk-O5QR3B3Z.mjs → chunk-UYSJG2E5.mjs} +56 -31
  78. package/dist/{chunk-SJGDCFBH.mjs → chunk-VLOTOQYE.mjs} +11 -8
  79. package/dist/{chunk-ENE6R7BT.mjs → chunk-W2C5IGWW.mjs} +3 -6
  80. package/dist/{chunk-G4QFSE5B.js → chunk-WE4HK4RN.js} +327 -212
  81. package/dist/{chunk-SUQKASD7.js → chunk-X2VJXJEF.js} +82 -67
  82. package/dist/{chunk-RK3UDPDP.mjs → chunk-X6PHOMFB.mjs} +32 -16
  83. package/dist/{chunk-PK2SUBWI.js → chunk-XZSS3YAB.js} +19 -16
  84. package/dist/chunk-YXBFVZ3K.js +47 -0
  85. package/dist/{chunk-CUPARBOS.js → chunk-ZP76EMBE.js} +41 -32
  86. package/dist/{chunk-OBZTQWHM.mjs → chunk-ZT4IIRQF.mjs} +254 -146
  87. package/dist/executors.js +21 -21
  88. package/dist/executors.mjs +20 -20
  89. package/dist/generators.js +17 -17
  90. package/dist/generators.mjs +18 -18
  91. package/dist/index.js +41 -41
  92. package/dist/index.mjs +42 -42
  93. package/dist/src/base/base-executor.js +7 -7
  94. package/dist/src/base/base-executor.mjs +6 -6
  95. package/dist/src/base/base-executor.untyped.js +1 -1
  96. package/dist/src/base/base-executor.untyped.mjs +1 -1
  97. package/dist/src/base/base-generator.js +7 -7
  98. package/dist/src/base/base-generator.mjs +6 -6
  99. package/dist/src/base/base-generator.untyped.js +1 -1
  100. package/dist/src/base/base-generator.untyped.mjs +1 -1
  101. package/dist/src/base/cargo-base-executor.untyped.js +3 -3
  102. package/dist/src/base/cargo-base-executor.untyped.mjs +2 -2
  103. package/dist/src/base/index.js +13 -13
  104. package/dist/src/base/index.mjs +12 -12
  105. package/dist/src/base/typescript-build-executor.untyped.js +3 -3
  106. package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
  107. package/dist/src/base/typescript-library-generator.untyped.js +3 -3
  108. package/dist/src/base/typescript-library-generator.untyped.mjs +2 -2
  109. package/dist/src/executors/cargo-build/executor.js +9 -9
  110. package/dist/src/executors/cargo-build/executor.mjs +8 -8
  111. package/dist/src/executors/cargo-build/untyped.js +3 -3
  112. package/dist/src/executors/cargo-build/untyped.mjs +2 -2
  113. package/dist/src/executors/cargo-check/executor.js +9 -9
  114. package/dist/src/executors/cargo-check/executor.mjs +8 -8
  115. package/dist/src/executors/cargo-check/untyped.js +3 -3
  116. package/dist/src/executors/cargo-check/untyped.mjs +2 -2
  117. package/dist/src/executors/cargo-clippy/executor.js +9 -9
  118. package/dist/src/executors/cargo-clippy/executor.mjs +8 -8
  119. package/dist/src/executors/cargo-clippy/untyped.js +3 -3
  120. package/dist/src/executors/cargo-clippy/untyped.mjs +2 -2
  121. package/dist/src/executors/cargo-doc/executor.js +9 -9
  122. package/dist/src/executors/cargo-doc/executor.mjs +8 -8
  123. package/dist/src/executors/cargo-doc/untyped.js +3 -3
  124. package/dist/src/executors/cargo-doc/untyped.mjs +2 -2
  125. package/dist/src/executors/cargo-format/executor.js +9 -9
  126. package/dist/src/executors/cargo-format/executor.mjs +8 -8
  127. package/dist/src/executors/cargo-format/untyped.js +3 -3
  128. package/dist/src/executors/cargo-format/untyped.mjs +2 -2
  129. package/dist/src/executors/cargo-publish/executor.js +4 -4
  130. package/dist/src/executors/cargo-publish/executor.mjs +3 -3
  131. package/dist/src/executors/cargo-publish/untyped.js +3 -3
  132. package/dist/src/executors/cargo-publish/untyped.mjs +2 -2
  133. package/dist/src/executors/clean-package/executor.js +84 -62
  134. package/dist/src/executors/clean-package/executor.mjs +84 -62
  135. package/dist/src/executors/clean-package/untyped.js +2 -4
  136. package/dist/src/executors/clean-package/untyped.mjs +2 -4
  137. package/dist/src/executors/esbuild/executor.js +8 -8
  138. package/dist/src/executors/esbuild/executor.mjs +7 -7
  139. package/dist/src/executors/esbuild/untyped.js +4 -8
  140. package/dist/src/executors/esbuild/untyped.mjs +3 -7
  141. package/dist/src/executors/npm-publish/executor.js +5 -5
  142. package/dist/src/executors/npm-publish/executor.mjs +4 -4
  143. package/dist/src/executors/npm-publish/untyped.js +1 -1
  144. package/dist/src/executors/npm-publish/untyped.mjs +1 -1
  145. package/dist/src/executors/size-limit/executor.js +8 -8
  146. package/dist/src/executors/size-limit/executor.mjs +7 -7
  147. package/dist/src/executors/size-limit/untyped.js +1 -1
  148. package/dist/src/executors/size-limit/untyped.mjs +1 -1
  149. package/dist/src/executors/typia/executor.js +8 -8
  150. package/dist/src/executors/typia/executor.mjs +7 -7
  151. package/dist/src/executors/typia/untyped.js +4 -12
  152. package/dist/src/executors/typia/untyped.mjs +4 -12
  153. package/dist/src/executors/unbuild/executor.js +8 -8
  154. package/dist/src/executors/unbuild/executor.mjs +7 -7
  155. package/dist/src/executors/unbuild/untyped.js +6 -13
  156. package/dist/src/executors/unbuild/untyped.mjs +5 -12
  157. package/dist/src/generators/browser-library/generator.js +10 -10
  158. package/dist/src/generators/browser-library/generator.mjs +9 -9
  159. package/dist/src/generators/browser-library/untyped.js +5 -11
  160. package/dist/src/generators/browser-library/untyped.mjs +4 -10
  161. package/dist/src/generators/config-schema/generator.js +8 -8
  162. package/dist/src/generators/config-schema/generator.mjs +7 -7
  163. package/dist/src/generators/config-schema/untyped.js +1 -1
  164. package/dist/src/generators/config-schema/untyped.mjs +1 -1
  165. package/dist/src/generators/init/init.js +3 -3
  166. package/dist/src/generators/init/init.mjs +2 -2
  167. package/dist/src/generators/init/untyped.js +1 -1
  168. package/dist/src/generators/init/untyped.mjs +1 -1
  169. package/dist/src/generators/neutral-library/generator.js +10 -10
  170. package/dist/src/generators/neutral-library/generator.mjs +9 -9
  171. package/dist/src/generators/neutral-library/untyped.js +5 -10
  172. package/dist/src/generators/neutral-library/untyped.mjs +4 -9
  173. package/dist/src/generators/node-library/generator.js +10 -10
  174. package/dist/src/generators/node-library/generator.mjs +9 -9
  175. package/dist/src/generators/node-library/untyped.js +5 -11
  176. package/dist/src/generators/node-library/untyped.mjs +4 -10
  177. package/dist/src/generators/preset/generator.js +8 -8
  178. package/dist/src/generators/preset/generator.mjs +7 -7
  179. package/dist/src/generators/preset/untyped.js +3 -11
  180. package/dist/src/generators/preset/untyped.mjs +3 -11
  181. package/dist/src/generators/release-version/generator.js +7 -7
  182. package/dist/src/generators/release-version/generator.mjs +6 -6
  183. package/dist/src/generators/release-version/untyped.js +3 -14
  184. package/dist/src/generators/release-version/untyped.mjs +3 -14
  185. package/dist/src/plugins/rust/cargo-toml.js +5 -5
  186. package/dist/src/plugins/rust/cargo-toml.mjs +4 -4
  187. package/dist/src/plugins/rust/index.js +5 -5
  188. package/dist/src/plugins/rust/index.mjs +4 -4
  189. package/dist/src/plugins/typescript/index.js +5 -5
  190. package/dist/src/plugins/typescript/index.mjs +4 -4
  191. package/dist/src/plugins/typescript/project-config.js +5 -5
  192. package/dist/src/plugins/typescript/project-config.mjs +4 -4
  193. package/dist/src/plugins/typescript/tsup.js +114 -109
  194. package/dist/src/plugins/typescript/tsup.mjs +116 -111
  195. package/dist/src/plugins/typescript/untyped-schema.js +93 -77
  196. package/dist/src/plugins/typescript/untyped-schema.mjs +96 -80
  197. package/dist/src/types.js +1 -1
  198. package/dist/src/types.mjs +1 -1
  199. package/dist/src/utils/apply-workspace-tokens.js +5 -5
  200. package/dist/src/utils/apply-workspace-tokens.mjs +4 -4
  201. package/dist/src/utils/cargo.js +3 -3
  202. package/dist/src/utils/cargo.mjs +2 -2
  203. package/dist/src/utils/create-cli-options.js +3 -3
  204. package/dist/src/utils/create-cli-options.mjs +2 -2
  205. package/dist/src/utils/get-project-configurations.js +5 -5
  206. package/dist/src/utils/get-project-configurations.mjs +4 -4
  207. package/dist/src/utils/index.js +15 -15
  208. package/dist/src/utils/index.mjs +14 -14
  209. package/dist/src/utils/lock-file.js +3 -3
  210. package/dist/src/utils/lock-file.mjs +2 -2
  211. package/dist/src/utils/package-helpers.js +5 -5
  212. package/dist/src/utils/package-helpers.mjs +4 -4
  213. package/dist/src/utils/plugin-helpers.js +4 -4
  214. package/dist/src/utils/plugin-helpers.mjs +3 -3
  215. package/dist/src/utils/pnpm-deps-update.js +4 -4
  216. package/dist/src/utils/pnpm-deps-update.mjs +3 -3
  217. package/dist/src/utils/project-tags.js +3 -3
  218. package/dist/src/utils/project-tags.mjs +2 -2
  219. package/dist/src/utils/toml.js +3 -3
  220. package/dist/src/utils/toml.mjs +2 -2
  221. package/dist/src/utils/typia-transform.js +3 -3
  222. package/dist/src/utils/typia-transform.mjs +2 -2
  223. package/dist/src/utils/versions.js +1 -1
  224. package/dist/src/utils/versions.mjs +1 -1
  225. package/package.json +1 -1
  226. package/dist/chunk-3GQAWCBQ.js +0 -13
  227. package/dist/chunk-3IZ3O4OK.js +0 -30
  228. package/dist/chunk-6JJB5AYA.js +0 -51
  229. package/dist/chunk-7AXFMX2T.js +0 -37
  230. package/dist/chunk-B3DVFXXD.js +0 -32
  231. package/dist/chunk-DHOPT66G.mjs +0 -32
  232. package/dist/chunk-ECGUA6DW.mjs +0 -48
  233. package/dist/chunk-FMDP5I2Q.mjs +0 -446
  234. package/dist/chunk-GFHXZA2W.mjs +0 -31
  235. package/dist/chunk-HIZQZGPN.mjs +0 -32
  236. package/dist/chunk-HOXPAVCL.js +0 -32
  237. package/dist/chunk-ICPUM2HS.js +0 -50
  238. package/dist/chunk-ID7QJZH6.mjs +0 -37
  239. package/dist/chunk-KCUI5EYN.mjs +0 -468
  240. package/dist/chunk-KEBNU3P2.js +0 -446
  241. package/dist/chunk-KVZPB73M.mjs +0 -86
  242. package/dist/chunk-NSCWEC2S.js +0 -32
  243. package/dist/chunk-NX7JRHF4.mjs +0 -50
  244. package/dist/chunk-OQTJDGUH.js +0 -468
  245. package/dist/chunk-QCF7H4NZ.mjs +0 -32
  246. package/dist/chunk-QKHODSAV.mjs +0 -13
  247. package/dist/chunk-QMD25JYH.mjs +0 -43
  248. package/dist/chunk-RUKOOSWL.js +0 -31
  249. package/dist/chunk-SBJV4LAX.mjs +0 -51
  250. package/dist/chunk-TET4GF3D.js +0 -43
  251. package/dist/chunk-XITP2BX2.js +0 -13
  252. package/dist/chunk-XJZ5TRTJ.mjs +0 -102
  253. package/dist/chunk-Y4TQKFAH.mjs +0 -18
  254. package/dist/chunk-YW4UN25U.js +0 -86
  255. package/dist/chunk-ZUNLUDAB.mjs +0 -30
@@ -10,10 +10,7 @@ var typescript_library_generator_untyped_default = defineUntypedSchema({
10
10
  id: "TypeScriptLibraryGeneratorSchema",
11
11
  title: "TypeScript Library Generator",
12
12
  description: "A type definition for the base TypeScript Library Generator schema",
13
- required: [
14
- "directory",
15
- "name"
16
- ]
13
+ required: ["directory", "name"]
17
14
  },
18
15
  name: {
19
16
  $schema: {
@@ -42,12 +39,7 @@ var typescript_library_generator_untyped_default = defineUntypedSchema({
42
39
  title: "Platform",
43
40
  type: "string",
44
41
  description: "The platform to target with the library",
45
- enum: [
46
- "neutral",
47
- "node",
48
- "worker",
49
- "browser"
50
- ]
42
+ enum: ["neutral", "node", "worker", "browser"]
51
43
  },
52
44
  $default: "neutral"
53
45
  },
@@ -69,11 +61,7 @@ var typescript_library_generator_untyped_default = defineUntypedSchema({
69
61
  $schema: {
70
62
  title: "Unit Test Runner",
71
63
  type: "string",
72
- enum: [
73
- "jest",
74
- "vitest",
75
- "none"
76
- ],
64
+ enum: ["jest", "vitest", "none"],
77
65
  description: "The unit test runner to use"
78
66
  }
79
67
  },
@@ -81,10 +69,7 @@ var typescript_library_generator_untyped_default = defineUntypedSchema({
81
69
  $schema: {
82
70
  title: "Test Environment",
83
71
  type: "string",
84
- enum: [
85
- "jsdom",
86
- "node"
87
- ],
72
+ enum: ["jsdom", "node"],
88
73
  description: "The test environment to use"
89
74
  }
90
75
  },
@@ -1,12 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk6CGAYKQLjs = require('./chunk-6CGAYKQL.js');
3
+ var _chunkAJ3C2EDWjs = require('./chunk-AJ3C2EDW.js');
4
4
 
5
5
 
6
- var _chunkG4QFSE5Bjs = require('./chunk-G4QFSE5B.js');
7
-
8
-
9
- var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
6
+ var _chunkWE4HK4RNjs = require('./chunk-WE4HK4RN.js');
10
7
 
11
8
  // src/executors/size-limit/executor.ts
12
9
  var _devkit = require('@nx/devkit');
@@ -16,31 +13,38 @@ var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_fi
16
13
  var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
17
14
  async function sizeLimitExecutorFn(options, context, config) {
18
15
  if (!_optionalChain([context, 'optionalAccess', _ => _.projectName]) || !_optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
19
- throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
16
+ throw new Error(
17
+ "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
18
+ );
20
19
  }
21
- _chunkG4QFSE5Bjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
22
- _sizelimit2.default.call(void 0, [
23
- _file2.default,
24
- _esbuild2.default,
25
- _esbuildwhy2.default
26
- ], {
27
- checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")), "src")))
20
+ _chunkWE4HK4RNjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
21
+ _sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
22
+ checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
23
+ _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
24
+ "src"
25
+ )))
28
26
  }).then((result) => {
29
- _chunkG4QFSE5Bjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
27
+ _chunkWE4HK4RNjs.writeInfo.call(void 0,
28
+ `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
29
+ config
30
+ );
30
31
  });
31
32
  return {
32
33
  success: true
33
34
  };
34
35
  }
35
- _chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
36
- var executor_default = _chunk6CGAYKQLjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
37
- skipReadingConfig: false,
38
- hooks: {
39
- applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
40
- return options;
41
- }, "applyDefaultOptions")
36
+ var executor_default = _chunkAJ3C2EDWjs.withRunExecutor.call(void 0,
37
+ "Size-Limit Performance Test Executor",
38
+ sizeLimitExecutorFn,
39
+ {
40
+ skipReadingConfig: false,
41
+ hooks: {
42
+ applyDefaultOptions: (options) => {
43
+ return options;
44
+ }
45
+ }
42
46
  }
43
- });
47
+ );
44
48
 
45
49
 
46
50
 
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunk4BECJRPPjs = require('./chunk-4BECJRPP.js');
5
+
6
+
7
+ var _chunkAJ3C2EDWjs = require('./chunk-AJ3C2EDW.js');
8
+
9
+ // src/executors/cargo-build/executor.ts
10
+ async function cargoBuildExecutor(options, context) {
11
+ const command = _chunk4BECJRPPjs.buildCargoCommand.call(void 0, "build", options, context);
12
+ return await _chunk4BECJRPPjs.cargoCommand.call(void 0, ...command);
13
+ }
14
+ var executor_default = _chunkAJ3C2EDWjs.withRunExecutor.call(void 0,
15
+ "Cargo Build",
16
+ cargoBuildExecutor,
17
+ {
18
+ skipReadingConfig: false,
19
+ hooks: {
20
+ applyDefaultOptions: (options) => {
21
+ options.outputPath ??= "dist/target/{projectRoot}";
22
+ options.toolchain ??= "stable";
23
+ return options;
24
+ }
25
+ }
26
+ }
27
+ );
28
+
29
+
30
+
31
+
32
+ exports.cargoBuildExecutor = cargoBuildExecutor; exports.executor_default = executor_default;
@@ -1,7 +1,3 @@
1
- import {
2
- __name
3
- } from "./chunk-WPRKDCZP.mjs";
4
-
5
1
  // src/utils/toml.ts
6
2
  import TOML from "@ltd/j-toml";
7
3
  import { logger } from "@nx/devkit";
@@ -13,18 +9,14 @@ function parseCargoTomlWithTree(tree, projectRoot, projectName) {
13
9
  }
14
10
  return parseCargoToml(cargoTomlString);
15
11
  }
16
- __name(parseCargoTomlWithTree, "parseCargoTomlWithTree");
17
12
  function parseCargoToml(cargoString) {
18
13
  if (!cargoString) {
19
14
  throw new Error("Cargo.toml is empty");
20
15
  }
21
16
  return TOML.parse(cargoString, {
22
- x: {
23
- comment: true
24
- }
17
+ x: { comment: true }
25
18
  });
26
19
  }
27
- __name(parseCargoToml, "parseCargoToml");
28
20
  function stringifyCargoToml(cargoToml) {
29
21
  const tomlString = TOML.stringify(cargoToml, {
30
22
  newlineAround: "section"
@@ -34,17 +26,14 @@ function stringifyCargoToml(cargoToml) {
34
26
  }
35
27
  return tomlString;
36
28
  }
37
- __name(stringifyCargoToml, "stringifyCargoToml");
38
29
  function modifyCargoTable(toml, section, key, value) {
39
30
  toml[section] ??= TOML.Section({});
40
31
  toml[section][key] = typeof value === "object" && !Array.isArray(value) ? TOML.inline(value) : typeof value === "function" ? value() : value;
41
32
  }
42
- __name(modifyCargoTable, "modifyCargoTable");
43
33
  function modifyCargoNestedTable(toml, section, key, value) {
44
34
  toml[section] ??= {};
45
35
  toml[section][key] = TOML.Section(value);
46
36
  }
47
- __name(modifyCargoNestedTable, "modifyCargoNestedTable");
48
37
 
49
38
  export {
50
39
  parseCargoTomlWithTree,
@@ -1,7 +1,3 @@
1
- import {
2
- __name
3
- } from "./chunk-WPRKDCZP.mjs";
4
-
5
1
  // ../config-tools/src/utilities/correct-paths.ts
6
2
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
7
3
  function normalizeWindowsPath(input = "") {
@@ -10,11 +6,10 @@ function normalizeWindowsPath(input = "") {
10
6
  }
11
7
  return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
12
8
  }
13
- __name(normalizeWindowsPath, "normalizeWindowsPath");
14
9
  var _UNC_REGEX = /^[/\\]{2}/;
15
10
  var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
16
11
  var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
17
- var correctPaths = /* @__PURE__ */ __name(function(path) {
12
+ var correctPaths = function(path) {
18
13
  if (!path || path.length === 0) {
19
14
  return ".";
20
15
  }
@@ -42,8 +37,8 @@ var correctPaths = /* @__PURE__ */ __name(function(path) {
42
37
  return `//${path}`;
43
38
  }
44
39
  return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
45
- }, "correctPaths");
46
- var joinPaths = /* @__PURE__ */ __name(function(...segments) {
40
+ };
41
+ var joinPaths = function(...segments) {
47
42
  let path = "";
48
43
  for (const seg of segments) {
49
44
  if (!seg) {
@@ -63,7 +58,7 @@ var joinPaths = /* @__PURE__ */ __name(function(...segments) {
63
58
  }
64
59
  }
65
60
  return correctPaths(path);
66
- }, "joinPaths");
61
+ };
67
62
  function normalizeString(path, allowAboveRoot) {
68
63
  let res = "";
69
64
  let lastSegmentLength = 0;
@@ -124,10 +119,9 @@ function normalizeString(path, allowAboveRoot) {
124
119
  }
125
120
  return res;
126
121
  }
127
- __name(normalizeString, "normalizeString");
128
- var isAbsolute = /* @__PURE__ */ __name(function(p) {
122
+ var isAbsolute = function(p) {
129
123
  return _IS_ABSOLUTE_RE.test(p);
130
- }, "isAbsolute");
124
+ };
131
125
 
132
126
  export {
133
127
  correctPaths,
@@ -0,0 +1,425 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+ var _chunk5VY5IBBQjs = require('./chunk-5VY5IBBQ.js');
4
+
5
+
6
+
7
+
8
+
9
+ var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
10
+
11
+ // src/plugins/typescript/project-config.ts
12
+
13
+
14
+ var _devkit = require('@nx/devkit');
15
+ var _fs = require('fs');
16
+ var _path = require('path');
17
+ var _nxjsonjs = require('nx/src/config/nx-json.js');
18
+ var _fileutils = require('nx/src/utils/fileutils');
19
+
20
+
21
+ var _packagejson = require('nx/src/utils/package-json');
22
+ var _pkgtypes = require('pkg-types');
23
+ var name = "storm-software/typescript";
24
+ var createNodesV2 = [
25
+ "{project.json,**/project.json}",
26
+ async (configFiles, options = { includeApps: true }, context) => {
27
+ return await _devkit.createNodesFromFiles.call(void 0,
28
+ async (file, options2 = { includeApps: true }, context2) => {
29
+ try {
30
+ const packageJson = createPackageJson(file, context2.workspaceRoot);
31
+ if (!packageJson) {
32
+ return [];
33
+ }
34
+ const tsconfig = await createTsconfig(file, context2.workspaceRoot);
35
+ if (!tsconfig) {
36
+ return [];
37
+ }
38
+ const project = createProjectFromPackageJsonNextToProjectJson(
39
+ file,
40
+ packageJson
41
+ );
42
+ if (_optionalChain([options2, 'optionalAccess', _ => _.includeApps]) === false && project.projectType === "application") {
43
+ return [];
44
+ }
45
+ let relativeRoot = project.root.replaceAll("\\", "/").replace(context2.workspaceRoot.replaceAll("\\", "/"), "");
46
+ if (relativeRoot.startsWith("/")) {
47
+ relativeRoot = relativeRoot.slice(1);
48
+ }
49
+ const enableMarkdownlint = _optionalChain([options2, 'optionalAccess', _2 => _2.enableMarkdownlint]) !== false;
50
+ const enableEslint = _optionalChain([options2, 'optionalAccess', _3 => _3.enableEslint]) !== false;
51
+ const nxJson = _nxjsonjs.readNxJson.call(void 0, context2.workspaceRoot);
52
+ const targets = _packagejson.readTargetsFromPackageJson.call(void 0, packageJson, nxJson);
53
+ if (_path.join.call(void 0, context2.workspaceRoot, project.root).startsWith(
54
+ _path.join.call(void 0, context2.workspaceRoot, "tools")
55
+ ) && _optionalChain([options2, 'optionalAccess', _4 => _4.lintInternalTools]) !== true) {
56
+ targets.lint = {
57
+ dependsOn: ["^lint"],
58
+ executor: "nx:run-commands",
59
+ options: {
60
+ command: "echo 'Skipping linting of internal tools package \"{projectName}\". This can be changed by setting `lintInternalTools` to `true` in the Storm TypeScript plugin options.' "
61
+ }
62
+ };
63
+ } else {
64
+ if (!targets["lint-ls"]) {
65
+ targets["lint-ls"] = {
66
+ cache: true,
67
+ inputs: ["linting", "typescript", "^production"],
68
+ dependsOn: ["^lint-ls"],
69
+ executor: "nx:run-commands",
70
+ options: {
71
+ command: 'pnpm exec ls-lint --config="node_modules/@storm-software/linting-tools/ls-lint/.ls-lint.yml" '
72
+ }
73
+ };
74
+ }
75
+ if (!targets["lint-markdown"] && enableMarkdownlint) {
76
+ targets["lint-markdown"] = {
77
+ cache: true,
78
+ outputs: ["{projectRoot}/**/*.md", "{projectRoot}/**/*.mdx"],
79
+ inputs: [
80
+ "linting",
81
+ "{projectRoot}/**/*.md",
82
+ "{projectRoot}/**/*.mdx"
83
+ ],
84
+ dependsOn: ["^lint-markdown"],
85
+ executor: "nx:run-commands",
86
+ options: {
87
+ command: 'pnpm exec markdownlint-cli2 "{projectRoot}/*.{md,mdx}" "{projectRoot}/**/*.{md,mdx}" --config "node_modules/@storm-software/markdownlint/config/base.markdownlint-cli2.jsonc" --fix'
88
+ }
89
+ };
90
+ }
91
+ if (!targets.lint && enableEslint) {
92
+ let eslintConfig = checkEslintConfigAtPath(project.root);
93
+ if (!eslintConfig) {
94
+ eslintConfig = checkEslintConfigAtPath(context2.workspaceRoot);
95
+ }
96
+ if (eslintConfig) {
97
+ targets.lint = {
98
+ cache: true,
99
+ inputs: ["linting", "typescript", "^production"],
100
+ outputs: [
101
+ "{projectRoot}/**/*.{ts,tsx,js,jsx,json,md,mdx,yaml,yml,html,css,scss,sass,less,graphql,gql}"
102
+ ],
103
+ dependsOn: ["lint-markdown", "lint-knip", "^lint"],
104
+ executor: "@nx/eslint:lint",
105
+ options: {
106
+ format: "stylish",
107
+ fix: true,
108
+ errorOnUnmatchedPattern: false,
109
+ cache: true,
110
+ cacheLocation: "{workspaceRoot}/node_modules/.cache/eslint/{projectRoot}",
111
+ eslintConfig
112
+ }
113
+ };
114
+ }
115
+ }
116
+ }
117
+ if (!targets["format-toml"]) {
118
+ targets["format-toml"] = {
119
+ inputs: ["linting", "{projectRoot}/**/*.toml"],
120
+ outputs: ["{projectRoot}/**/*.toml"],
121
+ dependsOn: ["^format-toml"],
122
+ executor: "nx:run-commands",
123
+ options: {
124
+ command: 'pnpm exec taplo format --config="node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="node_modules/.cache/taplo/{projectRoot}" --colors="always" "{projectRoot}/*.toml" "{projectRoot}/**/*.toml" '
125
+ }
126
+ };
127
+ }
128
+ if (!targets["format-readme"]) {
129
+ targets["format-readme"] = {
130
+ inputs: [
131
+ "linting",
132
+ "documentation",
133
+ "{projectRoot}/{README.md,package.json,Cargo.toml,executors.json,generators.json}"
134
+ ],
135
+ outputs: ["{projectRoot}/README.md"],
136
+ dependsOn: ["^format-readme"],
137
+ executor: "nx:run-commands",
138
+ options: {
139
+ command: 'pnpm exec storm-git readme --templates="tools/readme-templates" --project="{projectName}"'
140
+ }
141
+ };
142
+ }
143
+ if (!targets["format-prettier"]) {
144
+ targets["format-prettier"] = {
145
+ inputs: ["linting", "typescript", "^production"],
146
+ outputs: ["{projectRoot}/**/*"],
147
+ dependsOn: ["^format-prettier"],
148
+ executor: "nx:run-commands",
149
+ options: {
150
+ command: 'pnpm exec prettier "{projectRoot}/**/*" --write --ignore-unknown --no-error-on-unmatched-pattern --config="node_modules/@storm-software/prettier/config.json" --ignore-path="node_modules/@storm-software/prettier/.prettierignore" --cache --cache-location="node_modules/.cache/prettier/{projectRoot}" '
151
+ }
152
+ };
153
+ }
154
+ if (!targets.format) {
155
+ targets.format = {
156
+ dependsOn: [
157
+ "format-readme",
158
+ "format-toml",
159
+ "format-prettier",
160
+ "^format"
161
+ ],
162
+ executor: "nx:run-commands",
163
+ options: {
164
+ command: `echo 'Formatting the project files in "{projectRoot}"' `
165
+ }
166
+ };
167
+ }
168
+ if (!targets.clean) {
169
+ targets.clean = {
170
+ cache: true,
171
+ executor: "nx:run-commands",
172
+ inputs: ["typescript", "^production"],
173
+ outputs: ["{workspaceRoot}/dist/{projectRoot}"],
174
+ options: {
175
+ command: "pnpm exec rimraf dist/{projectRoot}",
176
+ color: true,
177
+ cwd: "{workspaceRoot}"
178
+ }
179
+ };
180
+ }
181
+ if (!targets.rebuild) {
182
+ targets.rebuild = {
183
+ cache: false,
184
+ executor: "nx:run-commands",
185
+ dependsOn: ["clean", "^build"],
186
+ inputs: ["typescript", "default", "^production"],
187
+ outputs: ["{workspaceRoot}/dist/{projectRoot}"],
188
+ options: {
189
+ command: `pnpm exec nx run ${project.name}:build`
190
+ }
191
+ };
192
+ }
193
+ if (!targets.test && checkJestConfigAtPath(project.root)) {
194
+ targets.test = {
195
+ cache: true,
196
+ executor: "@nx/jest:jest",
197
+ inputs: ["testing", "typescript", "^production"],
198
+ outputs: ["{workspaceRoot}/coverage/{projectRoot}"],
199
+ defaultConfiguration: "development",
200
+ options: {
201
+ jestConfig: "{projectRoot}/jest.config.ts",
202
+ passWithNoTests: true
203
+ },
204
+ configurations: {
205
+ development: {
206
+ ci: false,
207
+ codeCoverage: true
208
+ },
209
+ production: {
210
+ ci: true,
211
+ codeCoverage: true
212
+ }
213
+ }
214
+ };
215
+ }
216
+ targets["size-limit"] = {
217
+ dependsOn: ["build", "^size-limit"],
218
+ options: {}
219
+ };
220
+ const isPrivate = _nullishCoalesce(packageJson.private, () => ( false));
221
+ if (!isPrivate) {
222
+ _chunkAX3RSZT7js.addProjectTag.call(void 0,
223
+ project,
224
+ _chunkAX3RSZT7js.ProjectTagConstants.Registry.TAG_ID,
225
+ _chunkAX3RSZT7js.ProjectTagConstants.Registry.NPM,
226
+ { overwrite: true }
227
+ );
228
+ targets["nx-release-publish"] = {
229
+ dependsOn: ["build", "size-limit", "^nx-release-publish"],
230
+ executor: "@storm-software/workspace-tools:npm-publish",
231
+ options: {}
232
+ };
233
+ if (project.projectType === "application" || _chunkAX3RSZT7js.isEqualProjectTag.call(void 0,
234
+ project,
235
+ _chunkAX3RSZT7js.ProjectTagConstants.ProjectType.TAG_ID,
236
+ _chunkAX3RSZT7js.ProjectTagConstants.ProjectType.APPLICATION
237
+ ) || _chunkAX3RSZT7js.isEqualProjectTag.call(void 0,
238
+ project,
239
+ _chunkAX3RSZT7js.ProjectTagConstants.DistStyle.TAG_ID,
240
+ _chunkAX3RSZT7js.ProjectTagConstants.DistStyle.CLEAN
241
+ )) {
242
+ targets["clean-package"] = {
243
+ cache: true,
244
+ dependsOn: ["build"],
245
+ inputs: [
246
+ "linting",
247
+ "testing",
248
+ "documentation",
249
+ "default",
250
+ "^production"
251
+ ],
252
+ outputs: ["{workspaceRoot}/dist/{projectRoot}"],
253
+ executor: "@storm-software/workspace-tools:clean-package",
254
+ options: {
255
+ cleanReadMe: true,
256
+ cleanComments: true
257
+ }
258
+ };
259
+ _optionalChain([targets, 'access', _5 => _5["nx-release-publish"], 'access', _6 => _6.dependsOn, 'optionalAccess', _7 => _7.push, 'call', _8 => _8("clean-package")]);
260
+ _optionalChain([targets, 'access', _9 => _9["size-limit"], 'access', _10 => _10.dependsOn, 'optionalAccess', _11 => _11.push, 'call', _12 => _12("clean-package")]);
261
+ }
262
+ }
263
+ _chunkAX3RSZT7js.addProjectTag.call(void 0,
264
+ project,
265
+ _chunkAX3RSZT7js.ProjectTagConstants.Language.TAG_ID,
266
+ _chunkAX3RSZT7js.ProjectTagConstants.Language.TYPESCRIPT,
267
+ { overwrite: true }
268
+ );
269
+ const platform = _chunk5VY5IBBQjs.getProjectPlatform.call(void 0, project);
270
+ switch (platform) {
271
+ case "worker":
272
+ _chunkAX3RSZT7js.addProjectTag.call(void 0,
273
+ project,
274
+ _chunkAX3RSZT7js.ProjectTagConstants.Platform.TAG_ID,
275
+ _chunkAX3RSZT7js.ProjectTagConstants.Platform.WORKER,
276
+ { overwrite: true }
277
+ );
278
+ break;
279
+ case "node":
280
+ _chunkAX3RSZT7js.addProjectTag.call(void 0,
281
+ project,
282
+ _chunkAX3RSZT7js.ProjectTagConstants.Platform.TAG_ID,
283
+ _chunkAX3RSZT7js.ProjectTagConstants.Platform.NODE,
284
+ { overwrite: true }
285
+ );
286
+ break;
287
+ case "browser":
288
+ _chunkAX3RSZT7js.addProjectTag.call(void 0,
289
+ project,
290
+ _chunkAX3RSZT7js.ProjectTagConstants.Platform.TAG_ID,
291
+ _chunkAX3RSZT7js.ProjectTagConstants.Platform.BROWSER,
292
+ { overwrite: true }
293
+ );
294
+ break;
295
+ default:
296
+ _chunkAX3RSZT7js.addProjectTag.call(void 0,
297
+ project,
298
+ _chunkAX3RSZT7js.ProjectTagConstants.Platform.TAG_ID,
299
+ _chunkAX3RSZT7js.ProjectTagConstants.Platform.NEUTRAL,
300
+ { overwrite: true }
301
+ );
302
+ break;
303
+ }
304
+ _chunkAX3RSZT7js.setDefaultProjectTags.call(void 0, project, name);
305
+ const result = _optionalChain([project, 'optionalAccess', _13 => _13.name]) ? {
306
+ projects: {
307
+ [project.name]: {
308
+ ...project,
309
+ root: relativeRoot,
310
+ targets,
311
+ release: {
312
+ ..._optionalChain([project, 'optionalAccess', _14 => _14.release]),
313
+ version: {
314
+ ..._optionalChain([project, 'optionalAccess', _15 => _15.release, 'optionalAccess', _16 => _16.version]),
315
+ generator: "@storm-software/workspace-tools:release-version"
316
+ }
317
+ }
318
+ }
319
+ }
320
+ } : {};
321
+ console.log(`Writing Results for ${_nullishCoalesce(_optionalChain([project, 'optionalAccess', _17 => _17.name]), () => ( "missing name"))}`);
322
+ console.log(result);
323
+ return result;
324
+ } catch (e) {
325
+ console.error(e);
326
+ return {};
327
+ }
328
+ },
329
+ configFiles,
330
+ options,
331
+ context
332
+ );
333
+ }
334
+ ];
335
+ function createProjectFromPackageJsonNextToProjectJson(projectJsonPath, packageJson) {
336
+ const { nx, name: name2 } = packageJson;
337
+ const root = _path.dirname.call(void 0, projectJsonPath);
338
+ return {
339
+ ...nx,
340
+ name: name2,
341
+ root,
342
+ targets: {}
343
+ };
344
+ }
345
+ function createPackageJson(projectJsonPath, workspaceRoot) {
346
+ try {
347
+ const root = _path.dirname.call(void 0, projectJsonPath);
348
+ const packageJsonPath = _path.join.call(void 0, workspaceRoot, root, "package.json");
349
+ if (!_fs.existsSync.call(void 0, packageJsonPath)) {
350
+ return null;
351
+ }
352
+ return _fileutils.readJsonFile.call(void 0, packageJsonPath);
353
+ } catch (e) {
354
+ console.log(e);
355
+ return null;
356
+ }
357
+ }
358
+ async function createTsconfig(projectJsonPath, workspaceRoot) {
359
+ try {
360
+ const root = _path.dirname.call(void 0, projectJsonPath);
361
+ const tsconfigJsonPath = _path.join.call(void 0, workspaceRoot, root, "tsconfig.json");
362
+ if (!_fs.existsSync.call(void 0, tsconfigJsonPath)) {
363
+ return null;
364
+ }
365
+ return _pkgtypes.readTSConfig.call(void 0, tsconfigJsonPath);
366
+ } catch (e) {
367
+ console.log(e);
368
+ return null;
369
+ }
370
+ }
371
+ function checkEslintConfigAtPath(directory) {
372
+ const hasEslintConfigFile = (fileName) => {
373
+ return _fs.existsSync.call(void 0, _path.join.call(void 0, directory, fileName));
374
+ };
375
+ if (hasEslintConfigFile(".eslintrc.js")) {
376
+ return ".eslintrc.js";
377
+ } else if (hasEslintConfigFile(".eslintrc.cjs")) {
378
+ return ".eslintrc.cjs";
379
+ } else if (hasEslintConfigFile(".eslintrc.yaml")) {
380
+ return ".eslintrc.yaml";
381
+ } else if (hasEslintConfigFile(".eslintrc.yml")) {
382
+ return ".eslintrc.yml";
383
+ } else if (hasEslintConfigFile(".eslintrc.json")) {
384
+ return ".eslintrc.json";
385
+ } else if (hasEslintConfigFile(".eslintrc")) {
386
+ return ".eslintrc";
387
+ } else if (hasEslintConfigFile("eslint.config.js")) {
388
+ return "eslint.config.js";
389
+ } else if (hasEslintConfigFile("eslint.config.cjs")) {
390
+ return "eslint.config.cjs";
391
+ } else if (hasEslintConfigFile("eslint.config.mjs")) {
392
+ return "eslint.config.mjs";
393
+ } else if (hasEslintConfigFile("eslint.config.ts")) {
394
+ return "eslint.config.ts";
395
+ } else if (hasEslintConfigFile("eslint.config.cts")) {
396
+ return "eslint.config.cts";
397
+ } else if (hasEslintConfigFile("eslint.config.mts")) {
398
+ return "eslint.config.mts";
399
+ }
400
+ return null;
401
+ }
402
+ function checkJestConfigAtPath(directory) {
403
+ const hasJestConfigFile = (fileName) => {
404
+ return _fs.existsSync.call(void 0, _path.join.call(void 0, directory, fileName));
405
+ };
406
+ if (hasJestConfigFile("eslint.config.js")) {
407
+ return "jest.config.js";
408
+ } else if (hasJestConfigFile("eslint.config.cjs")) {
409
+ return "jest.config.cjs";
410
+ } else if (hasJestConfigFile("eslint.config.mjs")) {
411
+ return "jest.config.mjs";
412
+ } else if (hasJestConfigFile("eslint.config.ts")) {
413
+ return "jest.config.ts";
414
+ } else if (hasJestConfigFile("jest.config.cts")) {
415
+ return "jest.config.cts";
416
+ } else if (hasJestConfigFile("jest.config.mts")) {
417
+ return "jest.config.mts";
418
+ }
419
+ return null;
420
+ }
421
+
422
+
423
+
424
+
425
+ exports.name = name; exports.createNodesV2 = createNodesV2;