@storm-software/workspace-tools 1.275.20 → 1.275.22

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 (168) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-3PTWOMU2.mjs → chunk-24I5UG2D.mjs} +1 -1
  4. package/dist/{chunk-4M4SHAIR.js → chunk-42TNQHCD.js} +2 -2
  5. package/dist/{chunk-XZAVLGX6.js → chunk-5TUFRMTO.js} +2 -2
  6. package/dist/{chunk-XFRYBLPE.js → chunk-6R4A3PB6.js} +21 -21
  7. package/dist/{chunk-5LJGZH6B.mjs → chunk-7B7MO37D.mjs} +2 -2
  8. package/dist/{chunk-ZARYEHW7.js → chunk-7ZRQQA25.js} +2 -2
  9. package/dist/{chunk-6U5L5TSA.mjs → chunk-C7LHUAYC.mjs} +14 -3
  10. package/dist/{chunk-KAVKOD5C.js → chunk-DKLKGRRG.js} +2 -2
  11. package/dist/{chunk-BZLHJMEB.js → chunk-EN5XS3GB.js} +89 -78
  12. package/dist/{chunk-JY44CTPK.mjs → chunk-EN6UN4HW.mjs} +1 -1
  13. package/dist/{chunk-PT3X4RIM.js → chunk-EUAJDEYR.js} +2 -2
  14. package/dist/{chunk-YEIQEZ66.js → chunk-FFOWIU7U.js} +5 -5
  15. package/dist/{chunk-4Q5TA4HY.mjs → chunk-G6EH3PP7.mjs} +2 -2
  16. package/dist/{chunk-Q7ZNED73.mjs → chunk-HMYD5M4B.mjs} +2 -2
  17. package/dist/{chunk-MAW537K7.mjs → chunk-HWLOOO2F.mjs} +3 -3
  18. package/dist/{chunk-FXJFMNIG.mjs → chunk-I4SUMEDP.mjs} +3 -3
  19. package/dist/{chunk-2VYGGPNB.js → chunk-IK64JJIC.js} +2 -2
  20. package/dist/{chunk-EPHSEJ2O.mjs → chunk-JMWUA7I6.mjs} +1 -1
  21. package/dist/{chunk-5M6KTSAU.mjs → chunk-K2CSCQCX.mjs} +1 -1
  22. package/dist/{chunk-X6YEZ2IR.js → chunk-L5YPQPPI.js} +5 -5
  23. package/dist/{chunk-RJX34CGZ.mjs → chunk-LV23UCVW.mjs} +1 -1
  24. package/dist/{chunk-6HLO2W5F.mjs → chunk-M4FI4A7J.mjs} +2 -2
  25. package/dist/chunk-M4MFOGBP.js +67 -0
  26. package/dist/{chunk-UIHVLD6X.js → chunk-N26S5ZZO.js} +4 -4
  27. package/dist/{chunk-F6VM55TC.js → chunk-N56A46X4.js} +53 -21
  28. package/dist/{chunk-3OPUS7DM.js → chunk-PS2BJ4LE.js} +16 -16
  29. package/dist/{chunk-GZ2DMJNP.js → chunk-Q4OQNT35.js} +2 -2
  30. package/dist/{chunk-BWWZL3XI.mjs → chunk-RI4DKWHY.mjs} +1 -1
  31. package/dist/{chunk-UIPBCBUB.mjs → chunk-RRSFJSUD.mjs} +1 -1
  32. package/dist/{chunk-F2W3BT7Q.js → chunk-SC7EMPTR.js} +5 -5
  33. package/dist/{chunk-OCAYHE4R.mjs → chunk-T37KAYWR.mjs} +10 -7
  34. package/dist/{chunk-VNYMAMOQ.js → chunk-TED4ZEH4.js} +5 -5
  35. package/dist/{chunk-NZYIQ7PK.mjs → chunk-U46LNC6Z.mjs} +35 -3
  36. package/dist/{chunk-NWZ4RH4R.js → chunk-UND65LI3.js} +2 -2
  37. package/dist/{chunk-3DV3EPPP.mjs → chunk-VM2NJKNU.mjs} +1 -1
  38. package/dist/{chunk-U3YH5M4L.js → chunk-VTPEPAEB.js} +14 -14
  39. package/dist/{chunk-PNPK65F6.js → chunk-VTWK6DYL.js} +2 -2
  40. package/dist/{chunk-SE4WCL4O.js → chunk-VXAYID6A.js} +20 -20
  41. package/dist/{chunk-PTKTAEWS.mjs → chunk-WPS2TBOT.mjs} +2 -2
  42. package/dist/{chunk-RR4536RL.mjs → chunk-XUPPPUVL.mjs} +1 -1
  43. package/dist/{chunk-DJJD4NLR.js → chunk-Y2U6VHAA.js} +31 -31
  44. package/dist/{chunk-ZAMOY46U.mjs → chunk-Y47IDRQF.mjs} +2 -2
  45. package/dist/{chunk-7IUPGUV3.mjs → chunk-ZBYX46UV.mjs} +2 -2
  46. package/dist/{chunk-QCQPWUUG.mjs → chunk-ZCZPWHWR.mjs} +1 -1
  47. package/dist/{chunk-NMDGWPQQ.mjs → chunk-ZMH42O44.mjs} +2 -2
  48. package/dist/{chunk-EFJ4G4IB.js → chunk-ZTOCNHII.js} +5 -5
  49. package/dist/{executor-C0iYanib.d.mts → executor-BP-LYnHF.d.mts} +1 -1
  50. package/dist/{executor-DJ9zo_90.d.ts → executor-BSjbUx1A.d.ts} +1 -1
  51. package/dist/{executor-BnzblW4J.d.ts → executor-BksAOv8G.d.ts} +1 -1
  52. package/dist/{executor-BACiX_ZU.d.ts → executor-C-siLbCm.d.ts} +1 -1
  53. package/dist/{executor-B6rwbTH2.d.mts → executor-CKiwa5Xq.d.mts} +1 -1
  54. package/dist/{executor-fjC66tCo.d.ts → executor-CTCU7CcG.d.ts} +1 -1
  55. package/dist/{executor-B8Cw3Tig.d.mts → executor-Cmx3MWUy.d.mts} +1 -1
  56. package/dist/{executor-DBfq-cdb.d.mts → executor-XS6ys9ih.d.mts} +1 -1
  57. package/dist/executors.d.mts +6 -6
  58. package/dist/executors.d.ts +6 -6
  59. package/dist/executors.js +15 -15
  60. package/dist/executors.mjs +19 -19
  61. package/dist/{generator-BpgPcSPg.d.ts → generator-BXzhsfxo.d.ts} +1 -1
  62. package/dist/{generator-BVRsSb8i.d.ts → generator-BZs3V01e.d.ts} +2 -2
  63. package/dist/{generator-p2G5laVf.d.mts → generator-BtKZw7Ii.d.mts} +1 -1
  64. package/dist/{generator-CCtJHaiZ.d.ts → generator-BuRFeV2C.d.ts} +2 -2
  65. package/dist/{generator-CS2A1Qzu.d.ts → generator-CCIH4c92.d.ts} +1 -1
  66. package/dist/{generator-Diovfw1t.d.mts → generator-CVD09mcB.d.mts} +2 -2
  67. package/dist/{generator-B26zSwLY.d.mts → generator-CYG64r2I.d.mts} +2 -2
  68. package/dist/{generator-CfzaLi0k.d.ts → generator-Ca1yHZ_D.d.ts} +3 -3
  69. package/dist/{generator-B640GNIa.d.mts → generator-DjwiJF7J.d.mts} +3 -3
  70. package/dist/{generator-6ooMg1MM.d.mts → generator-MW3X4CCa.d.mts} +2 -2
  71. package/dist/{generator-vnIt_4qz.d.mts → generator-Sdga0BE0.d.mts} +1 -1
  72. package/dist/{generator-Dkpc6Apg.d.ts → generator-qXrsuk5E.d.ts} +2 -2
  73. package/dist/generators.d.mts +9 -9
  74. package/dist/generators.d.ts +9 -9
  75. package/dist/generators.js +12 -12
  76. package/dist/generators.mjs +11 -11
  77. package/dist/index.d.mts +13 -13
  78. package/dist/index.d.ts +13 -13
  79. package/dist/index.js +24 -24
  80. package/dist/index.mjs +28 -28
  81. package/dist/src/base/base-executor.d.mts +3 -3
  82. package/dist/src/base/base-executor.d.ts +3 -3
  83. package/dist/src/base/base-executor.js +4 -4
  84. package/dist/src/base/base-executor.mjs +3 -3
  85. package/dist/src/base/base-generator.d.mts +3 -3
  86. package/dist/src/base/base-generator.d.ts +3 -3
  87. package/dist/src/base/base-generator.js +4 -4
  88. package/dist/src/base/base-generator.mjs +3 -3
  89. package/dist/src/base/index.d.mts +3 -3
  90. package/dist/src/base/index.d.ts +3 -3
  91. package/dist/src/base/index.js +6 -6
  92. package/dist/src/base/index.mjs +5 -5
  93. package/dist/src/executors/cargo-build/executor.js +5 -5
  94. package/dist/src/executors/cargo-build/executor.mjs +4 -4
  95. package/dist/src/executors/cargo-check/executor.js +5 -5
  96. package/dist/src/executors/cargo-check/executor.mjs +4 -4
  97. package/dist/src/executors/cargo-clippy/executor.js +5 -5
  98. package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
  99. package/dist/src/executors/cargo-doc/executor.js +5 -5
  100. package/dist/src/executors/cargo-doc/executor.mjs +4 -4
  101. package/dist/src/executors/cargo-format/executor.js +5 -5
  102. package/dist/src/executors/cargo-format/executor.mjs +4 -4
  103. package/dist/src/executors/cargo-publish/executor.js +4 -4
  104. package/dist/src/executors/cargo-publish/executor.mjs +3 -3
  105. package/dist/src/executors/clean-package/executor.d.mts +2 -2
  106. package/dist/src/executors/clean-package/executor.d.ts +2 -2
  107. package/dist/src/executors/clean-package/executor.js +6 -6
  108. package/dist/src/executors/clean-package/executor.mjs +3 -3
  109. package/dist/src/executors/esbuild/executor.d.mts +3 -3
  110. package/dist/src/executors/esbuild/executor.d.ts +3 -3
  111. package/dist/src/executors/esbuild/executor.js +5 -5
  112. package/dist/src/executors/esbuild/executor.mjs +4 -4
  113. package/dist/src/executors/size-limit/executor.d.mts +3 -3
  114. package/dist/src/executors/size-limit/executor.d.ts +3 -3
  115. package/dist/src/executors/size-limit/executor.js +5 -5
  116. package/dist/src/executors/size-limit/executor.mjs +4 -4
  117. package/dist/src/executors/typia/executor.d.mts +3 -3
  118. package/dist/src/executors/typia/executor.d.ts +3 -3
  119. package/dist/src/executors/typia/executor.js +5 -5
  120. package/dist/src/executors/typia/executor.mjs +4 -4
  121. package/dist/src/executors/unbuild/executor.d.mts +3 -3
  122. package/dist/src/executors/unbuild/executor.d.ts +3 -3
  123. package/dist/src/executors/unbuild/executor.js +5 -5
  124. package/dist/src/executors/unbuild/executor.mjs +4 -4
  125. package/dist/src/generators/browser-library/generator.d.mts +4 -4
  126. package/dist/src/generators/browser-library/generator.d.ts +4 -4
  127. package/dist/src/generators/browser-library/generator.js +6 -6
  128. package/dist/src/generators/browser-library/generator.mjs +5 -5
  129. package/dist/src/generators/config-schema/generator.d.mts +4 -4
  130. package/dist/src/generators/config-schema/generator.d.ts +4 -4
  131. package/dist/src/generators/config-schema/generator.js +5 -5
  132. package/dist/src/generators/config-schema/generator.mjs +4 -4
  133. package/dist/src/generators/neutral-library/generator.d.mts +4 -4
  134. package/dist/src/generators/neutral-library/generator.d.ts +4 -4
  135. package/dist/src/generators/neutral-library/generator.js +6 -6
  136. package/dist/src/generators/neutral-library/generator.mjs +5 -5
  137. package/dist/src/generators/node-library/generator.d.mts +4 -4
  138. package/dist/src/generators/node-library/generator.d.ts +4 -4
  139. package/dist/src/generators/node-library/generator.js +6 -6
  140. package/dist/src/generators/node-library/generator.mjs +5 -5
  141. package/dist/src/generators/preset/generator.d.mts +4 -4
  142. package/dist/src/generators/preset/generator.d.ts +4 -4
  143. package/dist/src/generators/preset/generator.js +5 -5
  144. package/dist/src/generators/preset/generator.mjs +4 -4
  145. package/dist/src/generators/release-version/generator.d.mts +3 -3
  146. package/dist/src/generators/release-version/generator.d.ts +3 -3
  147. package/dist/src/generators/release-version/generator.js +5 -5
  148. package/dist/src/generators/release-version/generator.mjs +4 -4
  149. package/dist/src/types.d.mts +3 -3
  150. package/dist/src/types.d.ts +3 -3
  151. package/dist/src/utils/apply-workspace-tokens.d.mts +2 -2
  152. package/dist/src/utils/apply-workspace-tokens.d.ts +2 -2
  153. package/dist/src/utils/index.d.mts +3 -3
  154. package/dist/src/utils/index.d.ts +3 -3
  155. package/dist/src/utils/index.js +4 -4
  156. package/dist/src/utils/index.mjs +3 -3
  157. package/dist/src/utils/package-helpers.js +4 -4
  158. package/dist/src/utils/package-helpers.mjs +3 -3
  159. package/dist/src/utils/project-tags.d.mts +3 -3
  160. package/dist/src/utils/project-tags.d.ts +3 -3
  161. package/dist/{types-DJ_Tqtsg.d.ts → types-CaL51DUL.d.ts} +1 -1
  162. package/dist/{types-Bq2vUp-m.d.mts → types-DzO7l4VZ.d.mts} +1 -1
  163. package/dist/types-sLpco176.d.mts +267 -0
  164. package/dist/types-sLpco176.d.ts +267 -0
  165. package/package.json +5 -6
  166. package/dist/chunk-44ORGJU6.js +0 -64
  167. package/dist/types-kTmkrbB_.d.mts +0 -1292
  168. package/dist/types-kTmkrbB_.d.ts +0 -1292
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkU3YH5M4Ljs = require('./chunk-U3YH5M4L.js');
4
+ var _chunkVTPEPAEBjs = require('./chunk-VTPEPAEB.js');
5
5
 
