@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
@@ -4,57 +4,67 @@ var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk7YRW5HNXjs = require('./chunk-7YRW5HNX.js');
7
+ var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
8
+
9
+
10
+ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
11
+
12
+ // src/base/typescript-library-generator.ts
13
+
14
+
15
+
16
+
17
+
8
18
 
9
19
 
10
- var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
11
20
 
12
21
 
13
- var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
14
22
 
15
- // src/base/typescript-library-generator.ts
16
23
  var _devkit = require('@nx/devkit');
17
24
  var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-and-root-utils');
25
+
26
+
27
+
28
+
18
29
  var _js = require('@nx/js');
19
30
  var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopRequireDefault(_init);
20
31
  var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
21
32
  async function typeScriptLibraryGeneratorFn(tree, options, config) {
22
- const normalized = await normalizeOptions(tree, {
23
- ...options
24
- });
33
+ const normalized = await normalizeOptions(tree, { ...options });
25
34
  const tasks = [];
26
- tasks.push(await _init2.default.call(void 0, tree, {
27
- ...normalized,
28
- tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
29
- }));
30
- tasks.push(_devkit.addDependenciesToPackageJson.call(void 0, tree, {}, {
31
- "@storm-software/workspace-tools": "latest",
32
- "@storm-software/testing-tools": "latest",
33
- ..._nullishCoalesce(options.devDependencies, () => ( {}))
34
- }));
35
- if (normalized.publishable) {
36
- tasks.push(await _generator2.default.call(void 0, tree, {
35
+ tasks.push(
36
+ await _init2.default.call(void 0, tree, {
37
37
  ...normalized,
38
- skipFormat: true
39
- }));
38
+ tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
39
+ })
40
+ );
41
+ tasks.push(
42
+ _devkit.addDependenciesToPackageJson.call(void 0,
43
+ tree,
44
+ {},
45
+ {
46
+ "@storm-software/workspace-tools": "latest",
47
+ "@storm-software/testing-tools": "latest",
48
+ ..._nullishCoalesce(options.devDependencies, () => ( {}))
49
+ }
50
+ )
51
+ );
52
+ if (normalized.publishable) {
53
+ tasks.push(await _generator2.default.call(void 0, tree, { ...normalized, skipFormat: true }));
40
54
  }
41
55
  const projectConfig = {
42
56
  root: normalized.directory,
43
57
  projectType: "library",
44
- sourceRoot: _chunkJTAXCQX6js.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
58
+ sourceRoot: _chunk53DNHF7Bjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
45
59
  targets: {
46
60
  build: {
47
61
  executor: options.buildExecutor,
48
- outputs: [
49
- "{options.outputPath}"
50
- ],
62
+ outputs: ["{options.outputPath}"],
51
63
  options: {
52
- entry: [
53
- _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
54
- ],
64
+ entry: [_chunk53DNHF7Bjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
55
65
  outputPath: getOutputPath(normalized),
56
- tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
57
- project: _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
66
+ tsconfig: _chunk53DNHF7Bjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
67
+ project: _chunk53DNHF7Bjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
58
68
  defaultConfiguration: "production",
59
69
  platform: "neutral",
60
70
  assets: [
@@ -86,9 +96,12 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
86
96
  if (options.platform) {
87
97
  projectConfig.targets.build.options.platform = options.platform === "worker" ? "node" : options.platform;
88
98
  }
89
- _chunk7YRW5HNXjs.addProjectTag.call(void 0, projectConfig, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, options.platform === "node" ? _chunk7YRW5HNXjs.ProjectTagConstants.Platform.NODE : options.platform === "worker" ? _chunk7YRW5HNXjs.ProjectTagConstants.Platform.WORKER : options.platform === "browser" ? _chunk7YRW5HNXjs.ProjectTagConstants.Platform.BROWSER : _chunk7YRW5HNXjs.ProjectTagConstants.Platform.NEUTRAL, {
90
- overwrite: false
91
- });
99
+ _chunkAX3RSZT7js.addProjectTag.call(void 0,
100
+ projectConfig,
101
+ _chunkAX3RSZT7js.ProjectTagConstants.Platform.TAG_ID,
102
+ options.platform === "node" ? _chunkAX3RSZT7js.ProjectTagConstants.Platform.NODE : options.platform === "worker" ? _chunkAX3RSZT7js.ProjectTagConstants.Platform.WORKER : options.platform === "browser" ? _chunkAX3RSZT7js.ProjectTagConstants.Platform.BROWSER : _chunkAX3RSZT7js.ProjectTagConstants.Platform.NEUTRAL,
103
+ { overwrite: false }
104
+ );
92
105
  createProjectTsConfigJson(tree, normalized);
93
106
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
94
107
  let repository = {
@@ -108,7 +121,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
108
121
  if (!normalized.importPath) {
109
122
  normalized.importPath = normalized.name;
110
123
  }
111
- const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "package.json");
124
+ const packageJsonPath = _chunk53DNHF7Bjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
112
125
  if (tree.exists(packageJsonPath)) {
113
126
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
114
127
  if (!normalized.importPath) {
@@ -165,10 +178,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
165
178
  }));
166
179
  }
167
180
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
168
- _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
181
+ _chunk53DNHF7Bjs.joinPaths.call(void 0,
182
+ normalized.projectRoot,
183
+ "./src",
184
+ `index.${normalized.js ? "js" : "ts"}`
185
+ )
169
186
  ]);
170
- _js.addTsConfigPath.call(void 0, tree, _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.importPath, "/*"), [
171
- _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
187
+ _js.addTsConfigPath.call(void 0, tree, _chunk53DNHF7Bjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
188
+ _chunk53DNHF7Bjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
172
189
  ]);
173
190
  if (tree.exists("package.json")) {
174
191
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
@@ -179,7 +196,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
179
196
  description = packageJson.description;
180
197
  }
181
198
  }
182
- const tsconfigPath = _chunkJTAXCQX6js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
199
+ const tsconfigPath = _chunk53DNHF7Bjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
183
200
  if (tree.exists(tsconfigPath)) {
184
201
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
185
202
  json.composite ??= true;
@@ -193,46 +210,33 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
193
210
  outDir: `${_devkit.offsetFromRoot.call(void 0, normalized.projectRoot)}dist/out-tsc`
194
211
  },
195
212
  files: [],
196
- include: [
197
- "src/**/*.ts",
198
- "src/**/*.js"
199
- ],
200
- exclude: [
201
- "jest.config.ts",
202
- "src/**/*.spec.ts",
203
- "src/**/*.test.ts"
204
- ]
213
+ include: ["src/**/*.ts", "src/**/*.js"],
214
+ exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
205
215
  });
206
216
  }
