@storm-software/workspace-tools 1.233.0 → 1.233.1

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 (91) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-OCXXIUSC.mjs → chunk-2DNLATEG.mjs} +1 -30
  4. package/dist/{chunk-MA2QNKZ7.js → chunk-2E2DXYRF.js} +2 -2
  5. package/dist/{chunk-LEHZZU32.js → chunk-2NYBFBUU.js} +2 -2
  6. package/dist/{chunk-T5XCHBCB.mjs → chunk-3GQ6H7GF.mjs} +3 -3
  7. package/dist/{chunk-GVBCN2FA.mjs → chunk-4G35AYIJ.mjs} +1 -1
  8. package/dist/{chunk-UPMKBKEN.js → chunk-5Z7CCIIJ.js} +2 -2
  9. package/dist/{chunk-ZMA37UYA.js → chunk-7PETCK66.js} +41 -41
  10. package/dist/{chunk-DM2FMT3G.mjs → chunk-7TEC757Y.mjs} +0 -1
  11. package/dist/{chunk-QA6M5DEJ.js → chunk-A3SB76KG.js} +2 -2
  12. package/dist/{chunk-NHSJQ3KY.mjs → chunk-AKLDSJTD.mjs} +1 -1
  13. package/dist/{chunk-HIBDVUQ5.js → chunk-BANJXE74.js} +2 -2
  14. package/dist/{chunk-5FCVQVIS.mjs → chunk-BARR5D5N.mjs} +1 -1
  15. package/dist/{chunk-5KPWW65X.mjs → chunk-CNX755OY.mjs} +1 -1
  16. package/dist/{chunk-EECNVIFZ.js → chunk-DOQEFB3U.js} +5 -5
  17. package/dist/{chunk-FHRBHQ5D.js → chunk-ENBOBX3C.js} +2 -2
  18. package/dist/{chunk-AX4OFOSN.js → chunk-FE52EM76.js} +8 -37
  19. package/dist/{chunk-VOPIMPWA.js → chunk-FQCHDI2P.js} +11 -11
  20. package/dist/{chunk-OJV4NKCZ.js → chunk-IIMNDUXX.js} +9 -9
  21. package/dist/{chunk-DNUDJEZX.mjs → chunk-IVRCEWW4.mjs} +2 -2
  22. package/dist/{chunk-SZJOJ773.mjs → chunk-KZGWRL4P.mjs} +1 -1
  23. package/dist/{chunk-4EO5ZWLS.js → chunk-MVCUW6FQ.js} +31 -31
  24. package/dist/{chunk-OFSUFHFM.mjs → chunk-N4J73OER.mjs} +2 -2
  25. package/dist/{chunk-ZYC7FHCD.js → chunk-OH2QVCID.js} +5 -5
  26. package/dist/{chunk-A4DWQQ6J.mjs → chunk-PKR4QUWJ.mjs} +1 -1
  27. package/dist/{chunk-OE5KYONM.mjs → chunk-PSMBZ5DR.mjs} +1 -1
  28. package/dist/{chunk-FZ3N3UJ5.mjs → chunk-QQHYWAVX.mjs} +3 -3
  29. package/dist/{chunk-SQHYP2JD.mjs → chunk-THMXFMSK.mjs} +1 -1
  30. package/dist/{chunk-UA7PFIEF.mjs → chunk-UROGF3KF.mjs} +1 -1
  31. package/dist/{chunk-5Q3LI7CF.js → chunk-UW6T77HF.js} +15 -15
  32. package/dist/{chunk-T2CG5RNT.js → chunk-VQMSXER7.js} +2 -2
  33. package/dist/{chunk-QCAF5WDF.mjs → chunk-VVHGKFCB.mjs} +2 -2
  34. package/dist/chunk-VWJEKC3P.mjs +83 -0
  35. package/dist/{chunk-WKYE64AL.mjs → chunk-WWSP3KEN.mjs} +1 -1
  36. package/dist/{chunk-FDI6QWNH.mjs → chunk-XOIDDNCA.mjs} +1 -1
  37. package/dist/chunk-XWYXKDH2.js +83 -0
  38. package/dist/{chunk-L2KYX6WC.js → chunk-Y2LDGJCA.js} +2 -2
  39. package/dist/{chunk-2AQPTJLC.js → chunk-YFIHF222.js} +2 -2
  40. package/dist/{chunk-CDOWHRVE.js → chunk-YO7MVS4A.js} +17 -17
  41. package/dist/{chunk-GRBZKMJI.js → chunk-ZJXBN32W.js} +1 -2
  42. package/dist/{chunk-QTW54PBD.mjs → chunk-ZPQJ7P6C.mjs} +1 -1
  43. package/dist/executors.js +14 -14
  44. package/dist/executors.mjs +13 -13
  45. package/dist/generators.js +9 -9
  46. package/dist/generators.mjs +8 -8
  47. package/dist/index.js +21 -21
  48. package/dist/index.mjs +20 -20
  49. package/dist/src/base/base-executor.js +3 -3
  50. package/dist/src/base/base-executor.mjs +2 -2
  51. package/dist/src/base/base-generator.js +3 -3
  52. package/dist/src/base/base-generator.mjs +2 -2
  53. package/dist/src/base/index.js +4 -4
  54. package/dist/src/base/index.mjs +3 -3
  55. package/dist/src/executors/cargo-build/executor.js +4 -4
  56. package/dist/src/executors/cargo-build/executor.mjs +3 -3
  57. package/dist/src/executors/cargo-check/executor.js +4 -4
  58. package/dist/src/executors/cargo-check/executor.mjs +3 -3
  59. package/dist/src/executors/cargo-clippy/executor.js +4 -4
  60. package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
  61. package/dist/src/executors/cargo-doc/executor.js +4 -4
  62. package/dist/src/executors/cargo-doc/executor.mjs +3 -3
  63. package/dist/src/executors/cargo-format/executor.js +4 -4
  64. package/dist/src/executors/cargo-format/executor.mjs +3 -3
  65. package/dist/src/executors/clean-package/executor.js +5 -5
  66. package/dist/src/executors/clean-package/executor.mjs +2 -2
  67. package/dist/src/executors/esbuild/executor.js +5 -5
  68. package/dist/src/executors/esbuild/executor.mjs +4 -4
  69. package/dist/src/executors/size-limit/executor.js +4 -4
  70. package/dist/src/executors/size-limit/executor.mjs +3 -3
  71. package/dist/src/executors/tsdown/executor.js +5 -5
  72. package/dist/src/executors/tsdown/executor.mjs +4 -4
  73. package/dist/src/executors/typia/executor.js +4 -4
  74. package/dist/src/executors/typia/executor.mjs +3 -3
  75. package/dist/src/executors/unbuild/executor.js +4 -5
  76. package/dist/src/executors/unbuild/executor.mjs +3 -4
  77. package/dist/src/generators/browser-library/generator.js +4 -4
  78. package/dist/src/generators/browser-library/generator.mjs +3 -3
  79. package/dist/src/generators/config-schema/generator.js +4 -4
  80. package/dist/src/generators/config-schema/generator.mjs +3 -3
  81. package/dist/src/generators/neutral-library/generator.js +4 -4
  82. package/dist/src/generators/neutral-library/generator.mjs +3 -3
  83. package/dist/src/generators/node-library/generator.js +4 -4
  84. package/dist/src/generators/node-library/generator.mjs +3 -3
  85. package/dist/src/generators/preset/generator.js +4 -4
  86. package/dist/src/generators/preset/generator.mjs +3 -3
  87. package/dist/src/generators/release-version/generator.js +3 -3
  88. package/dist/src/generators/release-version/generator.mjs +2 -2
  89. package/package.json +5 -4
  90. package/dist/chunk-JHP7QOI4.js +0 -507
  91. package/dist/chunk-TSTK2BD6.mjs +0 -507
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
6
+ var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
7
7
 