6
6
 
7
7
  var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
8
8
 
9
9
 
10
- var _chunk3OPUS7DMjs = require('./chunk-3OPUS7DM.js');
10
+ var _chunkPS2BJ4LEjs = require('./chunk-PS2BJ4LE.js');
11
11
 
12
12
 
13
13
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
@@ -37,7 +37,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
37
37
  directory: schema.directory,
38
38
  description: schema.description
39
39
  };
40
- const options = await _chunkU3YH5M4Ljs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
40
+ const options = await _chunkVTPEPAEBjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
41
41
  const { className, name, propertyName } = _devkit.names.call(void 0, options.name);
42
42
  _devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
43
43
  ...schema,
@@ -55,11 +55,11 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
55
55
  buildable: options.bundler && options.bundler !== "none",
56
56
  hasUnitTestRunner: options.unitTestRunner !== "none"
57
57
  });
58
- await _chunkU3YH5M4Ljs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
58
+ await _chunkVTPEPAEBjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
59
59
  await _devkit.formatFiles.call(void 0, tree);
60
60
  return null;
61
61
  }
62
- var generator_default = _chunk3OPUS7DMjs.withRunGenerator.call(void 0,
62
+ var generator_default = _chunkPS2BJ4LEjs.withRunGenerator.call(void 0,
63
63
  "TypeScript Library Creator (NodeJs Platform)",
64
64
  nodeLibraryGeneratorFn,
65
65
  {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  withRunGenerator
3
- } from "./chunk-Q7ZNED73.mjs";
3
+ } from "./chunk-HMYD5M4B.mjs";
4
4
  import {
5
5
  stormWorkspaceConfigSchema,
6
6
  writeInfo,
7
7
  writeSuccess,
8
8
  writeTrace
9
- } from "./chunk-6U5L5TSA.mjs";
9
+ } from "./chunk-C7LHUAYC.mjs";
10
10
  import {
11
11
  findWorkspaceRoot
12
12
  } from "./chunk-LSF4BHCI.mjs";