207
217
  await _devkit.formatFiles.call(void 0, tree);
208
218
  return null;
209
219
  }
210
- _chunk3GQAWCBQjs.__name.call(void 0, typeScriptLibraryGeneratorFn, "typeScriptLibraryGeneratorFn");
211
220
  function getOutputPath(options) {
212
- const parts = [
213
- "dist"
214
- ];
221
+ const parts = ["dist"];
215
222
  if (options.projectRoot === ".") {
216
223
  parts.push(options.name);
217
224
  } else {
218
225
  parts.push(options.projectRoot);
219
226
  }
220
- return _chunkJTAXCQX6js.joinPaths.call(void 0, ...parts);
227
+ return _chunk53DNHF7Bjs.joinPaths.call(void 0, ...parts);
221
228
  }
222
- _chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
223
229
  function createProjectTsConfigJson(tree, options) {
224
230
  const tsconfig = {
225
231
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
226
232
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _12 => _12.tsconfigOptions]), () => ( {})),
227
233
  compilerOptions: {
228
234
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
229
- outDir: _chunkJTAXCQX6js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
235
+ outDir: _chunk53DNHF7Bjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
230
236
  noEmit: true,
231
237
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _13 => _13.tsconfigOptions, 'optionalAccess', _14 => _14.compilerOptions]), () => ( {}))
232
238
  },