8
8
 
9
9
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -38,7 +38,7 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
38
38
  var readNxConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot) => {
39
39
  let rootDir = workspaceRoot;
40
40
  if (!rootDir) {
41
- const config = await _chunkGRBZKMJIjs.loadStormConfig.call(void 0, );
41
+ const config = await _chunkZJXBN32Wjs.loadStormConfig.call(void 0, );
42
42
  rootDir = config.workspaceRoot;
43
43
  }
44
44
  const nxJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, rootDir, "nx.json");
@@ -103,13 +103,13 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
103
103
  projectsConfigurations,
104
104
  nxJsonConfiguration: nxJson,
105
105
  cwd: config.workspaceRoot,
106
- isVerbose: _chunkGRBZKMJIjs.isVerbose.call(void 0, config.logLevel)
106
+ isVerbose: _chunkZJXBN32Wjs.isVerbose.call(void 0, config.logLevel)
107
107
  });
108
108
  if (!result.success) {
109
109
  throw new Error("The Build process failed trying to copy assets");
110
110
  }
111
111
  if (includeSrc === true) {
112
- _chunkGRBZKMJIjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
112
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXCSSYTCUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
113
113
  const files = await _glob.glob.call(void 0, [
114
114
  _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
115
115
  _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
@@ -147,7 +147,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
147
147
  }
148
148
  }
149
149
  if (localPackages.length > 0) {
150
- _chunkGRBZKMJIjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
150
+ _chunkZJXBN32Wjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
151
151
  packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
152
152
  if (!ret[localPackage.name]) {
153
153
  ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
@@ -169,7 +169,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
169
169
  return ret;
170
170
  }, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
171
171
  } else {
172
- _chunkGRBZKMJIjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
172
+ _chunkZJXBN32Wjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
173
173
  }
174
174
  return packageJson;
175
175
  }, "addPackageDependencies");
