@storm-software/workspace-tools 1.293.7 → 1.293.9

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 (117) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-MFRKH3QL.mjs → chunk-2GUYRQCA.mjs} +1 -1
  4. package/dist/{chunk-DBNK7FLL.mjs → chunk-2VEN4MMJ.mjs} +3 -3
  5. package/dist/{chunk-WS5PLNBP.mjs → chunk-4KQTW4FB.mjs} +2 -2
  6. package/dist/{chunk-BOC6RTAX.js → chunk-5BBCJ72W.js} +2 -2
  7. package/dist/{chunk-RZDOMICP.js → chunk-5ZQEH4AG.js} +2 -2
  8. package/dist/{chunk-T3WEFC55.mjs → chunk-67LH5YAE.mjs} +1 -1
  9. package/dist/{chunk-RWARFCNL.js → chunk-6BB3BLHX.js} +2 -2
  10. package/dist/{chunk-TAG2PULI.js → chunk-6RKBHVR3.js} +2 -2
  11. package/dist/{chunk-VF2LXW3B.js → chunk-757MUDEM.js} +2 -2
  12. package/dist/{chunk-UETG5X2Z.mjs → chunk-7CHKD6ZU.mjs} +2 -2
  13. package/dist/{chunk-YJT4F4GN.mjs → chunk-7CYRZRSQ.mjs} +2 -2
  14. package/dist/{chunk-XLZWHFV7.mjs → chunk-ATKAEDYS.mjs} +2 -2
  15. package/dist/{chunk-ZGMVPA2H.mjs → chunk-B55Y32GD.mjs} +1 -1
  16. package/dist/{chunk-4ROGNJIP.js → chunk-B5D7HVM5.js} +10 -10
  17. package/dist/{chunk-P2QPOCDL.mjs → chunk-BJENCV34.mjs} +2 -2
  18. package/dist/{chunk-6IHCTXPW.mjs → chunk-CCRGF4HZ.mjs} +1 -1
  19. package/dist/{chunk-6XDX3W4C.js → chunk-CPSHI6D5.js} +2 -2
  20. package/dist/{chunk-IT3RQADI.mjs → chunk-D4PVJWPB.mjs} +4 -4
  21. package/dist/{chunk-RYUO22WK.js → chunk-DRNL76FW.js} +30 -30
  22. package/dist/{chunk-ROI6N5XU.js → chunk-FZJRO253.js} +2 -2
  23. package/dist/{chunk-MF2R2GZF.js → chunk-G7AQBWV3.js} +4 -4
  24. package/dist/{chunk-RGRRXFFX.js → chunk-HEKFNBVI.js} +11 -11
  25. package/dist/{chunk-DUHZQGVB.js → chunk-I2JFJ4ZH.js} +5 -5
  26. package/dist/{chunk-5EA2N2AH.js → chunk-KKB2SNCA.js} +34 -34
  27. package/dist/{chunk-KFRGKGAD.mjs → chunk-KVKXRWJA.mjs} +2 -2
  28. package/dist/{chunk-TYJZD5KJ.js → chunk-LBJYCV7W.js} +6 -6
  29. package/dist/{chunk-6F75AWBB.mjs → chunk-LKNGNLWN.mjs} +1 -1
  30. package/dist/{chunk-UKKUUGK5.mjs → chunk-LMF76PTK.mjs} +1 -1
  31. package/dist/{chunk-BELCG4XM.mjs → chunk-LV2NZ7T5.mjs} +2 -2
  32. package/dist/{chunk-ZOUMLMH4.js → chunk-MJRZ6IWM.js} +5 -5
  33. package/dist/{chunk-VGWI2FQE.mjs → chunk-NCYSWFWT.mjs} +1 -1
  34. package/dist/{chunk-HD4WVBQR.js → chunk-NIRVJWD5.js} +2 -2
  35. package/dist/{chunk-V44DYGWX.mjs → chunk-NRPYQWQ4.mjs} +5 -5
  36. package/dist/{chunk-DUZOZEUA.mjs → chunk-NY4RZDUG.mjs} +1 -1
  37. package/dist/{chunk-X2SLQ73Q.mjs → chunk-OEHQ4P7L.mjs} +1 -1
  38. package/dist/{chunk-VGXI3J3C.js → chunk-OJQ53OAY.js} +12 -12
  39. package/dist/{chunk-NQOA6WGC.mjs → chunk-PAEBBUY2.mjs} +1 -1
  40. package/dist/{chunk-L7OQTUBA.js → chunk-QBYA4DKC.js} +20 -20
  41. package/dist/{chunk-MTQNI5FG.mjs → chunk-QJT63C5Y.mjs} +1 -1
  42. package/dist/{chunk-O5JT5GOM.js → chunk-RAM72W3S.js} +2 -2
  43. package/dist/{chunk-RVGLZSRS.js → chunk-RRP2E72K.js} +2 -2
  44. package/dist/{chunk-GIVVWGKW.mjs → chunk-SNK67SOJ.mjs} +1 -1
  45. package/dist/{chunk-2HWYXG2K.js → chunk-TLSJE3BM.js} +16 -16
  46. package/dist/{chunk-H4EFSMAS.mjs → chunk-TRWY2MHH.mjs} +1 -1
  47. package/dist/{chunk-EGVBKE43.js → chunk-U45J52OH.js} +2 -2
  48. package/dist/{chunk-Y25P6YPV.mjs → chunk-UNIRLSTQ.mjs} +1 -1
  49. package/dist/{chunk-YOM5ZK63.mjs → chunk-UXTEMU3E.mjs} +4 -4
  50. package/dist/{chunk-L5WX3FSM.js → chunk-VSIOTWZ3.js} +2 -2
  51. package/dist/{chunk-OGE2WFDW.js → chunk-WBBERMCB.js} +2 -2
  52. package/dist/{chunk-L6LJBWJ7.mjs → chunk-XW7KSJT6.mjs} +1 -1
  53. package/dist/{chunk-JWFGGMYQ.js → chunk-YTYMBCNN.js} +2 -2
  54. package/dist/{chunk-OF7BAS3P.js → chunk-ZBZLFUGZ.js} +4 -4
  55. package/dist/{chunk-KSUWYBUX.mjs → chunk-ZUJRNOCS.mjs} +1 -1
  56. package/dist/{chunk-2CDSXWFA.js → chunk-ZWF65Q7E.js} +6 -6
  57. package/dist/executors.js +20 -20
  58. package/dist/executors.mjs +19 -19
  59. package/dist/generators.js +9 -9
  60. package/dist/generators.mjs +8 -8
  61. package/dist/index.js +28 -28
  62. package/dist/index.mjs +27 -27
  63. package/dist/src/base/base-executor.js +4 -4
  64. package/dist/src/base/base-executor.mjs +3 -3
  65. package/dist/src/base/base-generator.js +4 -4
  66. package/dist/src/base/base-generator.mjs +3 -3
  67. package/dist/src/base/index.js +5 -5
  68. package/dist/src/base/index.mjs +4 -4
  69. package/dist/src/executors/cargo-build/executor.js +5 -5
  70. package/dist/src/executors/cargo-build/executor.mjs +4 -4
  71. package/dist/src/executors/cargo-check/executor.js +5 -5
  72. package/dist/src/executors/cargo-check/executor.mjs +4 -4
  73. package/dist/src/executors/cargo-clippy/executor.js +5 -5
  74. package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
  75. package/dist/src/executors/cargo-doc/executor.js +5 -5
  76. package/dist/src/executors/cargo-doc/executor.mjs +4 -4
  77. package/dist/src/executors/cargo-format/executor.js +5 -5
  78. package/dist/src/executors/cargo-format/executor.mjs +4 -4
  79. package/dist/src/executors/cargo-publish/executor.js +4 -4
  80. package/dist/src/executors/cargo-publish/executor.mjs +3 -3
  81. package/dist/src/executors/clean-package/executor.js +6 -6
  82. package/dist/src/executors/clean-package/executor.mjs +3 -3
  83. package/dist/src/executors/esbuild/executor.js +6 -6
  84. package/dist/src/executors/esbuild/executor.mjs +5 -5
  85. package/dist/src/executors/napi/executor.js +5 -5
  86. package/dist/src/executors/napi/executor.mjs +4 -4
  87. package/dist/src/executors/npm-publish/executor.js +6 -6
  88. package/dist/src/executors/npm-publish/executor.mjs +5 -5
  89. package/dist/src/executors/size-limit/executor.js +5 -5
  90. package/dist/src/executors/size-limit/executor.mjs +4 -4
  91. package/dist/src/executors/tsdown/executor.js +6 -6
  92. package/dist/src/executors/tsdown/executor.mjs +5 -5
  93. package/dist/src/executors/typia/executor.js +5 -5
  94. package/dist/src/executors/typia/executor.mjs +4 -4
  95. package/dist/src/executors/unbuild/executor.js +5 -5
  96. package/dist/src/executors/unbuild/executor.mjs +4 -4
  97. package/dist/src/generators/browser-library/generator.js +5 -5
  98. package/dist/src/generators/browser-library/generator.mjs +4 -4
  99. package/dist/src/generators/config-schema/generator.js +5 -5
  100. package/dist/src/generators/config-schema/generator.mjs +4 -4
  101. package/dist/src/generators/neutral-library/generator.js +5 -5
  102. package/dist/src/generators/neutral-library/generator.mjs +4 -4
  103. package/dist/src/generators/node-library/generator.js +5 -5
  104. package/dist/src/generators/node-library/generator.mjs +4 -4
  105. package/dist/src/generators/preset/generator.js +5 -5
  106. package/dist/src/generators/preset/generator.mjs +4 -4
  107. package/dist/src/release/index.js +6 -6
  108. package/dist/src/release/index.mjs +5 -5
  109. package/dist/src/release/js-version-actions.js +4 -4
  110. package/dist/src/release/js-version-actions.mjs +3 -3
  111. package/dist/src/release/rust-version-actions.js +5 -5
  112. package/dist/src/release/rust-version-actions.mjs +4 -4
  113. package/dist/src/utils/index.js +4 -4
  114. package/dist/src/utils/index.mjs +3 -3
  115. package/dist/src/utils/package-helpers.js +4 -4
  116. package/dist/src/utils/package-helpers.mjs +3 -3
  117. package/package.json +8 -8
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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 _chunkTAG2PULIjs = require('./chunk-TAG2PULI.js');
3
+ var _chunk6RKBHVR3js = require('./chunk-6RKBHVR3.js');
4
4
 
