@storm-software/workspace-tools 1.62.6 → 1.62.8

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 1.62.8 (2024-02-27)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Update the imports of `config-tools` to dynamic ([cff2a536](https://github.com/storm-software/storm-ops/commit/cff2a536))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.62.7 (2024-02-27)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Update base methods to no longer use dynamic imports ([e3f68252](https://github.com/storm-software/storm-ops/commit/e3f68252))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.62.6 (2024-02-27)
2
26
 
3
27
 
package/README.md CHANGED
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
16
16
 
17
17
  <h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
18
18
 
19
- [![Version](https://img.shields.io/badge/version-1.62.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
+ [![Version](https://img.shields.io/badge/version-1.62.7-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
20
  [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
21
21
 
22
22
  > [!IMPORTANT]
package/index.js CHANGED
@@ -181082,20 +181082,20 @@ var require_typescript = __commonJS({
181082
181082
  })();
181083
181083
  }
181084
181084
  });
181085
- var LogLevel4, Debug;
181085
+ var LogLevel, Debug;
181086
181086
  var init_debug = __esm2({
181087
181087
  "src/compiler/debug.ts"() {
181088
181088
  "use strict";
181089
181089
  init_ts2();
181090
181090
  init_ts2();
181091
- LogLevel4 = /* @__PURE__ */ ((LogLevel32) => {
181092
- LogLevel32[LogLevel32["Off"] = 0] = "Off";
181093
- LogLevel32[LogLevel32["Error"] = 1] = "Error";
181094
- LogLevel32[LogLevel32["Warning"] = 2] = "Warning";
181095
- LogLevel32[LogLevel32["Info"] = 3] = "Info";
181096
- LogLevel32[LogLevel32["Verbose"] = 4] = "Verbose";
181097
- return LogLevel32;
181098
- })(LogLevel4 || {});
181091
+ LogLevel = /* @__PURE__ */ ((LogLevel3) => {
181092
+ LogLevel3[LogLevel3["Off"] = 0] = "Off";
181093
+ LogLevel3[LogLevel3["Error"] = 1] = "Error";
181094
+ LogLevel3[LogLevel3["Warning"] = 2] = "Warning";
181095
+ LogLevel3[LogLevel3["Info"] = 3] = "Info";
181096
+ LogLevel3[LogLevel3["Verbose"] = 4] = "Verbose";
181097
+ return LogLevel3;
181098
+ })(LogLevel || {});
181099
181099
  ((Debug2) => {
181100
181100
  let currentAssertionLevel = 0;
181101
181101
  Debug2.currentLogLevel = 2;
@@ -363664,12 +363664,12 @@ ${options8.prefix}` : "\n" : options8.prefix
363664
363664
  "src/server/utilitiesPublic.ts"() {
363665
363665
  "use strict";
363666
363666
  init_ts7();
363667
- LogLevel22 = /* @__PURE__ */ ((LogLevel32) => {
363668
- LogLevel32[LogLevel32["terse"] = 0] = "terse";
363669
- LogLevel32[LogLevel32["normal"] = 1] = "normal";
363670
- LogLevel32[LogLevel32["requestTime"] = 2] = "requestTime";
363671
- LogLevel32[LogLevel32["verbose"] = 3] = "verbose";
363672
- return LogLevel32;
363667
+ LogLevel22 = /* @__PURE__ */ ((LogLevel3) => {
363668
+ LogLevel3[LogLevel3["terse"] = 0] = "terse";
363669
+ LogLevel3[LogLevel3["normal"] = 1] = "normal";
363670
+ LogLevel3[LogLevel3["requestTime"] = 2] = "requestTime";
363671
+ LogLevel3[LogLevel3["verbose"] = 3] = "verbose";
363672
+ return LogLevel3;
363673
363673
  })(LogLevel22 || {});
363674
363674
  emptyArray22 = createSortedArray22();
363675
363675
  Msg2 = /* @__PURE__ */ ((Msg22) => {
@@ -375200,7 +375200,7 @@ ${e3.message}`;
375200
375200
  LanguageVariant: () => LanguageVariant,
375201
375201
  LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
375202
375202
  ListFormat: () => ListFormat,
375203
- LogLevel: () => LogLevel4,
375203
+ LogLevel: () => LogLevel,
375204
375204
  MemberOverrideStatus: () => MemberOverrideStatus,
375205
375205
  ModifierFlags: () => ModifierFlags,
375206
375206
  ModuleDetectionKind: () => ModuleDetectionKind,
@@ -377604,7 +377604,7 @@ ${e3.message}`;
377604
377604
  LanguageVariant: () => LanguageVariant,
377605
377605
  LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
377606
377606
  ListFormat: () => ListFormat,
377607
- LogLevel: () => LogLevel4,
377607
+ LogLevel: () => LogLevel,
377608
377608
  MemberOverrideStatus: () => MemberOverrideStatus,
377609
377609
  ModifierFlags: () => ModifierFlags,
377610
377610
  ModuleDetectionKind: () => ModuleDetectionKind,
@@ -476153,9 +476153,6 @@ __export(workspace_tools_exports, {
476153
476153
  });
476154
476154
  module.exports = __toCommonJS(workspace_tools_exports);
476155
476155
 
476156
- // packages/workspace-tools/src/base/base-executor.ts
476157
- var import_config_tools2 = require("@storm-software/config-tools");
476158
-
476159
476156
  // packages/workspace-tools/src/utils/apply-workspace-tokens.ts
476160
476157
  var import_config_tools = require("@storm-software/config-tools");
476161
476158
  var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
@@ -476252,23 +476249,34 @@ var applyWorkspaceTokens = (options8, config, tokenizerFn) => {
476252
476249
 
476253
476250
  // packages/workspace-tools/src/base/base-executor.ts
476254
476251
  var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
476255
- const stopwatch = (0, import_config_tools2.getStopwatch)(name);
476252
+ const {
476253
+ getStopwatch,
476254
+ writeDebug,
476255
+ writeError,
476256
+ writeFatal,
476257
+ writeInfo: writeInfo3,
476258
+ writeSuccess,
476259
+ writeTrace,
476260
+ findWorkspaceRoot: findWorkspaceRoot5,
476261
+ loadStormConfig
476262
+ } = await import("@storm-software/config-tools");
476263
+ const stopwatch = getStopwatch(name);
476256
476264
  let options8 = _options;
476257
476265
  let config;
476258
476266
  try {
476259
- (0, import_config_tools2.writeInfo)(config, `\u26A1 Running the ${name} executor...
476267
+ writeInfo3(config, `\u26A1 Running the ${name} executor...
476260
476268
  `);
476261
476269
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
476262
476270
  throw new Error(
476263
476271
  "The Build process failed because the context is not valid. Please run this command from a workspace."
476264
476272
  );
476265
476273
  }
476266
- const workspaceRoot = (0, import_config_tools2.findWorkspaceRoot)();
476274
+ const workspaceRoot = findWorkspaceRoot5();
476267
476275
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
476268
476276
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
476269
476277
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
476270
476278
  if (!executorOptions.skipReadingConfig) {
476271
- (0, import_config_tools2.writeDebug)(
476279
+ writeDebug(
476272
476280
  config,
476273
476281
  `Loading the Storm Config from environment variables and storm.config.js file...
476274
476282
  - workspaceRoot: ${workspaceRoot}
@@ -476277,8 +476285,8 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
476277
476285
  - projectName: ${projectName}
476278
476286
  `
476279
476287
  );
476280
- config = await (0, import_config_tools2.loadStormConfig)(workspaceRoot);
476281
- (0, import_config_tools2.writeTrace)(
476288
+ config = await loadStormConfig(workspaceRoot);
476289
+ writeTrace(
476282
476290
  config,
476283
476291
  `Loaded Storm config into env:
476284
476292
  ${Object.keys(process.env).filter((key2) => key2.startsWith("STORM_")).map(
@@ -476287,11 +476295,11 @@ ${Object.keys(process.env).filter((key2) => key2.startsWith("STORM_")).map(
476287
476295
  );
476288
476296
  }
476289
476297
  if (executorOptions?.hooks?.applyDefaultOptions) {
476290
- (0, import_config_tools2.writeDebug)(config, "Running the applyDefaultOptions hook...");
476298
+ writeDebug(config, "Running the applyDefaultOptions hook...");
476291
476299
  options8 = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options8, config));
476292
- (0, import_config_tools2.writeDebug)(config, "Completed the applyDefaultOptions hook");
476300
+ writeDebug(config, "Completed the applyDefaultOptions hook");
476293
476301
  }
476294
- (0, import_config_tools2.writeTrace)(
476302
+ writeTrace(
476295
476303
  config,
476296
476304
  `Executor schema options \u2699\uFE0F
476297
476305
  ${Object.keys(options8).map(
@@ -476312,9 +476320,9 @@ ${Object.keys(options8).map(
476312
476320
  applyWorkspaceExecutorTokens
476313
476321
  );
476314
476322
  if (executorOptions?.hooks?.preProcess) {
476315
- (0, import_config_tools2.writeDebug)(config, "Running the preProcess hook...");
476323
+ writeDebug(config, "Running the preProcess hook...");
476316
476324
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
476317
- (0, import_config_tools2.writeDebug)(config, "Completed the preProcess hook");
476325
+ writeDebug(config, "Completed the preProcess hook");
476318
476326
  }
476319
476327
  const result = await Promise.resolve(executorFn(tokenized, context, config));
476320
476328
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
@@ -476323,21 +476331,21 @@ ${Object.keys(options8).map(
476323
476331
  });
476324
476332
  }
476325
476333
  if (executorOptions?.hooks?.postProcess) {
476326
- (0, import_config_tools2.writeDebug)(config, "Running the postProcess hook...");
476334
+ writeDebug(config, "Running the postProcess hook...");
476327
476335
  await Promise.resolve(executorOptions.hooks.postProcess(config));
476328
- (0, import_config_tools2.writeDebug)(config, "Completed the postProcess hook");
476336
+ writeDebug(config, "Completed the postProcess hook");
476329
476337
  }
476330
- (0, import_config_tools2.writeSuccess)(config, `Completed running the ${name} task executor!
476338
+ writeSuccess(config, `Completed running the ${name} task executor!
476331
476339
  `);
476332
476340
  return {
476333
476341
  success: true
476334
476342
  };
476335
476343
  } catch (error) {
476336
- (0, import_config_tools2.writeFatal)(
476344
+ writeFatal(
476337
476345
  config,
476338
476346
  "A fatal error occurred while running the executor - the process was forced to terminate"
476339
476347
  );
476340
- (0, import_config_tools2.writeError)(
476348
+ writeError(
476341
476349
  config,
476342
476350
  `An exception was thrown in the executor's process
476343
476351
  - Details: ${error.message}
@@ -476359,40 +476367,49 @@ var _isFunction = (value) => {
476359
476367
  };
476360
476368
 
476361
476369
  // packages/workspace-tools/src/base/base-generator.ts
476362
- var import_config_tools3 = require("@storm-software/config-tools");
476363
- var import_config_tools4 = require("@storm-software/config-tools");
476364
476370
  var withRunGenerator = (name, generatorFn, generatorOptions = {
476365
476371
  skipReadingConfig: false
476366
476372
  }) => async (tree, _options) => {
476367
- const stopwatch = (0, import_config_tools3.getStopwatch)(name);
476373
+ const {
476374
+ getStopwatch,
476375
+ writeDebug,
476376
+ writeError,
476377
+ writeFatal,
476378
+ writeInfo: writeInfo3,
476379
+ writeSuccess,
476380
+ writeTrace,
476381
+ findWorkspaceRootSafe,
476382
+ loadStormConfig
476383
+ } = await import("@storm-software/config-tools");
476384
+ const stopwatch = getStopwatch(name);
476368
476385
  let options8 = _options;
476369
476386
  let config;
476370
476387
  try {
476371
- (0, import_config_tools3.writeInfo)(config, `\u26A1 Running the ${name} generator...
476388
+ writeInfo3(config, `\u26A1 Running the ${name} generator...
476372
476389
 
476373
476390
  `);
476374
- const workspaceRoot = (0, import_config_tools4.findWorkspaceRootSafe)();
476391
+ const workspaceRoot = findWorkspaceRootSafe();
476375
476392
  if (!generatorOptions.skipReadingConfig) {
476376
- (0, import_config_tools3.writeDebug)(
476393
+ writeDebug(
476377
476394
  config,
476378
476395
  `Loading the Storm Config from environment variables and storm.config.js file...
476379
476396
  - workspaceRoot: ${workspaceRoot}`
476380
476397
  );
476381
- config = await (0, import_config_tools4.loadStormConfig)(workspaceRoot);
476382
- (0, import_config_tools3.writeTrace)(
476398
+ config = await loadStormConfig(workspaceRoot);
476399
+ writeTrace(
476383
476400
  config,
476384
476401
  `Loaded Storm config into env:
476385
476402
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
476386
476403
  );
476387
476404
  }
476388
476405
  if (generatorOptions?.hooks?.applyDefaultOptions) {
476389
- (0, import_config_tools3.writeDebug)(config, "Running the applyDefaultOptions hook...");
476406
+ writeDebug(config, "Running the applyDefaultOptions hook...");
476390
476407
  options8 = await Promise.resolve(
476391
476408
  generatorOptions.hooks.applyDefaultOptions(options8, config)
476392
476409
  );
476393
- (0, import_config_tools3.writeDebug)(config, "Completed the applyDefaultOptions hook");
476410
+ writeDebug(config, "Completed the applyDefaultOptions hook");
476394
476411
  }
476395
- (0, import_config_tools3.writeTrace)(
476412
+ writeTrace(
476396
476413
  config,
476397
476414
  `Generator schema options \u2699\uFE0F
476398
476415
  ${Object.keys(options8 ?? {}).map((key2) => ` - ${key2}=${JSON.stringify(options8[key2])}`).join("\n")}`
@@ -476403,9 +476420,9 @@ ${Object.keys(options8 ?? {}).map((key2) => ` - ${key2}=${JSON.stringify(options
476403
476420
  applyWorkspaceGeneratorTokens
476404
476421
  );
476405
476422
  if (generatorOptions?.hooks?.preProcess) {
476406
- (0, import_config_tools3.writeDebug)(config, "Running the preProcess hook...");
476423
+ writeDebug(config, "Running the preProcess hook...");
476407
476424
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
476408
- (0, import_config_tools3.writeDebug)(config, "Completed the preProcess hook");
476425
+ writeDebug(config, "Completed the preProcess hook");
476409
476426
  }
476410
476427
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
476411
476428
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
@@ -476414,22 +476431,22 @@ ${Object.keys(options8 ?? {}).map((key2) => ` - ${key2}=${JSON.stringify(options
476414
476431
  });
476415
476432
  }
476416
476433
  if (generatorOptions?.hooks?.postProcess) {
476417
- (0, import_config_tools3.writeDebug)(config, "Running the postProcess hook...");
476434
+ writeDebug(config, "Running the postProcess hook...");
476418
476435
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
476419
- (0, import_config_tools3.writeDebug)(config, "Completed the postProcess hook");
476436
+ writeDebug(config, "Completed the postProcess hook");
476420
476437
  }
476421
- (0, import_config_tools3.writeSuccess)(config, `Completed running the ${name} task executor!
476438
+ writeSuccess(config, `Completed running the ${name} task executor!
476422
476439
  `);
476423
476440
  return {
476424
476441
  ...result,
476425
476442
  success: true
476426
476443
  };
476427
476444
  } catch (error) {
476428
- (0, import_config_tools3.writeFatal)(
476445
+ writeFatal(
476429
476446
  config,
476430
476447
  "A fatal error occurred while running the generator - the process was forced to terminate"
476431
476448
  );
476432
- (0, import_config_tools3.writeError)(
476449
+ writeError(
476433
476450
  config,
476434
476451
  `An exception was thrown in the generator's process
476435
476452
  - Details: ${error.message}
@@ -476953,7 +476970,6 @@ var import_esbuild_decorators = __toESM(require_src6());
476953
476970
  var import_devkit3 = __toESM(require_devkit());
476954
476971
  var import_get_custom_transformers_factory = __toESM(require_get_custom_transformers_factory());
476955
476972
  var import_normalize_options = __toESM(require_normalize_options());
476956
- var import_config_tools5 = require("@storm-software/config-tools");
476957
476973
 
476958
476974
  // node_modules/.pnpm/esbuild-plugin-define@0.4.0_esbuild@0.19.12/node_modules/esbuild-plugin-define/dist/mjs/utils.js
476959
476975
  var makeKey = (...inputs) => inputs.filter((input) => !!input).join(".");
@@ -477051,7 +477067,8 @@ var applyDefaultOptions = (options8) => {
477051
477067
  return options8;
477052
477068
  };
477053
477069
  var runTsupBuild = async (context, config, options8) => {
477054
- const workspaceRoot = config?.workspaceRoot ?? (0, import_config_tools5.findWorkspaceRoot)();
477070
+ const { LogLevel, getLogLevel, writeInfo: writeInfo3, writeWarning, findWorkspaceRoot: findWorkspaceRoot5 } = await import("@storm-software/config-tools");
477071
+ const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot5();
477055
477072
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
477056
477073
  ret[key2] = options8.env?.[key2];
477057
477074
  return ret;
@@ -477110,7 +477127,7 @@ ${options8.banner}
477110
477127
  outputPath: options8.outputPath
477111
477128
  };
477112
477129
  if (options8.getConfig) {
477113
- (0, import_config_tools5.writeInfo)(config, "\u26A1 Running the Build process");
477130
+ writeInfo3(config, "\u26A1 Running the Build process");
477114
477131
  const getConfigFns = [options8.getConfig];
477115
477132
  const tsupConfig = (0, import_tsup.defineConfig)(
477116
477133
  getConfigFns.map(
@@ -477123,8 +477140,8 @@ ${options8.banner}
477123
477140
  } else {
477124
477141
  await build(tsupConfig, config);
477125
477142
  }
477126
- } else if ((0, import_config_tools5.getLogLevel)(config?.logLevel ?? "debug") >= import_config_tools5.LogLevel.WARN) {
477127
- (0, import_config_tools5.writeWarning)(
477143
+ } else if (getLogLevel(config?.logLevel ?? "debug") >= LogLevel.WARN) {
477144
+ writeWarning(
477128
477145
  config,
477129
477146
  "The Build process did not run because no `getConfig` parameter was provided"
477130
477147
  );
@@ -477159,6 +477176,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
477159
477176
  return tsConfig;
477160
477177
  }
477161
477178
  var build = async (options8, config) => {
477179
+ const { writeDebug } = await import("@storm-software/config-tools");
477162
477180
  if (Array.isArray(options8)) {
477163
477181
  await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
477164
477182
  } else {
@@ -477166,7 +477184,7 @@ var build = async (options8, config) => {
477166
477184
  if (_isFunction2(tsupOptions)) {
477167
477185
  tsupOptions = await Promise.resolve(tsupOptions({}));
477168
477186
  }
477169
- (0, import_config_tools5.writeDebug)(
477187
+ writeDebug(
477170
477188
  config,
477171
477189
  `\u2699\uFE0F Tsup Build options:
477172
477190
  ${!_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
@@ -477208,7 +477226,6 @@ var createTypeScriptCompilationOptions = (normalizedOptions, projectName) => {
477208
477226
  var import_node_fs = require("node:fs");
477209
477227
  var import_devkit4 = __toESM(require_devkit());
477210
477228
  var import_js2 = __toESM(require_src5());
477211
- var import_config_tools7 = require("@storm-software/config-tools");
477212
477229
  var import_fs_extra = __toESM(require_lib4());
477213
477230
 
477214
477231
  // node_modules/.pnpm/minimatch@9.0.3/node_modules/minimatch/dist/mjs/index.js
@@ -483390,8 +483407,8 @@ var import_fileutils = require("nx/src/utils/fileutils.js");
483390
483407
 
483391
483408
  // packages/workspace-tools/src/utils/get-project-configurations.ts
483392
483409
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
483393
- var import_config_tools6 = require("@storm-software/config-tools");
483394
- var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)((0, import_config_tools6.findWorkspaceRoot)());
483410
+ var import_config_tools2 = require("@storm-software/config-tools");
483411
+ var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)((0, import_config_tools2.findWorkspaceRoot)());
483395
483412
  var getProjectConfiguration = (projectName) => getProjectConfigurations()?.[projectName];
483396
483413
 
483397
483414
  // packages/workspace-tools/src/utils/get-project-deps.ts
@@ -483451,8 +483468,18 @@ function getExternalDependencies(projectName, graph) {
483451
483468
 
483452
483469
  // packages/workspace-tools/src/executors/tsup/executor.ts
483453
483470
  async function tsupExecutorFn(options8, context, config) {
483454
- (0, import_config_tools7.writeInfo)(config, "\u{1F4E6} Running Storm build executor on the workspace");
483455
- (0, import_config_tools7.getLogLevel)(config?.logLevel) >= import_config_tools7.LogLevel.TRACE && (0, import_config_tools7.writeDebug)(
483471
+ const {
483472
+ LogLevel,
483473
+ getLogLevel,
483474
+ writeDebug,
483475
+ writeInfo: writeInfo3,
483476
+ writeSuccess,
483477
+ writeTrace,
483478
+ writeWarning,
483479
+ findWorkspaceRoot: findWorkspaceRoot5
483480
+ } = await import("@storm-software/config-tools");
483481
+ writeInfo3(config, "\u{1F4E6} Running Storm build executor on the workspace");
483482
+ writeDebug(
483456
483483
  config,
483457
483484
  `\u2699\uFE0F Executor options:
483458
483485
  ${Object.keys(options8).map(
@@ -483465,11 +483492,11 @@ ${Object.keys(options8).map(
483465
483492
  "The Build process failed because the context is not valid. Please run this command from a workspace."
483466
483493
  );
483467
483494
  }
483468
- const workspaceRoot = (0, import_config_tools7.findWorkspaceRoot)();
483495
+ const workspaceRoot = findWorkspaceRoot5();
483469
483496
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
483470
483497
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
483471
483498
  if (options8.clean !== false) {
483472
- (0, import_config_tools7.writeInfo)(config, `\u{1F9F9} Cleaning output path: ${options8.outputPath}`);
483499
+ writeInfo3(config, `\u{1F9F9} Cleaning output path: ${options8.outputPath}`);
483473
483500
  (0, import_fs_extra.removeSync)(options8.outputPath);
483474
483501
  }
483475
483502
  const assets = Array.from(options8.assets);
@@ -483538,13 +483565,13 @@ ${Object.keys(options8).map(
483538
483565
  const implicitDependencies = context.projectsConfigurations.projects[context.projectName]?.implicitDependencies;
483539
483566
  const internalDependencies = [];
483540
483567
  const projectConfigs = await Promise.resolve(getProjectConfigurations());
483541
- if ((0, import_config_tools7.getLogLevel)(config?.logLevel) >= import_config_tools7.LogLevel.TRACE) {
483542
- (0, import_config_tools7.writeDebug)(config, "Project Configs:");
483568
+ if (getLogLevel(config?.logLevel) >= LogLevel.TRACE) {
483569
+ writeDebug(config, "Project Configs:");
483543
483570
  console.log(projectConfigs);
483544
483571
  }
483545
483572
  if (implicitDependencies && implicitDependencies.length > 0) {
483546
483573
  options8.external = implicitDependencies.reduce((ret, key2) => {
483547
- (0, import_config_tools7.writeDebug)(config, `\u26A1 Adding implicit dependency: ${key2}`);
483574
+ writeDebug(config, `\u26A1 Adding implicit dependency: ${key2}`);
483548
483575
  const projectConfig = projectConfigs[key2];
483549
483576
  if (projectConfig?.targets?.build) {
483550
483577
  const projectPackageJson = (0, import_devkit4.readJsonFile)(projectConfig.targets?.build.options.project);
@@ -483569,7 +483596,7 @@ ${Object.keys(options8).map(
483569
483596
  externalDependencies.push(thirdPartyDependency);
483570
483597
  }
483571
483598
  }
483572
- (0, import_config_tools7.writeTrace)(
483599
+ writeTrace(
483573
483600
  config,
483574
483601
  `Building with the following dependencies marked as external:
483575
483602
  ${externalDependencies.map((dep) => {
@@ -483596,7 +483623,7 @@ ${externalDependencies.map((dep) => {
483596
483623
  while (propertyKey.startsWith("/")) {
483597
483624
  propertyKey = propertyKey.substring(1);
483598
483625
  }
483599
- (0, import_config_tools7.writeDebug)(
483626
+ writeDebug(
483600
483627
  config,
483601
483628
  `Trying to add entry point ${propertyKey} at "${(0, import_devkit4.joinPathFragments)(
483602
483629
  filePath.path,
@@ -483716,10 +483743,10 @@ ${externalDependencies.map((dep) => {
483716
483743
  packageJson.repository ??= workspacePackageJson.repository;
483717
483744
  packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_devkit4.joinPathFragments)("packages", context.projectName);
483718
483745
  const packageJsonPath = (0, import_devkit4.joinPathFragments)(context.root, options8.outputPath, "package.json");
483719
- (0, import_config_tools7.writeDebug)(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
483746
+ writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
483720
483747
  (0, import_node_fs.writeFileSync)(packageJsonPath, JSON.stringify(packageJson));
483721
483748
  } else {
483722
- (0, import_config_tools7.writeWarning)(config, "Skipping writing to package.json file");
483749
+ writeWarning(config, "Skipping writing to package.json file");
483723
483750
  }
483724
483751
  if (options8.includeSrc === true) {
483725
483752
  const files = globSync([
@@ -483755,7 +483782,7 @@ ${(0, import_node_fs.readFileSync)(file, "utf-8")}`,
483755
483782
  )
483756
483783
  )
483757
483784
  );
483758
- (0, import_config_tools7.writeSuccess)(config, "\u26A1 The Build process has completed successfully");
483785
+ writeSuccess(config, "\u26A1 The Build process has completed successfully");
483759
483786
  return {
483760
483787
  success: true
483761
483788
  };
@@ -484167,12 +484194,12 @@ var executor_default4 = withRunExecutor(
484167
484194
  );
484168
484195
 
484169
484196
  // packages/workspace-tools/src/executors/typia/executor.ts
484170
- var import_config_tools8 = require("@storm-software/config-tools");
484197
+ var import_config_tools3 = require("@storm-software/config-tools");
484171
484198
  var import_fs_extra2 = __toESM(require_lib4());
484172
484199
  var import_TypiaProgrammer = __toESM(require_TypiaProgrammer());
484173
484200
  async function typiaExecutorFn(options8, _4, config) {
484174
484201
  if (options8.clean !== false) {
484175
- (0, import_config_tools8.writeInfo)(config, `\u{1F9F9} Cleaning output path: ${options8.outputPath}`);
484202
+ (0, import_config_tools3.writeInfo)(config, `\u{1F9F9} Cleaning output path: ${options8.outputPath}`);
484176
484203
  (0, import_fs_extra2.removeSync)(options8.outputPath);
484177
484204
  }
484178
484205
  await import_TypiaProgrammer.TypiaProgrammer.build({
@@ -488796,10 +488823,10 @@ var zodToJsonSchema = (schema2, options8) => {
488796
488823
  };
488797
488824
 
488798
488825
  // packages/workspace-tools/src/generators/config-schema/generator.ts
488799
- var import_config_tools9 = require("@storm-software/config-tools");
488826
+ var import_config_tools4 = require("@storm-software/config-tools");
488800
488827
  async function configSchemaGeneratorFn(tree, options8, config) {
488801
488828
  const projectConfigurations = getProjectConfigurations();
488802
- const workspaceRoot = config?.workspaceRoot ?? (0, import_config_tools9.findWorkspaceRoot)();
488829
+ const workspaceRoot = config?.workspaceRoot ?? (0, import_config_tools4.findWorkspaceRoot)();
488803
488830
  const modules = await Promise.all(
488804
488831
  Object.keys(projectConfigurations).map(async (key2) => {
488805
488832
  if (projectConfigurations[key2]?.config) {
@@ -489133,7 +489160,7 @@ var import_version = require("nx/src/command-line/release/version");
489133
489160
  var import_utils2 = require("nx/src/tasks-runner/utils");
489134
489161
  var import_semver = require("nx/src/command-line/release/utils/semver");
489135
489162
  var import_node_path4 = require("node:path");
489136
- var import_config_tools10 = require("@storm-software/config-tools");
489163
+ var import_config_tools5 = require("@storm-software/config-tools");
489137
489164
  var import_update_lock_file = __toESM(require_update_lock_file());
489138
489165
  var import_node_child_process = require("node:child_process");
489139
489166
  var import_git = require("nx/src/command-line/release/utils/git");
@@ -489164,7 +489191,7 @@ Valid values are: ${import_version.validReleaseVersionPrefixes.map((s) => `"${s}
489164
489191
  const projects = options8.projects;
489165
489192
  const createResolvePackageRoot = (customPackageRoot) => (projectNode) => {
489166
489193
  if (projectNode?.data?.root === config?.workspaceRoot || projectNode?.data?.root === ".") {
489167
- return config?.workspaceRoot ?? (0, import_config_tools10.findWorkspaceRoot)();
489194
+ return config?.workspaceRoot ?? (0, import_config_tools5.findWorkspaceRoot)();
489168
489195
  }
489169
489196
  if (!customPackageRoot) {
489170
489197
  return projectNode.data.root;
@@ -489189,11 +489216,11 @@ Valid values are: ${import_version.validReleaseVersionPrefixes.map((s) => `"${s}
489189
489216
  const packageRoot = projectNameToPackageRootMap.get(projectName);
489190
489217
  const packageJsonPath = (0, import_devkit13.joinPathFragments)(packageRoot ?? "./", "package.json");
489191
489218
  const workspaceRelativePackageJsonPath = (0, import_node_path4.relative)(
489192
- config?.workspaceRoot ?? (0, import_config_tools10.findWorkspaceRoot)(),
489219
+ config?.workspaceRoot ?? (0, import_config_tools5.findWorkspaceRoot)(),
489193
489220
  packageJsonPath
489194
489221
  );
489195
489222
  const log = (msg) => {
489196
- (0, import_config_tools10.writeInfo)(config, `${projectName}: ${msg}`);
489223
+ (0, import_config_tools5.writeInfo)(config, `${projectName}: ${msg}`);
489197
489224
  };
489198
489225
  if (!tree.exists(packageJsonPath)) {
489199
489226
  throw new Error(
@@ -489202,7 +489229,7 @@ Valid values are: ${import_version.validReleaseVersionPrefixes.map((s) => `"${s}
489202
489229
  To fix this you will either need to add a package.json file at that location, or configure "release" within your nx.json to exclude "${projectName}" from the current release group, or amend the packageRoot configuration to point to where the package.json should be.`
489203
489230
  );
489204
489231
  }
489205
- (0, import_config_tools10.writeInfo)(config, `Running release version for project: ${project.name}`);
489232
+ (0, import_config_tools5.writeInfo)(config, `Running release version for project: ${project.name}`);
489206
489233
  const projectPackageJson = (0, import_devkit13.readJson)(tree, packageJsonPath);
489207
489234
  log(
489208
489235
  `\u{1F50D} Reading data for package "${projectPackageJson.name}" from ${workspaceRelativePackageJsonPath}`