@@ -238,34 +238,6 @@ var addPackageJsonExport = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0,
238
238
  }
239
239
  };
240
240
  }, "addPackageJsonExport");
241
- var addPackageJsonExports = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (sourceRoot, packageJson) => {
242
- packageJson.exports ??= {};
243
- const files = await new (0, _glob.Glob)("**/*.{ts,tsx}", {
244
- absolute: false,
245
- cwd: sourceRoot,
246
- root: sourceRoot
247
- }).walk();
248
- files.forEach((file) => {
249
- addPackageJsonExport(file, packageJson.type, sourceRoot);
250
- const split = file.split(".");
251
- split.pop();
252
- const entry = split.join(".").replaceAll("\\", "/");
253
- packageJson.exports[`./${entry}`] ??= addPackageJsonExport(entry, packageJson.type, sourceRoot);
254
- });
255
- packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
256
- packageJson.module = packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
257
- packageJson.types = "./dist/index.d.ts";
258
- packageJson.exports ??= {};
259
- packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
260
- if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
261
- ret[key.replace("/index", "")] = packageJson.exports[key];
262
- }
263
- return ret;
264
- }, packageJson.exports);
265
- packageJson.exports["./package.json"] ??= "./package.json";
266
- packageJson.exports["."] = _nullishCoalesce(packageJson.exports["."], () => ( addPackageJsonExport("index", packageJson.type, sourceRoot)));
267
- return packageJson;
268
- }, "addPackageJsonExports");
269
241
 
270
242
  // ../build-tools/src/utilities/get-entry-points.ts
271
243
 