5
5
 
6
- var _chunk4ROGNJIPjs = require('./chunk-4ROGNJIP.js');
6
+ var _chunkB5D7HVM5js = require('./chunk-B5D7HVM5.js');
7
7
 
8
8
 
9
9
  var _chunk322ASCCNjs = require('./chunk-322ASCCN.js');
@@ -35,7 +35,7 @@ async function getNpmRegistry() {
35
35
  if (process.env.STORM_REGISTRY_NPM) {
36
36
  return process.env.STORM_REGISTRY_NPM;
37
37
  }
38
- const workspaceConfig = await _chunk4ROGNJIPjs.getConfig.call(void 0, );
38
+ const workspaceConfig = await _chunkB5D7HVM5js.getConfig.call(void 0, );
39
39
  if (_optionalChain([workspaceConfig, 'optionalAccess', _ => _.registry, 'optionalAccess', _2 => _2.npm])) {
40
40
  return _optionalChain([workspaceConfig, 'optionalAccess', _3 => _3.registry, 'optionalAccess', _4 => _4.npm]);
41
41
  }
@@ -315,7 +315,7 @@ async function npmPublishExecutorFn(options, context) {
315
315
  return { success: true };
316
316
  }
317
317
  await replaceDepsAliases(packageRoot, context.root);
318
- await _chunkTAG2PULIjs.addPackageJsonGitHead.call(void 0, packageRoot);
318
+ await _chunk6RKBHVR3js.addPackageJsonGitHead.call(void 0, packageRoot);
319
319
  const npmPublishCommandSegments = [`npm publish --json`];
320
320
  const npmViewCommandSegments = [
321
321
  `npm view ${packageName} versions dist-tags --json`
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunk2HWYXG2Kjs = require('./chunk-2HWYXG2K.js');
3
+ var _chunkTLSJE3BMjs = require('./chunk-TLSJE3BM.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk4ROGNJIPjs = require('./chunk-4ROGNJIP.js');
7
+ var _chunkB5D7HVM5js = require('./chunk-B5D7HVM5.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
12
+ var _chunkZWF65Q7Ejs = require('./chunk-ZWF65Q7E.js');
13
13
 
14
14
 
15
15
  var _chunk322ASCCNjs = require('./chunk-322ASCCN.js');
@@ -18,22 +18,22 @@ var _chunk322ASCCNjs = require('./chunk-322ASCCN.js');
18
18
  var _devkit = require('@nx/devkit');
19
19
  var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
20
20
  async function configSchemaGeneratorFn(tree, options, config) {
21
- _chunk2CDSXWFAjs.writeInfo.call(void 0,
21
+ _chunkZWF65Q7Ejs.writeInfo.call(void 0,
22
22
  "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
23
23
  config
24
24
  );
25
- _chunk2CDSXWFAjs.writeTrace.call(void 0,
25
+ _chunkZWF65Q7Ejs.writeTrace.call(void 0,
26
26
  `Determining the Storm Workspace Configuration JSON Schema...`,
27
27
  config
28
28
  );
29
- const jsonSchema = z.toJSONSchema(_chunk4ROGNJIPjs.workspaceConfigSchema, {
29
+ const jsonSchema = z.toJSONSchema(_chunkB5D7HVM5js.workspaceConfigSchema, {
30
30
  target: "draft-7",
31
- metadata: _chunk4ROGNJIPjs.schemaRegistry
31
+ metadata: _chunkB5D7HVM5js.schemaRegistry
32
32
  });
33
33
  jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
34
34
  jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
35
35
  jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
36
- _chunk2CDSXWFAjs.writeTrace.call(void 0, jsonSchema, config);
36
+ _chunkZWF65Q7Ejs.writeTrace.call(void 0, jsonSchema, config);
37
37
  if (!options.outputFile) {
38
38
  throw new Error(
39
39
  "The `outputFile` option is required. Please specify the output file path."
@@ -43,13 +43,13 @@ async function configSchemaGeneratorFn(tree, options, config) {
43
43
  _nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk322ASCCNjs.findWorkspaceRoot.call(void 0, ))),
44
44
  options.outputFile.startsWith("./") ? "" : "./"
45
45
  );
46
- _chunk2CDSXWFAjs.writeTrace.call(void 0,
46
+ _chunkZWF65Q7Ejs.writeTrace.call(void 0,
47
47
  `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
48
48
  config
49
49
  );
50
50
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
51
51
  await _devkit.formatFiles.call(void 0, tree);
52
- _chunk2CDSXWFAjs.writeSuccess.call(void 0,
52
+ _chunkZWF65Q7Ejs.writeSuccess.call(void 0,
53
53
  "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
54
54
  config
55
55
  );
@@ -57,7 +57,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
57
57
  success: true
58
58
  };
59
59
  }
60
- var generator_default = _chunk2HWYXG2Kjs.withRunGenerator.call(void 0,
60
+ var generator_default = _chunkTLSJE3BMjs.withRunGenerator.call(void 0,
61
61
  "Configuration Schema Creator",
62
62
  configSchemaGeneratorFn,
63
63
  {
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkL7OQTUBAjs = require('./chunk-L7OQTUBA.js');
3
+ var _chunkQBYA4DKCjs = require('./chunk-QBYA4DKC.js');
4
4
 
5
5
 
6
- var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
6
+ var _chunkZWF65Q7Ejs = require('./chunk-ZWF65Q7E.js');
7
7
 
8
8
  // src/executors/typia/executor.ts
9
9
  var _fsextra = require('fs-extra');
10
10
  var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
11
11
  async function typiaExecutorFn(options, _, config) {
12
12
  if (options.clean !== false) {
13
- _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
13
+ _chunkZWF65Q7Ejs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
14
14
  _fsextra.removeSync.call(void 0, options.outputPath);
15
15
  }
16
16
  await Promise.all(
17
17
  options.entry.map((entry) => {
18
- _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
18
+ _chunkZWF65Q7Ejs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
19
19
  return _TypiaProgrammerjs.TypiaProgrammer.build({
20
20
  input: entry,
21
21
  output: options.outputPath,
@@ -27,7 +27,7 @@ async function typiaExecutorFn(options, _, config) {
27
27
  success: true
28
28
  };
29
29
  }
30
- var executor_default = _chunkL7OQTUBAjs.withRunExecutor.call(void 0,
30
+ var executor_default = _chunkQBYA4DKCjs.withRunExecutor.call(void 0,
31
31
  "Typia runtime validation generator",
32
32
  typiaExecutorFn,
33
33
  {
@@ -4,13 +4,13 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkTYJZD5KJjs = require('./chunk-TYJZD5KJ.js');
7
+ var _chunkLBJYCV7Wjs = require('./chunk-LBJYCV7W.js');
8
8
 
9
9
 
10
- var _chunkL7OQTUBAjs = require('./chunk-L7OQTUBA.js');
10
+ var _chunkQBYA4DKCjs = require('./chunk-QBYA4DKC.js');
11
11
 
12
12
 
13
- var _chunk4ROGNJIPjs = require('./chunk-4ROGNJIP.js');
13
+ var _chunkB5D7HVM5js = require('./chunk-B5D7HVM5.js');
14
14
 
15
15
 
16
16
 
@@ -20,7 +20,7 @@ var _chunk4ROGNJIPjs = require('./chunk-4ROGNJIP.js');
20
20
 
21
21
 
22
22
 
23
- var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
23
+ var _chunkZWF65Q7Ejs = require('./chunk-ZWF65Q7E.js');
24
24
 
25
25
 
26
26
  var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
@@ -28,12 +28,12 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
28
28
  // ../esbuild/src/assets.ts
29
29
  async function copyBuildAssets(context) {
30
30
  if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
31
- _chunk2CDSXWFAjs.writeDebug.call(void 0,
31
+ _chunkZWF65Q7Ejs.writeDebug.call(void 0,
32
32
  ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
33
33
  context.workspaceConfig
34
34
  );
35
- const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
36
- await _chunkTYJZD5KJjs.copyAssets.call(void 0,
35
+ const stopwatch = _chunkZWF65Q7Ejs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
36
+ await _chunkLBJYCV7Wjs.copyAssets.call(void 0,
37
37
  context.workspaceConfig,
38
38
  _nullishCoalesce(context.options.assets, () => ( [])),
39
39
  context.outputPath,
@@ -101,8 +101,8 @@ var DEFAULT_BUILD_OPTIONS = {
101
101
  ".woff2": "file"
102
102
  },
103
103
  banner: {
104
- js: _chunkTYJZD5KJjs.DEFAULT_COMPILED_BANNER,
105
- css: _chunkTYJZD5KJjs.DEFAULT_COMPILED_BANNER
104
+ js: _chunkLBJYCV7Wjs.DEFAULT_COMPILED_BANNER,
105
+ css: _chunkLBJYCV7Wjs.DEFAULT_COMPILED_BANNER
106
106
  }
107
107
  };
108
108
 
@@ -113,11 +113,11 @@ async function resolveContext(userOptions) {
113
113
  if (!workspaceRoot) {
114
114
  throw new Error("Cannot find Nx workspace root");
115
115
  }
116
- const workspaceConfig = await _chunk4ROGNJIPjs.getWorkspaceConfig.call(void 0, true, {
116
+ const workspaceConfig = await _chunkB5D7HVM5js.getWorkspaceConfig.call(void 0, true, {
117
117
  workspaceRoot: workspaceRoot.dir
118
118
  });
119
- _chunk2CDSXWFAjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
120
- const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Build options resolution");
119
+ _chunkZWF65Q7Ejs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
120
+ const stopwatch = _chunkZWF65Q7Ejs.getStopwatch.call(void 0, "Build options resolution");
121
121
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
122
122
  exitOnError: true
123
123
  });
@@ -148,7 +148,7 @@ async function resolveContext(userOptions) {
148
148
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
149
149
  throw new Error("Cannot find package.json configuration");
150
150
  }
151
- const env = _chunkTYJZD5KJjs.getEnv.call(void 0, "esbuild", options);
151
+ const env = _chunkLBJYCV7Wjs.getEnv.call(void 0, "esbuild", options);
152
152
  const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
153
153
  const resolvedOptions = {
154
154
  ...options,
@@ -187,10 +187,10 @@ async function resolveContext(userOptions) {
187
187
  };
188
188
  context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
189
189
  if (context.options.verbose) {
190
- _chunk2CDSXWFAjs.writeDebug.call(void 0,
190
+ _chunkZWF65Q7Ejs.writeDebug.call(void 0,
191
191
  ` \u2699\uFE0F Build options resolved:
192
192
 
193
- ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, context.options)}`,
193
+ ${_chunkZWF65Q7Ejs.formatLogMessage.call(void 0, context.options)}`,
194
194
  workspaceConfig
195
195
  );
196
196
  }
@@ -203,8 +203,8 @@ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, context.options)}`,
203
203
 
204
204
  async function generatePackageJson(context) {
205
205
  if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
206
- _chunk2CDSXWFAjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
207
- const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Write package.json file");
206
+ _chunkZWF65Q7Ejs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
207
+ const stopwatch = _chunkZWF65Q7Ejs.getStopwatch.call(void 0, "Write package.json file");
208
208
  const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
209
209
  context.options.projectRoot,
210
210
  "project.json"
@@ -224,13 +224,13 @@ async function generatePackageJson(context) {
224
224
  if (!packageJson) {
225
225
  throw new Error("Cannot find package.json configuration file");
226
226
  }
227
- packageJson = await _chunkTYJZD5KJjs.addPackageDependencies.call(void 0,
227
+ packageJson = await _chunkLBJYCV7Wjs.addPackageDependencies.call(void 0,
228
228
  context.workspaceConfig.workspaceRoot,
229
229
  context.options.projectRoot,
230
230
  context.projectName,
231
231
  packageJson
232
232
  );
233
- packageJson = await _chunkTYJZD5KJjs.addWorkspacePackageJsonFields.call(void 0,
233
+ packageJson = await _chunkLBJYCV7Wjs.addWorkspacePackageJsonFields.call(void 0,
234
234
  context.workspaceConfig,
235
235
  context.options.projectRoot,
236
236
  context.sourceRoot,
@@ -331,12 +331,12 @@ async function generatePackageJson(context) {
331
331
  var _tsup = require('tsup');
332
332
  async function build(options) {
333
333
  if (!options.silent) {
334
- _chunk2CDSXWFAjs.writeDebug.call(void 0,
334
+ _chunkZWF65Q7Ejs.writeDebug.call(void 0,
335
335
  ` \u{1F680} Running ${options.name || "tsup"} build`,
336
336
  options.workspaceConfig
337
337
  );
338
338
  }
339
- const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
339
+ const stopwatch = _chunkZWF65Q7Ejs.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
340
340
  await _tsup.build.call(void 0, options);
341
341
  if (!options.silent) {
342
342
  stopwatch();
@@ -345,11 +345,11 @@ async function build(options) {
345
345
 
346
346
  // ../esbuild/src/tsup.ts
347
347
  async function executeTsup(context) {
348
- _chunk2CDSXWFAjs.writeDebug.call(void 0,
348
+ _chunkZWF65Q7Ejs.writeDebug.call(void 0,
349
349
  ` \u{1F680} Running ${context.options.name} build`,
350
350
  context.workspaceConfig
351
351
  );
352
- const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${context.options.name} build`);
352
+ const stopwatch = _chunkZWF65Q7Ejs.getStopwatch.call(void 0, `${context.options.name} build`);
353
353
  await build({
354
354
  ...context.options,
355
355
  outDir: context.options.distDir ? _chunkCQDBLKPFjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
@@ -363,17 +363,17 @@ async function executeTsup(context) {
363
363
  async function reportResults(context) {
364
364
  if (_optionalChain([context, 'access', _9 => _9.result, 'optionalAccess', _10 => _10.errors, 'access', _11 => _11.length]) === 0) {
365
365
  if (context.result.warnings.length > 0) {
366
- _chunk2CDSXWFAjs.writeWarning.call(void 0,
366
+ _chunkZWF65Q7Ejs.writeWarning.call(void 0,
367
367
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
368
368
  context.workspaceConfig
369
369
  );
370
370
  }
371
- _chunk2CDSXWFAjs.writeSuccess.call(void 0,
371
+ _chunkZWF65Q7Ejs.writeSuccess.call(void 0,
372
372
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
373
373
  context.workspaceConfig
374
374
  );
375
375
  } else if (_optionalChain([context, 'access', _12 => _12.result, 'optionalAccess', _13 => _13.errors]) && _optionalChain([context, 'access', _14 => _14.result, 'optionalAccess', _15 => _15.errors, 'access', _16 => _16.length]) > 0) {
376
- _chunk2CDSXWFAjs.writeError.call(void 0,
376
+ _chunkZWF65Q7Ejs.writeError.call(void 0,
377
377
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
378
378
  context.workspaceConfig
379
379
  );
@@ -384,19 +384,19 @@ async function reportResults(context) {
384
384
  }
385
385
  async function cleanOutputPath(context) {
386
386
  if (context.clean !== false && context.outputPath) {
387
- _chunk2CDSXWFAjs.writeDebug.call(void 0,
387
+ _chunkZWF65Q7Ejs.writeDebug.call(void 0,
388
388
  ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
389
389
  context.workspaceConfig
390
390
  );
391
- const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
391
+ const stopwatch = _chunkZWF65Q7Ejs.getStopwatch.call(void 0, `${context.options.name} output clean`);
392
392
  await cleanDirectories(context.outputPath);
393
393
  stopwatch();
394
394
  }
395
395
  return context;
396
396
  }
397
397
  async function build2(options) {
398
- _chunk2CDSXWFAjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
399
- const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "ESBuild pipeline");
398
+ _chunkZWF65Q7Ejs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
399
+ const stopwatch = _chunkZWF65Q7Ejs.getStopwatch.call(void 0, "ESBuild pipeline");
400
400
  try {
401
401
  const opts = Array.isArray(options) ? options : [options];
402
402
  if (opts.length === 0) {
@@ -411,9 +411,9 @@ async function build2(options) {
411
411
  executeTsup(context)
412
412
  ]);
413
413
  await reportResults(context);
414
- _chunk2CDSXWFAjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
414
+ _chunkZWF65Q7Ejs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
415
415
  } catch (error) {
416
- _chunk2CDSXWFAjs.writeFatal.call(void 0,
416
+ _chunkZWF65Q7Ejs.writeFatal.call(void 0,
417
417
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
418
418
  );
419
419
  throw error;
@@ -424,7 +424,7 @@ async function build2(options) {
424
424
 
425
425
  // src/executors/esbuild/executor.ts
426
426
  async function esbuildExecutorFn(options, context, config) {
427
- _chunk2CDSXWFAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
427
+ _chunkZWF65Q7Ejs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
428
428
  if (!_optionalChain([context, 'access', _17 => _17.projectsConfigurations, 'optionalAccess', _18 => _18.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _19 => _19.projectsConfigurations, 'access', _20 => _20.projects, 'access', _21 => _21[context.projectName], 'optionalAccess', _22 => _22.root])) {
429
429
  throw new Error(
430
430
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -445,7 +445,7 @@ async function esbuildExecutorFn(options, context, config) {
445
445
  success: true
446
446
  };
447
447
  }
448
- var executor_default = _chunkL7OQTUBAjs.withRunExecutor.call(void 0,
448
+ var executor_default = _chunkQBYA4DKCjs.withRunExecutor.call(void 0,
449
449
  "Storm ESBuild build",
450
450
  esbuildExecutorFn,
451
451
  {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-XLZWHFV7.mjs";
3
+ } from "./chunk-ATKAEDYS.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-V44DYGWX.mjs";
6
+ } from "./chunk-NRPYQWQ4.mjs";
7
7
 
8
8
  // src/executors/typia/executor.ts
9
9
  import { removeSync } from "fs-extra";
@@ -1,7 +1,7 @@
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
3
 
4
- var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
4
+ var _chunkZWF65Q7Ejs = require('./chunk-ZWF65Q7E.js');
5
5
 
6
6
 
7
7
  var _chunk322ASCCNjs = require('./chunk-322ASCCN.js');
@@ -50,7 +50,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
50
50
  output: "src/"
51
51
  });
52
52
  }
53
- _chunk2CDSXWFAjs.writeTrace.call(void 0,
53
+ _chunkZWF65Q7Ejs.writeTrace.call(void 0,
54
54
  `\u{1F4DD} Copying the following assets to the output directory:
55
55
  ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkCQDBLKPFjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
56
56
  config
@@ -62,9 +62,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
62
62
  assets: pendingAssets
63
63
  });
64
64
  await assetHandler.processAllAssetsOnce();
65
- _chunk2CDSXWFAjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
65
+ _chunkZWF65Q7Ejs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
66
66
  if (includeSrc === true) {
67
- _chunk2CDSXWFAjs.writeDebug.call(void 0,
67
+ _chunkZWF65Q7Ejs.writeDebug.call(void 0,
68
68
  `\u{1F4DD} Adding banner and writing source files: ${_chunkCQDBLKPFjs.joinPaths.call(void 0,
69
69
  outputPath,
70
70
  "src"
@@ -148,7 +148,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
148
148
  }
149
149
  }
150
150
  if (localPackages.length > 0) {
151
- _chunk2CDSXWFAjs.writeTrace.call(void 0,
151
+ _chunkZWF65Q7Ejs.writeTrace.call(void 0,
152
152
  `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
153
153
  );
154
154
  const projectJsonFile = await _promises.readFile.call(void 0,
@@ -196,7 +196,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
196
196
  return ret;
197
197
  }, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
198
198
  } else {
199
- _chunk2CDSXWFAjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
199
+ _chunkZWF65Q7Ejs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
200
200
  }
201
201
  return packageJson;
202
202
  };
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-QC5ON3X4.mjs";
8
8
  import {
9
9
  withRunGenerator
10
- } from "./chunk-WS5PLNBP.mjs";
10
+ } from "./chunk-4KQTW4FB.mjs";
11
11
  import {
12
12
  joinPaths
13
13
  } from "./chunk-TBW5MCN6.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZTN2676G.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-XLZWHFV7.mjs";
7
+ } from "./chunk-ATKAEDYS.mjs";
8
8
 
9
9
  // src/executors/cargo-check/executor.ts
10
10
  async function cargoCheckExecutor(options, context) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-XLZWHFV7.mjs";
3
+ } from "./chunk-ATKAEDYS.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-V44DYGWX.mjs";
6
+ } from "./chunk-NRPYQWQ4.mjs";
7
7
 
8
8
  // src/executors/size-limit/executor.ts
9
9
  import { joinPathFragments } from "@nx/devkit";
@@ -1,9 +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 _chunkL7OQTUBAjs = require('./chunk-L7OQTUBA.js');
3
+ var _chunkQBYA4DKCjs = require('./chunk-QBYA4DKC.js');
4
4
 
5
5
 
6
- var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
6
+ var _chunkZWF65Q7Ejs = require('./chunk-ZWF65Q7E.js');
7
7
 
8
8
  // src/executors/size-limit/executor.ts
9
9
  var _devkit = require('@nx/devkit');
@@ -17,14 +17,14 @@ async function sizeLimitExecutorFn(options, context, config) {
17
17
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
18
18
  );
19
19
  }
20
- _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
20
+ _chunkZWF65Q7Ejs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
21
21
  _sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
22
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
23
  _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
24
24
  "src"
25
25
  )))
26
26
  }).then((result) => {
27
- _chunk2CDSXWFAjs.writeInfo.call(void 0,
27
+ _chunkZWF65Q7Ejs.writeInfo.call(void 0,
28
28
  `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
29
29
  config
30
30
  );
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
33
33
  success: true
34
34
  };
35
35
  }
36
- var executor_default = _chunkL7OQTUBAjs.withRunExecutor.call(void 0,
36
+ var executor_default = _chunkQBYA4DKCjs.withRunExecutor.call(void 0,
37
37
  "Size-Limit Performance Test Executor",
38
38
  sizeLimitExecutorFn,
39
39
  {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-3UGFRM4O.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-WS5PLNBP.mjs";
7
+ } from "./chunk-4KQTW4FB.mjs";
8
8
  import {
9
9
  joinPaths
10
10
  } from "./chunk-TBW5MCN6.mjs";
@@ -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 _chunkJWFGGMYQjs = require('./chunk-JWFGGMYQ.js');
3
+ var _chunkYTYMBCNNjs = require('./chunk-YTYMBCNN.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 = _chunkJWFGGMYQjs.parseCargoToml.call(void 0,
28
+ const cargoToml = _chunkYTYMBCNNjs.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 {
@@ -1,3 +1,6 @@
1
+ // ../config-tools/src/logger/console.ts
2
+ import { formatDistanceToNowStrict } from "date-fns/formatDistanceToNowStrict";
3
+
1
4
  // ../config-tools/src/types.ts
2
5
  var LogLevel = {
3
6
  SILENT: 0,
@@ -258,14 +261,11 @@ var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(messa
258
261
  var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
259
262
  var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
260
263
  var getStopwatch = (name) => {
261
- const start = process.hrtime();
264
+ const start = /* @__PURE__ */ new Date();
262
265
  return () => {
263
- const end = process.hrtime(start);
264
266
  console.info(
265
267
  `
266
- > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
267
- end[0] * 1e3 + end[1] / 1e6
268
- )}ms to complete
268
+ > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${formatDistanceToNowStrict(start)} to complete
269
269
  `
270
270
  );
271
271
  };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZTN2676G.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-XLZWHFV7.mjs";
7
+ } from "./chunk-ATKAEDYS.mjs";
8
8
 
9
9
  // src/executors/cargo-format/executor.ts
10
10
  async function cargoFormatExecutor(options, context) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-V44DYGWX.mjs";
3
+ } from "./chunk-NRPYQWQ4.mjs";
4
4
 
5
5
  // ../config-tools/src/utilities/toml.ts
6
6
  import TOML from "@ltd/j-toml";