13
13
 
14
14
  // src/generators/config-schema/generator.ts
15
15
  import { formatFiles, writeJson } from "@nx/devkit";
16
- import { zodToJsonSchema } from "zod-to-json-schema";
16
+ import * as z from "zod/v4";
17
17
  async function configSchemaGeneratorFn(tree, options, config) {
18
18
  writeInfo(
19
19
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
@@ -23,13 +23,16 @@ async function configSchemaGeneratorFn(tree, options, config) {
23
23
  `Determining the Storm Workspace Configuration JSON Schema...`,
24
24
  config
25
25
  );
26
- const jsonSchema = zodToJsonSchema(stormWorkspaceConfigSchema, {
27
- name: "StormWorkspaceConfiguration"
28
- });
26
+ const jsonSchema = z.toJSONSchema(stormWorkspaceConfigSchema);
29
27
  writeTrace(jsonSchema, config);
28
+ if (!options.outputFile) {
29
+ throw new Error(
30
+ "The `outputFile` option is required. Please specify the output file path."
31
+ );
32
+ }
30
33
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
31
34
  config?.workspaceRoot ?? findWorkspaceRoot(),
32
- options.outputFile?.startsWith("./") ? "" : "./"
35
+ options.outputFile.startsWith("./") ? "" : "./"
33
36
  );
34
37
  writeTrace(
35
38
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkU3YH5M4Ljs = require('./chunk-U3YH5M4L.js');
4
+ var _chunkVTPEPAEBjs = require('./chunk-VTPEPAEB.js');
5
5
 
6
6
 
7
- var _chunk3OPUS7DMjs = require('./chunk-3OPUS7DM.js');
7
+ var _chunkPS2BJ4LEjs = require('./chunk-PS2BJ4LE.js');
8
8
 
9
9
 
10
10
  var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
@@ -48,7 +48,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
48
48
  description: schema.description,
49
49
  directory: schema.directory
50
50
  };
51
- const options = await _chunkU3YH5M4Ljs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
51
+ const options = await _chunkVTPEPAEBjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
52
52
  const { className, name, propertyName } = _devkit.names.call(void 0,
53
53
  options.projectNames.projectFileName
54
54
  );
@@ -78,11 +78,11 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
78
78
  }