@@ -293,7 +265,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
293
265
  results.push(...files.reduce((ret, filePath) => {
294
266
  const result = _chunkXCSSYTCUjs.correctPaths.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXCSSYTCUjs.correctPaths.call(void 0, projectRoot), ""));
295
267
  if (result) {
296
- _chunkGRBZKMJIjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
268
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXCSSYTCUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
297
269
  if (!results.includes(result)) {
298
270
  results.push(result);
299
271
  }
@@ -369,5 +341,4 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
369
341
 
370
342
 
371
343
 
372
-
373
- exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.addPackageJsonExport = addPackageJsonExport; exports.addPackageJsonExports = addPackageJsonExports; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getOutExtension = getOutExtension;
344
+ exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.addPackageJsonExport = addPackageJsonExport; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getOutExtension = getOutExtension;
@@ -13,7 +13,7 @@ var _chunkZMFVKBRMjs = require('./chunk-ZMFVKBRM.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
16
+ var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
17
17
 
18
18
 
19
19
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -248,16 +248,16 @@ var _version = require('nx/src/command-line/release/version');
248
248
  var _utils = require('nx/src/tasks-runner/utils');
249
249
  var _semver3 = require('semver');
250
250
  async function releaseVersionGeneratorFn(tree, options, config) {
251
- _chunkGRBZKMJIjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
251
+ _chunkZJXBN32Wjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
252
252
 
253
253
  `, config);
254
- const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, "Storm Release Version generator");
254
+ const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, "Storm Release Version generator");
255
255
  try {
256
256
  const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
257
- _chunkGRBZKMJIjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
257
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
258
258
  - workspaceRoot: ${workspaceRoot}`, config);
259
- config = await _chunkGRBZKMJIjs.loadStormConfig.call(void 0, workspaceRoot);
260
- _chunkGRBZKMJIjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
259
+ config = await _chunkZJXBN32Wjs.loadStormConfig.call(void 0, workspaceRoot);
260
+ _chunkZJXBN32Wjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
261
261
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
262
262
  const versionData = {};
263
263
  if (options.specifier) {
@@ -307,9 +307,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
307
307
  }
308
308
  const workspaceRelativePackagePath = _path.relative.call(void 0, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath);
309
309
  const log = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (msg) => {
310
- _chunkGRBZKMJIjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
310
+ _chunkZJXBN32Wjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
311
311
  }, "log");
312
- _chunkGRBZKMJIjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
312
+ _chunkZJXBN32Wjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
313
313
  let packageName;
314
314
  let currentVersionFromDisk;
315
315
  if (tree.exists(packageJsonPath)) {
@@ -583,7 +583,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
583
583
  }
584
584
  }
585
585
  await _devkit.formatFiles.call(void 0, tree);
586
- _chunkGRBZKMJIjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
586
+ _chunkZJXBN32Wjs.writeSuccess.call(void 0, `Completed running the Storm Release Version generator!
587
587
  `, config);
588
588
  return {
589
589
  data: versionData,
@@ -617,8 +617,8 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
617
617
  }, "callback")
618
618
  };