233
- files: [
234
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _15 => _15.tsconfigOptions, 'optionalAccess', _16 => _16.files]), () => ( []))
235
- ],
239
+ files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _15 => _15.tsconfigOptions, 'optionalAccess', _16 => _16.files]), () => ( []))],
236
240
  include: [
237
241
  ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _17 => _17.tsconfigOptions, 'optionalAccess', _18 => _18.include]), () => ( [])),
238
242
  "src/**/*.ts",
@@ -246,9 +250,8 @@ function createProjectTsConfigJson(tree, options) {
246
250
  "src/**/*.test.ts"
247
251
  ]
248
252
  };
249
- _devkit.writeJson.call(void 0, tree, _chunkJTAXCQX6js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
253
+ _devkit.writeJson.call(void 0, tree, _chunk53DNHF7Bjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
250
254
  }
251
- _chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
252
255
  async function normalizeOptions(tree, options, config) {
253
256
  let importPath = options.importPath;
254
257
  if (!importPath && _optionalChain([config, 'optionalAccess', _21 => _21.namespace])) {
@@ -256,7 +259,9 @@ async function normalizeOptions(tree, options, config) {
256
259
  }
257
260
  if (options.publishable) {
258
261
  if (!importPath) {
259
- throw new Error(`For publishable libs you have to provide a proper "--importPath" which needs to be a valid npm package name (e.g. my-awesome-lib or @myorg/my-lib)`);
262
+ throw new Error(
263
+ `For publishable libs you have to provide a proper "--importPath" which needs to be a valid npm package name (e.g. my-awesome-lib or @myorg/my-lib)`
264
+ );
260
265
  }
261
266
  }
262
267
  let bundler = "tsc";
@@ -265,7 +270,12 @@ async function normalizeOptions(tree, options, config) {
265
270
  }
266
271
  const { Linter } = _devkit.ensurePackage.call(void 0, "@nx/eslint", _chunkHI4G4OOGjs.nxVersion);
267
272
  const rootProject = false;
268
- const { projectName, names: projectNames, projectRoot, importPath: normalizedImportPath } = await _projectnameandrootutils.determineProjectNameAndRootOptions.call(void 0, tree, {
273
+ const {
274
+ projectName,
275
+ names: projectNames,
276
+ projectRoot,
277
+ importPath: normalizedImportPath
278
+ } = await _projectnameandrootutils.determineProjectNameAndRootOptions.call(void 0, tree, {
269
279
  name: options.name,
270
280
  projectType: "library",
271
281
  directory: options.directory,
@@ -302,7 +312,6 @@ async function normalizeOptions(tree, options, config) {
302
312
  shouldUseSwcJest: false
303
313
  };
304
314
  }
305
- _chunk3GQAWCBQjs.__name.call(void 0, normalizeOptions, "normalizeOptions");
306
315
 
307
316
 
308
317
 
@@ -0,0 +1,105 @@
1
+ import {
2
+ withRunExecutor
3
+ } from "./chunk-UYSJG2E5.mjs";
4
+ import {
5
+ writeInfo
6
+ } from "./chunk-2M22JVJQ.mjs";
7
+ import {
8
+ joinPaths
9
+ } from "./chunk-U7JFVMCK.mjs";
10
+
11
+ // src/executors/unbuild/executor.ts
12
+ import { defu } from "defu";
13
+ import { createJiti } from "jiti";
14
+ async function unbuildExecutorFn(options, context, config) {
15
+ writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
16
+ if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
17
+ throw new Error(
18
+ "The Build process failed because the context is not valid. Please run this command from a workspace root directory."
19
+ );
20
+ }
21
+ if (!context.projectsConfigurations.projects[context.projectName].root) {
22
+ throw new Error(
23
+ "The Build process failed because the project root is not valid. Please run this command from a workspace root directory."
24
+ );
25
+ }
26
+ if (!context.projectsConfigurations.projects[context.projectName].sourceRoot) {
27
+ throw new Error(
28
+ "The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory."
29
+ );
30
+ }
31
+ const jiti = createJiti(config.workspaceRoot, {
32
+ fsCache: config.skipCache ? false : joinPaths(
33
+ config.workspaceRoot,
34
+ config.directories.cache || "node_modules/.cache/storm",
35
+ "jiti"
36
+ ),
37
+ interopDefault: true
38
+ });
39
+ const stormUnbuild = await jiti.import(
40
+ jiti.esmResolve("@storm-software/unbuild/build")
41
+ );
42
+ await stormUnbuild.build(
43
+ defu(
44
+ {
45
+ ...options,
46
+ projectRoot: context.projectsConfigurations.projects[context.projectName].root,
47
+ projectName: context.projectName,
48
+ sourceRoot: context.projectsConfigurations.projects[context.projectName].sourceRoot,
49
+ platform: options.platform
50
+ },
51
+ {
52
+ stubOptions: {
53
+ jiti: {
54
+ fsCache: config.skipCache ? false : joinPaths(
55
+ config.workspaceRoot,
56
+ config.directories.cache || "node_modules/.cache/storm",
57
+ "jiti"
58
+ )
59
+ }
60
+ },
61
+ rollup: {
62
+ emitCJS: true,
63
+ watch: false,
64
+ dts: {
65
+ respectExternal: true
66
+ },
67
+ esbuild: {
68
+ target: options.target,
69
+ format: "esm",
70
+ platform: options.platform,
71
+ minify: options.minify ?? !options.debug,
72
+ sourcemap: options.sourcemap ?? options.debug,
73
+ treeShaking: options.treeShaking
74
+ }
75
+ }
76
+ }
77
+ )
78
+ );
79
+ return {
80
+ success: true
81
+ };
82
+ }
83
+ var executor_default = withRunExecutor(
84
+ "TypeScript Unbuild build",
85
+ unbuildExecutorFn,
86
+ {
87
+ skipReadingConfig: false,
88
+ hooks: {
89
+ applyDefaultOptions: async (options, config) => {
90
+ options.debug ??= false;
91
+ options.treeShaking ??= true;
92
+ options.buildOnly ??= false;
93
+ options.platform ??= "neutral";
94
+ options.entry ??= ["{sourceRoot}"];
95
+ options.tsconfig ??= "{projectRoot}/tsconfig.json";
96
+ return options;
97
+ }
98
+ }
99
+ }
100
+ );
101
+
102
+ export {
103
+ unbuildExecutorFn,
104
+ executor_default
105
+ };
@@ -0,0 +1,7 @@
1
+ // src/utils/typia-transform.ts
2
+ import transform from "typia/lib/transform";
3
+ var getTypiaTransform = (program, diagnostics) => transform(program, {}, { addDiagnostic: (input) => diagnostics.push(input) });
4
+
5
+ export {
6
+ getTypiaTransform
7
+ };
@@ -0,0 +1,17 @@
1
+ import {
2
+ findWorkspaceRoot
3
+ } from "./chunk-LSF4BHCI.mjs";
4
+
5
+ // src/utils/get-project-configurations.ts
6
+ import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
7
+ var getProjectConfigurations = async () => {
8
+ return retrieveProjectConfigurationsWithoutPluginInference(
9
+ findWorkspaceRoot()
10
+ );
11
+ };
12
+ var getProjectConfiguration = (projectName) => getProjectConfigurations()?.[projectName];
13
+
14
+ export {
15
+ getProjectConfigurations,
16
+ getProjectConfiguration
17
+ };