79
79
  }
80
80
  });
81
- await _chunkU3YH5M4Ljs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
81
+ await _chunkVTPEPAEBjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
82
82
  await _devkit.formatFiles.call(void 0, tree);
83
83
  return null;
84
84
  }
85
- var generator_default = _chunk3OPUS7DMjs.withRunGenerator.call(void 0,
85
+ var generator_default = _chunkPS2BJ4LEjs.withRunGenerator.call(void 0,
86
86
  "TypeScript Library Creator (Browser Platform)",
87
87
  browserLibraryGeneratorFn,
88
88
  {
@@ -12,7 +12,7 @@ import {
12
12
  stormWorkspaceConfigSchema,
13
13
  writeTrace,
14
14
  writeWarning
15
- } from "./chunk-6U5L5TSA.mjs";
15
+ } from "./chunk-C7LHUAYC.mjs";
16
16
  import {
17
17
  findWorkspaceRoot
18
18
  } from "./chunk-LSF4BHCI.mjs";
@@ -143,7 +143,13 @@ var getConfigEnv = () => {
143
143
  medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
144
144
  github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
145
145
  },
146
- organization: process.env[`${prefix}ORGANIZATION`] || void 0,
146
+ organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
147
+ name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
148
+ description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
149
+ url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
150
+ logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
151
+ icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
152
+ } : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
147
153
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
148
154
  license: process.env[`${prefix}LICENSE`] || void 0,
149
155
  homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
@@ -350,7 +356,33 @@ var setConfigEnv = (config) => {
350
356
  }
351
357
  }