619
619
  } catch (error) {
620
- _chunkGRBZKMJIjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
621
- _chunkGRBZKMJIjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
620
+ _chunkZJXBN32Wjs.writeFatal.call(void 0, "A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate", config);
621
+ _chunkZJXBN32Wjs.writeError.call(void 0, `An exception was thrown in the Storm Release Version generator's process
622
622
  - Details: ${error.message}
623
623
  - Stacktrace: ${error.stack}`, config);
624
624
  throw new Error(`An exception was thrown in the Storm Release Version generator's process
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk5Q3LI7CFjs = require('./chunk-5Q3LI7CF.js');
3
+ var _chunkUW6T77HFjs = require('./chunk-UW6T77HF.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
9
+ var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
10
10
 
11
11
 
12
12
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
18
18
  var _devkit = require('@nx/devkit');
19
19
  var _zodtojsonschema = require('zod-to-json-schema');
20
20
  async function configSchemaGeneratorFn(tree, options, config) {
21
- _chunkGRBZKMJIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
22
- _chunkGRBZKMJIjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
23
- const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkGRBZKMJIjs.StormConfigSchema, {
21
+ _chunkZJXBN32Wjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
22
+ _chunkZJXBN32Wjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
23
+ const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkZJXBN32Wjs.StormConfigSchema, {
24
24
  name: "StormWorkspaceConfiguration"
25
25
  });
26
- _chunkGRBZKMJIjs.writeTrace.call(void 0, jsonSchema, config);
26
+ _chunkZJXBN32Wjs.writeTrace.call(void 0, jsonSchema, config);
27
27
  const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
28
- _chunkGRBZKMJIjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
28
+ _chunkZJXBN32Wjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
29
29
  _devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
30
30
  spaces: 2
31
31
  });
32
32
  await _devkit.formatFiles.call(void 0, tree);
33
- _chunkGRBZKMJIjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
33
+ _chunkZJXBN32Wjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
34
34
  return {
35
35
  success: true
36
36
  };
37
37
  }
38
38
  _chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
39
- var generator_default = _chunk5Q3LI7CFjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
39
+ var generator_default = _chunkUW6T77HFjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
40
40
  hooks: {
41
41
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
42
42
  options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-GVBCN2FA.mjs";
3
+ } from "./chunk-4G35AYIJ.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-DM2FMT3G.mjs";
6
+ } from "./chunk-7TEC757Y.mjs";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-XUV4U54K.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-EK75QNMS.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-A4DWQQ6J.mjs";
7
+ } from "./chunk-PKR4QUWJ.mjs";
8
8
  import {
9
9
  __dirname,
10
10
  __name
@@ -6,10 +6,10 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkAX4OFOSNjs = require('./chunk-AX4OFOSN.js');
9
+ var _chunkFE52EM76js = require('./chunk-FE52EM76.js');
10
10
 
11
11
 
12
- var _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
12
+ var _chunkYO7MVS4Ajs = require('./chunk-YO7MVS4A.js');
13
13
 
14
14
 
15
15
 
@@ -19,7 +19,7 @@ var _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
19
19
 
20
20
 
21
21
 
22
- var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
22
+ var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
23
23
 
24
24
 
25
25
  var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
@@ -37,8 +37,8 @@ var _tsdown = require('tsdown');
37
37
  // ../tsdown/src/clean.ts
38
38
 
39
39
  async function clean(name = "ESBuild", directory, config) {
40
- _chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
41
- const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, `${name} output clean`);
40
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
41
+ const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, `${name} output clean`);
42
42
  await _node.hfs.deleteAll(directory);
43
43
  stopwatch();
44
44
  }
@@ -73,9 +73,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
73
73
  if (!workspaceRoot) {
74
74
  throw new Error("Cannot find Nx workspace root");
75
75
  }
76
- const config = await _chunkGRBZKMJIjs.loadStormConfig.call(void 0, workspaceRoot.dir);
77
- _chunkGRBZKMJIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
78
- const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, "Build options resolution");
76
+ const config = await _chunkZJXBN32Wjs.loadStormConfig.call(void 0, workspaceRoot.dir);
77
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
78
+ const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, "Build options resolution");
79
79
  const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
80
80
  exitOnError: true
81
81
  });
@@ -91,19 +91,19 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
91
91
  }
92
92
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
93
93
  options.name ??= `${projectName}-${options.format}`;
94
- options.target ??= _chunkAX4OFOSNjs.DEFAULT_TARGET;
94
+ options.target ??= _chunkFE52EM76js.DEFAULT_TARGET;
95
95
  const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
96
96
  if (!await _node.hfs.isFile(packageJsonPath)) {
97
97
  throw new Error("Cannot find package.json configuration");
98
98
  }
99
- const env = _chunkAX4OFOSNjs.getEnv.call(void 0, "tsdown", options);
99
+ const env = _chunkFE52EM76js.getEnv.call(void 0, "tsdown", options);
100
100
  const result = {
101
101
  ...options,
102
102
  config,
103
103
  ...userOptions,
104
104
  tsconfig: _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
105
105
  format: options.format || "cjs",
106
- entryPoints: await _chunkAX4OFOSNjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
106
+ entryPoints: await _chunkFE52EM76js.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
107
107
  "./src/index.ts"
108
108
  ], userOptions.emitOnAll),
109
109
  outdir: userOptions.outputPath || _chunkXCSSYTCUjs.joinPaths.call(void 0, "dist", projectRoot),
@@ -114,7 +114,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
114
114
  projectGraph,
115
115
  sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "src"),
116
116
  minify: userOptions.minify || !userOptions.debug,
117
- verbose: userOptions.verbose || _chunkGRBZKMJIjs.isVerbose.call(void 0, ) || userOptions.debug === true,
117
+ verbose: userOptions.verbose || _chunkZJXBN32Wjs.isVerbose.call(void 0, ) || userOptions.debug === true,
118
118
  includeSrc: userOptions.includeSrc === true,
119
119
  metafile: userOptions.metafile !== false,
120
120
  generatePackageJson: userOptions.generatePackageJson !== false,
@@ -149,8 +149,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
149
149
  }, "resolveOptions");
150
150
  async function generatePackageJson(options) {
151
151
  if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
152
- _chunkGRBZKMJIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
153
- const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, "Write package.json file");
152
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
153
+ const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, "Write package.json file");
154
154
  const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "project.json");
155
155
  if (!await _node.hfs.isFile(packageJsonPath)) {
156
156
  throw new Error("Cannot find package.json configuration");
@@ -159,11 +159,11 @@ async function generatePackageJson(options) {
159
159
  if (!packageJson) {
160
160
  throw new Error("Cannot find package.json configuration file");
161
161
  }
162
- packageJson = await _chunkAX4OFOSNjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
163
- packageJson = await _chunkAX4OFOSNjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
162
+ packageJson = await _chunkFE52EM76js.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
163
+ packageJson = await _chunkFE52EM76js.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
164
164
  packageJson.exports ??= {};
165
165
  packageJson.exports["./package.json"] ??= "./package.json";
166
- packageJson.exports["."] ??= _chunkAX4OFOSNjs.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
166
+ packageJson.exports["."] ??= _chunkFE52EM76js.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
167
167
  let entryPoints = [
168
168
  {
169
169
  in: "./src/index.ts",
@@ -181,7 +181,7 @@ async function generatePackageJson(options) {
181
181
  const split = entryPoint.out.split(".");
182
182
  split.pop();
183
183
  const entry = split.join(".").replaceAll("\\", "/");
184
- packageJson.exports[`./${entry}`] ??= _chunkAX4OFOSNjs.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
184
+ packageJson.exports[`./${entry}`] ??= _chunkFE52EM76js.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
185
185
  }
186
186
  }
187
187
  packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
@@ -200,8 +200,8 @@ async function generatePackageJson(options) {
200
200
  }
201
201
  _chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
202
202
  async function executeTSDown(options) {
203
- _chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
204
- const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, `${options.name} build`);
203
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
204
+ const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, `${options.name} build`);
205
205
  await _tsdown.build.call(void 0, {
206
206
  ...options,
207
207
  entry: options.entryPoints,
@@ -213,15 +213,15 @@ async function executeTSDown(options) {
213
213
  }
214
214
  _chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
215
215
  async function copyBuildAssets(options) {
216
- _chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
217
- const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, `${options.name} asset copy`);
218
- await _chunkAX4OFOSNjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
216
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
217
+ const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, `${options.name} asset copy`);
218
+ await _chunkFE52EM76js.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
219
219
  stopwatch();
220
220
  return options;
221
221
  }
222
222
  _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
223
223
  async function reportResults(options) {
224
- _chunkGRBZKMJIjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
224
+ _chunkZJXBN32Wjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
225
225
  }
226
226
  _chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
227
227
  async function cleanOutputPath(options) {
@@ -232,8 +232,8 @@ async function cleanOutputPath(options) {
232
232
  }
233
233
  _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
234
234
  async function build(options) {
235
- _chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
236
- const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, "TSDown pipeline");
235
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
236
+ const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, "TSDown pipeline");
237
237
  try {
238
238
  const opts = Array.isArray(options) ? options : [
239
239
  options
@@ -251,11 +251,11 @@ async function build(options) {
251
251
  await reportResults(opt);
252
252
  }));
253
253
  } else {
254
- _chunkGRBZKMJIjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
254
+ _chunkZJXBN32Wjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
255
255
  }
256
- _chunkGRBZKMJIjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
256
+ _chunkZJXBN32Wjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
257
257
  } catch (error) {
258
- _chunkGRBZKMJIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
258
+ _chunkZJXBN32Wjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
259
259
  throw error;
260
260
  } finally {
261
261
  stopwatch();
@@ -265,7 +265,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
265
265
 
266
266
  // src/executors/tsdown/executor.ts
267
267
  async function tsdownExecutorFn(options, context, config) {
268
- _chunkGRBZKMJIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
268
+ _chunkZJXBN32Wjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
269
269
  if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
270
270
  throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
271
271
  }
@@ -282,7 +282,7 @@ async function tsdownExecutorFn(options, context, config) {
282
282
  };
283
283
  }
284
284
  _chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
285
- var executor_default = _chunkCDOWHRVEjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
285
+ var executor_default = _chunkYO7MVS4Ajs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
286
286
  skipReadingConfig: false,
287
287
  hooks: {
288
288
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "./chunk-GVBCN2FA.mjs";
3
+ } from "./chunk-4G35AYIJ.mjs";
4
4
  import {
5
5
  writeInfo
6
- } from "./chunk-DM2FMT3G.mjs";
6
+ } from "./chunk-7TEC757Y.mjs";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-XUV4U54K.mjs";
@@ -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 _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
3
+ var _chunkYO7MVS4Ajs = require('./chunk-YO7MVS4A.js');
4
4
 
5
5
 
6
- var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
6
+ var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
7
7
 
8
8
 
9
9
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -18,7 +18,7 @@ async function sizeLimitExecutorFn(options, context, config) {
18
18
  if (!_optionalChain([context, 'optionalAccess', _ => _.projectName]) || !_optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
19
19
  throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
20
20
  }
21
- _chunkGRBZKMJIjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
21
+ _chunkZJXBN32Wjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
22
22
  _sizelimit2.default.call(void 0, [
23
23
  _file2.default,
24
24
  _esbuild2.default,
@@ -26,14 +26,14 @@ async function sizeLimitExecutorFn(options, context, config) {
26
26
  ], {
27
27
  checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")), "src")))
28
28
  }).then((result) => {
29
- _chunkGRBZKMJIjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
29
+ _chunkZJXBN32Wjs.writeInfo.call(void 0, `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
30
30
  });
31
31
  return {
32
32
  success: true
33
33
  };
34
34
  }
35
35
  _chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
36
- var executor_default = _chunkCDOWHRVEjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
36
+ var executor_default = _chunkYO7MVS4Ajs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
37
37
  skipReadingConfig: false,
38
38
  hooks: {
39
39
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
@@ -11,7 +11,7 @@ import {
11
11
  writeInfo,
12
12
  writeSuccess,
13
13
  writeTrace
14
- } from "./chunk-DM2FMT3G.mjs";
14
+ } from "./chunk-7TEC757Y.mjs";
15
15
  import {
16
16
  findWorkspaceRoot
17
17
  } from "./chunk-DMUTOQCB.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XSRDTQ5C.mjs";
5
5
  import {
6
6
  withRunGenerator
7
- } from "./chunk-A4DWQQ6J.mjs";
7
+ } from "./chunk-PKR4QUWJ.mjs";
8
8
  import {
9
9
  __dirname,
10
10
  __name
@@ -6,10 +6,10 @@ import {
6
6
  copyAssets,
7
7
  getEntryPoints,
8
8
  getEnv
9
- } from "./chunk-OCXXIUSC.mjs";
9
+ } from "./chunk-2DNLATEG.mjs";
10
10
  import {
11
11
  withRunExecutor
12
- } from "./chunk-GVBCN2FA.mjs";
12
+ } from "./chunk-4G35AYIJ.mjs";
13
13
  import {
14
14
  getStopwatch,
15
15
  isVerbose,
@@ -19,7 +19,7 @@ import {
19
19
  writeInfo,
20
20
  writeSuccess,
21
21
  writeWarning
22
- } from "./chunk-DM2FMT3G.mjs";
22
+ } from "./chunk-7TEC757Y.mjs";
23
23
  import {
24
24
  joinPaths
25
25
  } from "./chunk-PVTEDLBL.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-EK75QNMS.mjs";