352
358
  if (config.organization) {
353
- process.env[`${prefix}ORGANIZATION`] = config.organization;
359
+ if (typeof config.organization === "string") {
360
+ process.env[`${prefix}ORG`] = config.organization;
361
+ process.env[`${prefix}ORG_NAME`] = config.organization;
362
+ process.env[`${prefix}ORGANIZATION`] = config.organization;
363
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
364
+ } else {
365
+ process.env[`${prefix}ORG`] = config.organization.name;
366
+ process.env[`${prefix}ORG_NAME`] = config.organization.name;
367
+ process.env[`${prefix}ORGANIZATION`] = config.organization.name;
368
+ process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
369
+ if (config.organization.url) {
370
+ process.env[`${prefix}ORG_URL`] = config.organization.url;
371
+ process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
372
+ }
373
+ if (config.organization.description) {
374
+ process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
375
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
376
+ }
377
+ if (config.organization.logo) {
378
+ process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
379
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
380
+ }
381
+ if (config.organization.icon) {
382
+ process.env[`${prefix}ORG_ICON`] = config.organization.icon;
383
+ process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
384
+ }
385
+ }
354
386
  }
355
387
  if (config.packageManager) {
356
388
  process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
@@ -4,14 +4,14 @@
4
4
  var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
5
5
 
6
6
 
7
- var _chunkXFRYBLPEjs = require('./chunk-XFRYBLPE.js');
7
+ var _chunk6R4A3PB6js = require('./chunk-6R4A3PB6.js');
8
8
 
9
9
  // src/executors/cargo-build/executor.ts
10
10
  async function cargoBuildExecutor(options, context) {
11
11
  const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "build", options, context);
12
12
  return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
13
13
  }
14
- var executor_default = _chunkXFRYBLPEjs.withRunExecutor.call(void 0,
14
+ var executor_default = _chunk6R4A3PB6js.withRunExecutor.call(void 0,
15
15
  "Cargo - Build",
16
16
  cargoBuildExecutor,
17
17
  {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-EK75QNMS.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-Q7ZNED73.mjs";
7
+ } from "./chunk-HMYD5M4B.mjs";
8
8
  import {
9
9
  __dirname
10
10
  } from "./chunk-LPNTTZ7I.mjs";
@@ -106,15 +106,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
106
106
  _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
107
107
  let repository = {
108
108
  type: "github",
109
- url: _optionalChain([config, 'optionalAccess', _ => _.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _2 => _2.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _3 => _3.namespace]) || _optionalChain([config, 'optionalAccess', _4 => _4.name]) || "repository"}.git`
109
+ url: _optionalChain([config, 'optionalAccess', _ => _.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _2 => _2.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _3 => _3.organization]) : _optionalChain([config, 'optionalAccess', _4 => _4.organization, 'optionalAccess', _5 => _5.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _6 => _6.namespace]) || _optionalChain([config, 'optionalAccess', _7 => _7.name]) || "repository"}.git`
110
110
  };
111
111
  let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
112
112
  if (tree.exists("package.json")) {
113
113
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
114
- if (_optionalChain([packageJson, 'optionalAccess', _5 => _5.repository])) {
114
+ if (_optionalChain([packageJson, 'optionalAccess', _8 => _8.repository])) {
115
115
  repository = packageJson.repository;
116
116
  }
117
- if (_optionalChain([packageJson, 'optionalAccess', _6 => _6.description])) {
117
+ if (_optionalChain([packageJson, 'optionalAccess', _9 => _9.description])) {
118
118
  description = packageJson.description;
119
119
  }
120
120
  }
@@ -169,9 +169,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
169
169
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
170
170
  ...json,
171
171
  pnpm: {
172
- ..._optionalChain([json, 'optionalAccess', _7 => _7.pnpm]),
172
+ ..._optionalChain([json, 'optionalAccess', _10 => _10.pnpm]),
173
173
  overrides: {
174
- ..._optionalChain([json, 'optionalAccess', _8 => _8.pnpm, 'optionalAccess', _9 => _9.overrides]),
174
+ ..._optionalChain([json, 'optionalAccess', _11 => _11.pnpm, 'optionalAccess', _12 => _12.overrides]),
175
175
  [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
176
176
  }
177
177
  }
@@ -189,10 +189,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
189
189
  ]);
190
190
  if (tree.exists("package.json")) {
191
191
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
192
- if (_optionalChain([packageJson, 'optionalAccess', _10 => _10.repository])) {
192
+ if (_optionalChain([packageJson, 'optionalAccess', _13 => _13.repository])) {
193
193
  repository = packageJson.repository;
194
194
  }
195
- if (_optionalChain([packageJson, 'optionalAccess', _11 => _11.description])) {
195
+ if (_optionalChain([packageJson, 'optionalAccess', _14 => _14.description])) {
196
196
  description = packageJson.description;
197
197
  }
198
198
  }
@@ -229,22 +229,22 @@ function getOutputPath(options) {
229
229
  function createProjectTsConfigJson(tree, options) {
230
230
  const tsconfig = {
231
231
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
232
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _12 => _12.tsconfigOptions]), () => ( {})),
232
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _15 => _15.tsconfigOptions]), () => ( {})),
233
233
  compilerOptions: {
234
234
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
235
235
  outDir: _chunk53DNHF7Bjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
236
236
  noEmit: true,
237
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _13 => _13.tsconfigOptions, 'optionalAccess', _14 => _14.compilerOptions]), () => ( {}))
237
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _16 => _16.tsconfigOptions, 'optionalAccess', _17 => _17.compilerOptions]), () => ( {}))
238
238
  },
239
- files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _15 => _15.tsconfigOptions, 'optionalAccess', _16 => _16.files]), () => ( []))],
239
+ files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _18 => _18.tsconfigOptions, 'optionalAccess', _19 => _19.files]), () => ( []))],
240
240
  include: [
241
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _17 => _17.tsconfigOptions, 'optionalAccess', _18 => _18.include]), () => ( [])),
241
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _20 => _20.tsconfigOptions, 'optionalAccess', _21 => _21.include]), () => ( [])),
242
242
  "src/**/*.ts",
243
243
  "src/**/*.js",
244
244
  "bin/**/*"
245
245
  ],
246
246
  exclude: [
247
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _19 => _19.tsconfigOptions, 'optionalAccess', _20 => _20.exclude]), () => ( [])),
247
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _22 => _22.tsconfigOptions, 'optionalAccess', _23 => _23.exclude]), () => ( [])),
248
248
  "jest.config.ts",
249
249
  "src/**/*.spec.ts",
250
250
  "src/**/*.test.ts"
@@ -254,8 +254,8 @@ function createProjectTsConfigJson(tree, options) {
254
254
  }
255
255
  async function normalizeOptions(tree, options, config) {
256
256
  let importPath = options.importPath;
257
- if (!importPath && _optionalChain([config, 'optionalAccess', _21 => _21.namespace])) {
258
- importPath = `@${_optionalChain([config, 'optionalAccess', _22 => _22.namespace])}/${options.name}`;
257
+ if (!importPath && _optionalChain([config, 'optionalAccess', _24 => _24.namespace])) {
258
+ importPath = `@${_optionalChain([config, 'optionalAccess', _25 => _25.namespace])}/${options.name}`;
259
259
  }
260
260
  if (options.publishable) {
261
261
  if (!importPath) {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkXZAVLGX6js = require('./chunk-XZAVLGX6.js');
3
+ var _chunk5TUFRMTOjs = require('./chunk-5TUFRMTO.js');
4
4
 
5
5
  // src/executors/cargo-publish/executor.ts
6
6
  var _devkit = require('@nx/devkit');
@@ -25,7 +25,7 @@ async function runExecutor(options, context) {
25
25
  context.root,
26
26
  options.packageRoot ? options.packageRoot : root
27
27
  );
28
- const cargoToml = _chunkXZAVLGX6js.parseCargoToml.call(void 0,
28
+ const cargoToml = _chunk5TUFRMTOjs.parseCargoToml.call(void 0,
29
29
  _fs.readFileSync.call(void 0, _devkit.joinPathFragments.call(void 0, packageRoot, "Cargo.toml"), "utf-8")
30
30
  );
31
31
  try {
@@ -3,10 +3,10 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkXZAVLGX6js = require('./chunk-XZAVLGX6.js');
6
+ var _chunk5TUFRMTOjs = require('./chunk-5TUFRMTO.js');
7
7
 
8
8
 
9
- var _chunkF6VM55TCjs = require('./chunk-F6VM55TC.js');
9
+ var _chunkN56A46X4js = require('./chunk-N56A46X4.js');
10
10
 
11
11
 
12
12
 
@@ -15,7 +15,7 @@ var _chunkF6VM55TCjs = require('./chunk-F6VM55TC.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkBZLHJMEBjs = require('./chunk-BZLHJMEB.js');
18
+ var _chunkEN5XS3GBjs = require('./chunk-EN5XS3GB.js');
19
19
 
20
20
 
21
21
  var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
@@ -255,19 +255,19 @@ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
255
255
  var _utils = require('nx/src/tasks-runner/utils');
256
256
  var _semver3 = require('semver');
257
257
  async function releaseVersionGeneratorFn(tree, options, config) {
258
- _chunkBZLHJMEBjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
258
+ _chunkEN5XS3GBjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
259
259
 
260
260
  `, config);
261
- const stopwatch = _chunkBZLHJMEBjs.getStopwatch.call(void 0, "Storm Release Version generator");
261
+ const stopwatch = _chunkEN5XS3GBjs.getStopwatch.call(void 0, "Storm Release Version generator");
262
262
  try {
263
263
  const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
264
- _chunkBZLHJMEBjs.writeDebug.call(void 0,
264
+ _chunkEN5XS3GBjs.writeDebug.call(void 0,
265
265
  `Loading the Storm Config from environment variables and storm.config.js file...
266
266
  - workspaceRoot: ${workspaceRoot}`,
267
267
  config
268
268
  );
269
- config = await _chunkF6VM55TCjs.getConfig.call(void 0, workspaceRoot);
270
- _chunkBZLHJMEBjs.writeTrace.call(void 0,
269
+ config = await _chunkN56A46X4js.getConfig.call(void 0, workspaceRoot);
270
+ _chunkEN5XS3GBjs.writeTrace.call(void 0,
271
271
  `Generator schema options \u2699\uFE0F
272
272
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
273
273
  (key) => ![
@@ -348,9 +348,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
348
348
  tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
349
349
  );
350
350
  const log = (msg) => {
351
- _chunkBZLHJMEBjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
351
+ _chunkEN5XS3GBjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
352
352
  };
353
- _chunkBZLHJMEBjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
353
+ _chunkEN5XS3GBjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
354
354
  let packageName;
355
355
  let currentVersionFromDisk;
356
356
  if (tree.exists(packageJsonPath)) {
@@ -361,7 +361,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
361
361
  packageName = projectPackageJson.name;
362
362
  currentVersionFromDisk = projectPackageJson.version;
363
363
  } else if (tree.exists(cargoTomlPath)) {
364
- const cargoToml = _chunkXZAVLGX6js.parseCargoToml.call(void 0,
364
+ const cargoToml = _chunk5TUFRMTOjs.parseCargoToml.call(void 0,
365
365
  _optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")])
366
366
  );
367
367
  log(
@@ -632,12 +632,12 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
632
632
  version: newVersion
633
633
  });
634
634
  } else if (tree.exists(cargoTomlPath)) {
635
- const cargoToml = _chunkXZAVLGX6js.parseCargoToml.call(void 0,
635
+ const cargoToml = _chunk5TUFRMTOjs.parseCargoToml.call(void 0,
636
636
  _optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")])
637
637
  );
638
638
  cargoToml.package ??= {};
639
639
  cargoToml.package.version = newVersion;
640
- tree.write(cargoTomlPath, _chunkXZAVLGX6js.stringifyCargoToml.call(void 0, cargoToml));
640
+ tree.write(cargoTomlPath, _chunk5TUFRMTOjs.stringifyCargoToml.call(void 0, cargoToml));
641
641
  }
642
642
  log(
643
643
  `\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`
@@ -685,7 +685,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
685
685
  return json;
686
686
  });
687
687
  } else if (tree.exists(dependentCargoTomlPath)) {
688
- const dependentPkg = _chunkXZAVLGX6js.parseCargoTomlWithTree.call(void 0,
688
+ const dependentPkg = _chunk5TUFRMTOjs.parseCargoTomlWithTree.call(void 0,
689
689
  tree,
690
690
  dependentPackageRoot,
691
691
  dependentProject.source
@@ -727,18 +727,18 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
727
727
  dependentPackageRoot,
728
728
  "Cargo.toml"
729
729
  );
730
- _chunkXZAVLGX6js.modifyCargoTable.call(void 0,
730
+ _chunk5TUFRMTOjs.modifyCargoTable.call(void 0,
731
731
  dependentPkg,
732
732
  dependentProject.dependencyCollection,
733
733
  dependentProject.target,
734
734
  updatedDependencyData
735
735
  );
736
- tree.write(cargoTomlToUpdate, _chunkXZAVLGX6js.stringifyCargoToml.call(void 0, dependentPkg));
736
+ tree.write(cargoTomlToUpdate, _chunk5TUFRMTOjs.stringifyCargoToml.call(void 0, dependentPkg));
737
737
  }
738
738
  }
739
739
  }
740
740
  await _devkit.formatFiles.call(void 0, tree);
741
- _chunkBZLHJMEBjs.writeSuccess.call(void 0,
741
+ _chunkEN5XS3GBjs.writeSuccess.call(void 0,
742
742
  `Completed running the Storm Release Version generator!
743
743
  `,
744
744
  config
@@ -777,11 +777,11 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
777
777
  }
778
778
  };
779
779
  } catch (error) {
780
- _chunkBZLHJMEBjs.writeFatal.call(void 0,
780
+ _chunkEN5XS3GBjs.writeFatal.call(void 0,
781
781
  "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
782
782
  config
783
783
  );
784
- _chunkBZLHJMEBjs.writeError.call(void 0,
784
+ _chunkEN5XS3GBjs.writeError.call(void 0,
785
785
  `An exception was thrown in the Storm Release Version generator's process
786
786
  - Details: ${error.message}
787
787
  - Stacktrace: ${error.stack}`,
@@ -880,7 +880,7 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
880
880
  `The project "${dep.target}" does not have a packageRoot available.`
881
881
  );
882
882
  }
883
- const cargoToml = _chunkXZAVLGX6js.parseCargoTomlWithTree.call(void 0,
883
+ const cargoToml = _chunk5TUFRMTOjs.parseCargoTomlWithTree.call(void 0,
884
884
  tree,
885
885
  resolvePackageRoot(projectNode),
886
886
  projectNode.name
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-NMDGWPQQ.mjs";
3
+ } from "./chunk-ZMH42O44.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-6U5L5TSA.mjs";
6
+ } from "./chunk-C7LHUAYC.mjs";
7
7
 
8
8
  // src/executors/size-limit/executor.ts
9
9
  import { joinPathFragments } from "@nx/devkit";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-6LP3KKXE.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-NMDGWPQQ.mjs";
7
+ } from "./chunk-ZMH42O44.mjs";
8
8
 
9
9
  // src/executors/cargo-check/executor.ts
10
10
  async function cargoCheckExecutor(options, context) {