8
8
  import {
9
9
  withRunGenerator
10
- } from "./chunk-A4DWQQ6J.mjs";
10
+ } from "./chunk-PKR4QUWJ.mjs";
11
11
  import {
12
12
  __dirname,
13
13
  __name
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QZHIWK5Z.mjs";
5
5
  import {
6
6
  withRunExecutor
7
- } from "./chunk-GVBCN2FA.mjs";
7
+ } from "./chunk-4G35AYIJ.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-XUV4U54K.mjs";
@@ -11,7 +11,7 @@ var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
14
+ var _chunkZJXBN32Wjs = require('./chunk-ZJXBN32W.js');
15
15
 
16
16
 
17
17
  var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
@@ -23,34 +23,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
23
23
  var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
24
24
  skipReadingConfig: false
25
25
  }) => async (tree, _options) => {
26
- const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, name);
26
+ const stopwatch = _chunkZJXBN32Wjs.getStopwatch.call(void 0, name);
27
27
  let options = _options;
28
28
  let config;
29
29
  try {
30
- _chunkGRBZKMJIjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
30
+ _chunkZJXBN32Wjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
31
31
 
32
32
  `, config);
33
33
  const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
34
34
  if (!generatorOptions.skipReadingConfig) {
35
- _chunkGRBZKMJIjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
35
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
36
36
  - workspaceRoot: ${workspaceRoot}`, config);
37
- config = await _chunkGRBZKMJIjs.loadStormConfig.call(void 0, workspaceRoot);
37
+ config = await _chunkZJXBN32Wjs.loadStormConfig.call(void 0, workspaceRoot);
38
38
  }
39
39
  if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
40
- _chunkGRBZKMJIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
40
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
41
41
  options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
42
- _chunkGRBZKMJIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
42
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
43
43
  }
44
- _chunkGRBZKMJIjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
44
+ _chunkZJXBN32Wjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
45
45
  ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
46
46
  const tokenized = await _chunk5CPYNJT2js.applyWorkspaceTokens.call(void 0, options, {
47
47
  workspaceRoot: tree.root,
48
48
  config
49
49
  }, _chunk5CPYNJT2js.applyWorkspaceBaseTokens);
50
50
  if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
51
- _chunkGRBZKMJIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
51
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
52
52
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
53
- _chunkGRBZKMJIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
53
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
54
54
  }
55
55
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
56
56
  if (result) {
@@ -63,18 +63,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
63
63
  }
64
64
  }
65
65
  if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
66
- _chunkGRBZKMJIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
66
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
67
67
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
68
- _chunkGRBZKMJIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
68
+ _chunkZJXBN32Wjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
69
69
  }
70
70
  return () => {
71
- _chunkGRBZKMJIjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
71
+ _chunkZJXBN32Wjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
72
72
  `, config);
73
73
  };
74
74
  } catch (error) {
75
75
  return () => {
76
- _chunkGRBZKMJIjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
77
- _chunkGRBZKMJIjs.writeError.call(void 0, `An exception was thrown in the generator's process
76
+ _chunkZJXBN32Wjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
77
+ _chunkZJXBN32Wjs.writeError.call(void 0, `An exception was thrown in the generator's process
78
78
  - Details: ${error.message}
79
79
  - Stacktrace: ${error.stack}`, config);
80
80
  };
@@ -4,7 +4,7 @@
4
4
  var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
5
5
 
6
6
 
7
- var _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
7
+ var _chunkYO7MVS4Ajs = require('./chunk-YO7MVS4A.js');
8
8
 
9
9
 
10
10
  var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
@@ -15,7 +15,7 @@ async function cargoClippyExecutor(options, context) {
15
15
  return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
16
16
  }
17
17
  _chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
18
- var executor_default = _chunkCDOWHRVEjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
18
+ var executor_default = _chunkYO7MVS4Ajs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
19
19
  skipReadingConfig: false,
20
20
  hooks: {
21
21
  applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {