@storm-software/workspace-tools 1.62.5 → 1.62.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.62.5",
3
+ "version": "1.62.7",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
package/src/base/index.js CHANGED
@@ -391229,9 +391229,6 @@ __export(base_exports, {
391229
391229
  });
391230
391230
  module.exports = __toCommonJS(base_exports);
391231
391231
 
391232
- // packages/workspace-tools/src/base/base-executor.ts
391233
- var import_config_tools2 = require("@storm-software/config-tools");
391234
-
391235
391232
  // packages/workspace-tools/src/utils/apply-workspace-tokens.ts
391236
391233
  var import_config_tools = require("@storm-software/config-tools");
391237
391234
  var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
@@ -391328,24 +391325,34 @@ var applyWorkspaceTokens = (options8, config, tokenizerFn) => {
391328
391325
 
391329
391326
  // packages/workspace-tools/src/base/base-executor.ts
391330
391327
  var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
391331
- const stopwatch = (0, import_config_tools2.getStopwatch)(name);
391328
+ const {
391329
+ getStopwatch,
391330
+ writeDebug,
391331
+ writeError,
391332
+ writeFatal,
391333
+ writeInfo,
391334
+ writeSuccess,
391335
+ writeTrace,
391336
+ findWorkspaceRoot: findWorkspaceRoot2,
391337
+ loadStormConfig
391338
+ } = await import("@storm-software/config-tools");
391339
+ const stopwatch = getStopwatch(name);
391332
391340
  let options8 = _options;
391333
391341
  let config;
391334
391342
  try {
391335
- (0, import_config_tools2.writeInfo)(config, `\u26A1 Running the ${name} executor...
391343
+ writeInfo(config, `\u26A1 Running the ${name} executor...
391336
391344
  `);
391337
391345
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
391338
391346
  throw new Error(
391339
391347
  "The Build process failed because the context is not valid. Please run this command from a workspace."
391340
391348
  );
391341
391349
  }
391342
- const workspaceRoot = (0, import_config_tools2.findWorkspaceRoot)();
391350
+ const workspaceRoot = findWorkspaceRoot2();
391343
391351
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
391344
391352
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
391345
391353
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
391346
391354
  if (!executorOptions.skipReadingConfig) {
391347
- const { loadStormConfig } = await import("@storm-software/config-tools");
391348
- (0, import_config_tools2.writeDebug)(
391355
+ writeDebug(
391349
391356
  config,
391350
391357
  `Loading the Storm Config from environment variables and storm.config.js file...
391351
391358
  - workspaceRoot: ${workspaceRoot}
@@ -391355,7 +391362,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
391355
391362
  `
391356
391363
  );
391357
391364
  config = await loadStormConfig(workspaceRoot);
391358
- (0, import_config_tools2.writeTrace)(
391365
+ writeTrace(
391359
391366
  config,
391360
391367
  `Loaded Storm config into env:
391361
391368
  ${Object.keys(process.env).filter((key2) => key2.startsWith("STORM_")).map(
@@ -391364,11 +391371,11 @@ ${Object.keys(process.env).filter((key2) => key2.startsWith("STORM_")).map(
391364
391371
  );
391365
391372
  }
391366
391373
  if (executorOptions?.hooks?.applyDefaultOptions) {
391367
- (0, import_config_tools2.writeDebug)(config, "Running the applyDefaultOptions hook...");
391374
+ writeDebug(config, "Running the applyDefaultOptions hook...");
391368
391375
  options8 = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options8, config));
391369
- (0, import_config_tools2.writeDebug)(config, "Completed the applyDefaultOptions hook");
391376
+ writeDebug(config, "Completed the applyDefaultOptions hook");
391370
391377
  }
391371
- (0, import_config_tools2.writeTrace)(
391378
+ writeTrace(
391372
391379
  config,
391373
391380
  `Executor schema options \u2699\uFE0F
391374
391381
  ${Object.keys(options8).map(
@@ -391389,9 +391396,9 @@ ${Object.keys(options8).map(
391389
391396
  applyWorkspaceExecutorTokens
391390
391397
  );
391391
391398
  if (executorOptions?.hooks?.preProcess) {
391392
- (0, import_config_tools2.writeDebug)(config, "Running the preProcess hook...");
391399
+ writeDebug(config, "Running the preProcess hook...");
391393
391400
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
391394
- (0, import_config_tools2.writeDebug)(config, "Completed the preProcess hook");
391401
+ writeDebug(config, "Completed the preProcess hook");
391395
391402
  }
391396
391403
  const result = await Promise.resolve(executorFn(tokenized, context, config));
391397
391404
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
@@ -391400,21 +391407,21 @@ ${Object.keys(options8).map(
391400
391407
  });
391401
391408
  }
391402
391409
  if (executorOptions?.hooks?.postProcess) {
391403
- (0, import_config_tools2.writeDebug)(config, "Running the postProcess hook...");
391410
+ writeDebug(config, "Running the postProcess hook...");
391404
391411
  await Promise.resolve(executorOptions.hooks.postProcess(config));
391405
- (0, import_config_tools2.writeDebug)(config, "Completed the postProcess hook");
391412
+ writeDebug(config, "Completed the postProcess hook");
391406
391413
  }
391407
- (0, import_config_tools2.writeSuccess)(config, `Completed running the ${name} task executor!
391414
+ writeSuccess(config, `Completed running the ${name} task executor!
391408
391415
  `);
391409
391416
  return {
391410
391417
  success: true
391411
391418
  };
391412
391419
  } catch (error) {
391413
- (0, import_config_tools2.writeFatal)(
391420
+ writeFatal(
391414
391421
  config,
391415
391422
  "A fatal error occurred while running the executor - the process was forced to terminate"
391416
391423
  );
391417
- (0, import_config_tools2.writeError)(
391424
+ writeError(
391418
391425
  config,
391419
391426
  `An exception was thrown in the executor's process
391420
391427
  - Details: ${error.message}
@@ -391436,41 +391443,49 @@ var _isFunction = (value) => {
391436
391443
  };
391437
391444
 
391438
391445
  // packages/workspace-tools/src/base/base-generator.ts
391439
- var import_config_tools3 = require("@storm-software/config-tools");
391440
- var import_config_tools4 = require("@storm-software/config-tools");
391441
391446
  var withRunGenerator = (name, generatorFn, generatorOptions = {
391442
391447
  skipReadingConfig: false
391443
391448
  }) => async (tree, _options) => {
391444
- const stopwatch = (0, import_config_tools3.getStopwatch)(name);
391449
+ const {
391450
+ getStopwatch,
391451
+ writeDebug,
391452
+ writeError,
391453
+ writeFatal,
391454
+ writeInfo,
391455
+ writeSuccess,
391456
+ writeTrace,
391457
+ findWorkspaceRootSafe,
391458
+ loadStormConfig
391459
+ } = await import("@storm-software/config-tools");
391460
+ const stopwatch = getStopwatch(name);
391445
391461
  let options8 = _options;
391446
391462
  let config;
391447
391463
  try {
391448
- (0, import_config_tools3.writeInfo)(config, `\u26A1 Running the ${name} generator...
391464
+ writeInfo(config, `\u26A1 Running the ${name} generator...
391449
391465
 
391450
391466
  `);
391451
- const workspaceRoot = (0, import_config_tools4.findWorkspaceRootSafe)();
391467
+ const workspaceRoot = findWorkspaceRootSafe();
391452
391468
  if (!generatorOptions.skipReadingConfig) {
391453
- const { loadStormConfig } = await import("@storm-software/config-tools");
391454
- (0, import_config_tools3.writeDebug)(
391469
+ writeDebug(
391455
391470
  config,
391456
391471
  `Loading the Storm Config from environment variables and storm.config.js file...
391457
391472
  - workspaceRoot: ${workspaceRoot}`
391458
391473
  );
391459
391474
  config = await loadStormConfig(workspaceRoot);
391460
- (0, import_config_tools3.writeTrace)(
391475
+ writeTrace(
391461
391476
  config,
391462
391477
  `Loaded Storm config into env:
391463
391478
  ${Object.keys(process.env).map((key2) => ` - ${key2}=${JSON.stringify(process.env[key2])}`).join("\n")}`
391464
391479
  );
391465
391480
  }
391466
391481
  if (generatorOptions?.hooks?.applyDefaultOptions) {
391467
- (0, import_config_tools3.writeDebug)(config, "Running the applyDefaultOptions hook...");
391482
+ writeDebug(config, "Running the applyDefaultOptions hook...");
391468
391483
  options8 = await Promise.resolve(
391469
391484
  generatorOptions.hooks.applyDefaultOptions(options8, config)
391470
391485
  );
391471
- (0, import_config_tools3.writeDebug)(config, "Completed the applyDefaultOptions hook");
391486
+ writeDebug(config, "Completed the applyDefaultOptions hook");
391472
391487
  }
391473
- (0, import_config_tools3.writeTrace)(
391488
+ writeTrace(
391474
391489
  config,
391475
391490
  `Generator schema options \u2699\uFE0F
391476
391491
  ${Object.keys(options8 ?? {}).map((key2) => ` - ${key2}=${JSON.stringify(options8[key2])}`).join("\n")}`
@@ -391481,9 +391496,9 @@ ${Object.keys(options8 ?? {}).map((key2) => ` - ${key2}=${JSON.stringify(options
391481
391496
  applyWorkspaceGeneratorTokens
391482
391497
  );
391483
391498
  if (generatorOptions?.hooks?.preProcess) {
391484
- (0, import_config_tools3.writeDebug)(config, "Running the preProcess hook...");
391499
+ writeDebug(config, "Running the preProcess hook...");
391485
391500
  await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
391486
- (0, import_config_tools3.writeDebug)(config, "Completed the preProcess hook");
391501
+ writeDebug(config, "Completed the preProcess hook");
391487
391502
  }
391488
391503
  const result = await Promise.resolve(generatorFn(tree, tokenized, config));
391489
391504
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
@@ -391492,22 +391507,22 @@ ${Object.keys(options8 ?? {}).map((key2) => ` - ${key2}=${JSON.stringify(options
391492
391507
  });
391493
391508
  }
391494
391509
  if (generatorOptions?.hooks?.postProcess) {
391495
- (0, import_config_tools3.writeDebug)(config, "Running the postProcess hook...");
391510
+ writeDebug(config, "Running the postProcess hook...");
391496
391511
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
391497
- (0, import_config_tools3.writeDebug)(config, "Completed the postProcess hook");
391512
+ writeDebug(config, "Completed the postProcess hook");
391498
391513
  }
391499
- (0, import_config_tools3.writeSuccess)(config, `Completed running the ${name} task executor!
391514
+ writeSuccess(config, `Completed running the ${name} task executor!
391500
391515
  `);
391501
391516
  return {
391502
391517
  ...result,
391503
391518
  success: true
391504
391519
  };
391505
391520
  } catch (error) {
391506
- (0, import_config_tools3.writeFatal)(
391521
+ writeFatal(
391507
391522
  config,
391508
391523
  "A fatal error occurred while running the generator - the process was forced to terminate"
391509
391524
  );
391510
- (0, import_config_tools3.writeError)(
391525
+ writeError(
391511
391526
  config,
391512
391527
  `An exception was thrown in the generator's process
391513
391528
  - Details: ${error.message}
@@ -176229,20 +176229,20 @@ var require_typescript = __commonJS({
176229
176229
  })();
176230
176230
  }
176231
176231
  });
176232
- var LogLevel4, Debug;
176232
+ var LogLevel, Debug;
176233
176233
  var init_debug = __esm2({
176234
176234
  "src/compiler/debug.ts"() {
176235
176235
  "use strict";
176236
176236
  init_ts2();
176237
176237
  init_ts2();
176238
- LogLevel4 = /* @__PURE__ */ ((LogLevel32) => {
176239
- LogLevel32[LogLevel32["Off"] = 0] = "Off";
176240
- LogLevel32[LogLevel32["Error"] = 1] = "Error";
176241
- LogLevel32[LogLevel32["Warning"] = 2] = "Warning";
176242
- LogLevel32[LogLevel32["Info"] = 3] = "Info";
176243
- LogLevel32[LogLevel32["Verbose"] = 4] = "Verbose";
176244
- return LogLevel32;
176245
- })(LogLevel4 || {});
176238
+ LogLevel = /* @__PURE__ */ ((LogLevel3) => {
176239
+ LogLevel3[LogLevel3["Off"] = 0] = "Off";
176240
+ LogLevel3[LogLevel3["Error"] = 1] = "Error";
176241
+ LogLevel3[LogLevel3["Warning"] = 2] = "Warning";
176242
+ LogLevel3[LogLevel3["Info"] = 3] = "Info";
176243
+ LogLevel3[LogLevel3["Verbose"] = 4] = "Verbose";
176244
+ return LogLevel3;
176245
+ })(LogLevel || {});
176246
176246
  ((Debug2) => {
176247
176247
  let currentAssertionLevel = 0;
176248
176248
  Debug2.currentLogLevel = 2;
@@ -358811,12 +358811,12 @@ ${options8.prefix}` : "\n" : options8.prefix
358811
358811
  "src/server/utilitiesPublic.ts"() {
358812
358812
  "use strict";
358813
358813
  init_ts7();
358814
- LogLevel22 = /* @__PURE__ */ ((LogLevel32) => {
358815
- LogLevel32[LogLevel32["terse"] = 0] = "terse";
358816
- LogLevel32[LogLevel32["normal"] = 1] = "normal";
358817
- LogLevel32[LogLevel32["requestTime"] = 2] = "requestTime";
358818
- LogLevel32[LogLevel32["verbose"] = 3] = "verbose";
358819
- return LogLevel32;
358814
+ LogLevel22 = /* @__PURE__ */ ((LogLevel3) => {
358815
+ LogLevel3[LogLevel3["terse"] = 0] = "terse";
358816
+ LogLevel3[LogLevel3["normal"] = 1] = "normal";
358817
+ LogLevel3[LogLevel3["requestTime"] = 2] = "requestTime";
358818
+ LogLevel3[LogLevel3["verbose"] = 3] = "verbose";
358819
+ return LogLevel3;
358820
358820
  })(LogLevel22 || {});
358821
358821
  emptyArray22 = createSortedArray22();
358822
358822
  Msg2 = /* @__PURE__ */ ((Msg22) => {
@@ -370347,7 +370347,7 @@ ${e3.message}`;
370347
370347
  LanguageVariant: () => LanguageVariant,
370348
370348
  LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
370349
370349
  ListFormat: () => ListFormat,
370350
- LogLevel: () => LogLevel4,
370350
+ LogLevel: () => LogLevel,
370351
370351
  MemberOverrideStatus: () => MemberOverrideStatus,
370352
370352
  ModifierFlags: () => ModifierFlags,
370353
370353
  ModuleDetectionKind: () => ModuleDetectionKind,
@@ -372751,7 +372751,7 @@ ${e3.message}`;
372751
372751
  LanguageVariant: () => LanguageVariant,
372752
372752
  LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
372753
372753
  ListFormat: () => ListFormat,
372754
- LogLevel: () => LogLevel4,
372754
+ LogLevel: () => LogLevel,
372755
372755
  MemberOverrideStatus: () => MemberOverrideStatus,
372756
372756
  ModifierFlags: () => ModifierFlags,
372757
372757
  ModuleDetectionKind: () => ModuleDetectionKind,
@@ -448948,7 +448948,6 @@ module.exports = __toCommonJS(executor_exports);
448948
448948
  var import_node_fs = require("node:fs");
448949
448949
  var import_devkit3 = __toESM(require_devkit());
448950
448950
  var import_js = __toESM(require_src5());
448951
- var import_config_tools5 = require("@storm-software/config-tools");
448952
448951
  var import_fs_extra = __toESM(require_lib4());
448953
448952
 
448954
448953
  // node_modules/.pnpm/minimatch@9.0.3/node_modules/minimatch/dist/mjs/index.js
@@ -455128,9 +455127,6 @@ glob.glob = glob;
455128
455127
  // packages/workspace-tools/src/executors/tsup/executor.ts
455129
455128
  var import_fileutils = require("nx/src/utils/fileutils.js");
455130
455129
 
455131
- // packages/workspace-tools/src/base/base-executor.ts
455132
- var import_config_tools2 = require("@storm-software/config-tools");
455133
-
455134
455130
  // packages/workspace-tools/src/utils/apply-workspace-tokens.ts
455135
455131
  var import_config_tools = require("@storm-software/config-tools");
455136
455132
  var applyWorkspaceExecutorTokens = (option, tokenizerOptions) => {
@@ -455204,24 +455200,34 @@ var applyWorkspaceTokens = (options8, config, tokenizerFn) => {
455204
455200
 
455205
455201
  // packages/workspace-tools/src/base/base-executor.ts
455206
455202
  var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
455207
- const stopwatch = (0, import_config_tools2.getStopwatch)(name);
455203
+ const {
455204
+ getStopwatch,
455205
+ writeDebug,
455206
+ writeError,
455207
+ writeFatal,
455208
+ writeInfo,
455209
+ writeSuccess,
455210
+ writeTrace,
455211
+ findWorkspaceRoot: findWorkspaceRoot3,
455212
+ loadStormConfig
455213
+ } = await import("@storm-software/config-tools");
455214
+ const stopwatch = getStopwatch(name);
455208
455215
  let options8 = _options;
455209
455216
  let config;
455210
455217
  try {
455211
- (0, import_config_tools2.writeInfo)(config, `\u26A1 Running the ${name} executor...
455218
+ writeInfo(config, `\u26A1 Running the ${name} executor...
455212
455219
  `);
455213
455220
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
455214
455221
  throw new Error(
455215
455222
  "The Build process failed because the context is not valid. Please run this command from a workspace."
455216
455223
  );
455217
455224
  }
455218
- const workspaceRoot = (0, import_config_tools2.findWorkspaceRoot)();
455225
+ const workspaceRoot = findWorkspaceRoot3();
455219
455226
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
455220
455227
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
455221
455228
  const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
455222
455229
  if (!executorOptions.skipReadingConfig) {
455223
- const { loadStormConfig } = await import("@storm-software/config-tools");
455224
- (0, import_config_tools2.writeDebug)(
455230
+ writeDebug(
455225
455231
  config,
455226
455232
  `Loading the Storm Config from environment variables and storm.config.js file...
455227
455233
  - workspaceRoot: ${workspaceRoot}
@@ -455231,7 +455237,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
455231
455237
  `
455232
455238
  );
455233
455239
  config = await loadStormConfig(workspaceRoot);
455234
- (0, import_config_tools2.writeTrace)(
455240
+ writeTrace(
455235
455241
  config,
455236
455242
  `Loaded Storm config into env:
455237
455243
  ${Object.keys(process.env).filter((key2) => key2.startsWith("STORM_")).map(
@@ -455240,11 +455246,11 @@ ${Object.keys(process.env).filter((key2) => key2.startsWith("STORM_")).map(
455240
455246
  );
455241
455247
  }
455242
455248
  if (executorOptions?.hooks?.applyDefaultOptions) {
455243
- (0, import_config_tools2.writeDebug)(config, "Running the applyDefaultOptions hook...");
455249
+ writeDebug(config, "Running the applyDefaultOptions hook...");
455244
455250
  options8 = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options8, config));
455245
- (0, import_config_tools2.writeDebug)(config, "Completed the applyDefaultOptions hook");
455251
+ writeDebug(config, "Completed the applyDefaultOptions hook");
455246
455252
  }
455247
- (0, import_config_tools2.writeTrace)(
455253
+ writeTrace(
455248
455254
  config,
455249
455255
  `Executor schema options \u2699\uFE0F
455250
455256
  ${Object.keys(options8).map(
@@ -455265,9 +455271,9 @@ ${Object.keys(options8).map(
455265
455271
  applyWorkspaceExecutorTokens
455266
455272
  );
455267
455273
  if (executorOptions?.hooks?.preProcess) {
455268
- (0, import_config_tools2.writeDebug)(config, "Running the preProcess hook...");
455274
+ writeDebug(config, "Running the preProcess hook...");
455269
455275
  await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
455270
- (0, import_config_tools2.writeDebug)(config, "Completed the preProcess hook");
455276
+ writeDebug(config, "Completed the preProcess hook");
455271
455277
  }
455272
455278
  const result = await Promise.resolve(executorFn(tokenized, context, config));
455273
455279
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
@@ -455276,21 +455282,21 @@ ${Object.keys(options8).map(
455276
455282
  });
455277
455283
  }
455278
455284
  if (executorOptions?.hooks?.postProcess) {
455279
- (0, import_config_tools2.writeDebug)(config, "Running the postProcess hook...");
455285
+ writeDebug(config, "Running the postProcess hook...");
455280
455286
  await Promise.resolve(executorOptions.hooks.postProcess(config));
455281
- (0, import_config_tools2.writeDebug)(config, "Completed the postProcess hook");
455287
+ writeDebug(config, "Completed the postProcess hook");
455282
455288
  }
455283
- (0, import_config_tools2.writeSuccess)(config, `Completed running the ${name} task executor!
455289
+ writeSuccess(config, `Completed running the ${name} task executor!
455284
455290
  `);
455285
455291
  return {
455286
455292
  success: true
455287
455293
  };
455288
455294
  } catch (error) {
455289
- (0, import_config_tools2.writeFatal)(
455295
+ writeFatal(
455290
455296
  config,
455291
455297
  "A fatal error occurred while running the executor - the process was forced to terminate"
455292
455298
  );
455293
- (0, import_config_tools2.writeError)(
455299
+ writeError(
455294
455300
  config,
455295
455301
  `An exception was thrown in the executor's process
455296
455302
  - Details: ${error.message}
@@ -455325,8 +455331,8 @@ var removeExtension = (filePath) => {
455325
455331
 
455326
455332
  // packages/workspace-tools/src/utils/get-project-configurations.ts
455327
455333
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
455328
- var import_config_tools3 = require("@storm-software/config-tools");
455329
- var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)((0, import_config_tools3.findWorkspaceRoot)());
455334
+ var import_config_tools2 = require("@storm-software/config-tools");
455335
+ var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)((0, import_config_tools2.findWorkspaceRoot)());
455330
455336
 
455331
455337
  // packages/workspace-tools/src/utils/get-project-deps.ts
455332
455338
  function getExtraDependencies(projectName, graph) {
@@ -455367,7 +455373,6 @@ var import_esbuild_decorators = __toESM(require_src6());
455367
455373
  var import_devkit2 = __toESM(require_devkit());
455368
455374
  var import_get_custom_transformers_factory = __toESM(require_get_custom_transformers_factory());
455369
455375
  var import_normalize_options = __toESM(require_normalize_options());
455370
- var import_config_tools4 = require("@storm-software/config-tools");
455371
455376
 
455372
455377
  // node_modules/.pnpm/esbuild-plugin-define@0.4.0_esbuild@0.19.12/node_modules/esbuild-plugin-define/dist/mjs/utils.js
455373
455378
  var makeKey = (...inputs) => inputs.filter((input) => !!input).join(".");
@@ -455556,7 +455561,8 @@ var applyDefaultOptions = (options8) => {
455556
455561
  return options8;
455557
455562
  };
455558
455563
  var runTsupBuild = async (context, config, options8) => {
455559
- const workspaceRoot = config?.workspaceRoot ?? (0, import_config_tools4.findWorkspaceRoot)();
455564
+ const { LogLevel, getLogLevel, writeInfo, writeWarning, findWorkspaceRoot: findWorkspaceRoot3 } = await import("@storm-software/config-tools");
455565
+ const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot3();
455560
455566
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
455561
455567
  ret[key2] = options8.env?.[key2];
455562
455568
  return ret;
@@ -455615,7 +455621,7 @@ ${options8.banner}
455615
455621
  outputPath: options8.outputPath
455616
455622
  };
455617
455623
  if (options8.getConfig) {
455618
- (0, import_config_tools4.writeInfo)(config, "\u26A1 Running the Build process");
455624
+ writeInfo(config, "\u26A1 Running the Build process");
455619
455625
  const getConfigFns = [options8.getConfig];
455620
455626
  const tsupConfig = (0, import_tsup.defineConfig)(
455621
455627
  getConfigFns.map(
@@ -455628,8 +455634,8 @@ ${options8.banner}
455628
455634
  } else {
455629
455635
  await build(tsupConfig, config);
455630
455636
  }
455631
- } else if ((0, import_config_tools4.getLogLevel)(config?.logLevel ?? "debug") >= import_config_tools4.LogLevel.WARN) {
455632
- (0, import_config_tools4.writeWarning)(
455637
+ } else if (getLogLevel(config?.logLevel ?? "debug") >= LogLevel.WARN) {
455638
+ writeWarning(
455633
455639
  config,
455634
455640
  "The Build process did not run because no `getConfig` parameter was provided"
455635
455641
  );
@@ -455664,6 +455670,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
455664
455670
  return tsConfig;
455665
455671
  }
455666
455672
  var build = async (options8, config) => {
455673
+ const { writeDebug } = await import("@storm-software/config-tools");
455667
455674
  if (Array.isArray(options8)) {
455668
455675
  await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
455669
455676
  } else {
@@ -455671,7 +455678,7 @@ var build = async (options8, config) => {
455671
455678
  if (_isFunction2(tsupOptions)) {
455672
455679
  tsupOptions = await Promise.resolve(tsupOptions({}));
455673
455680
  }
455674
- (0, import_config_tools4.writeDebug)(
455681
+ writeDebug(
455675
455682
  config,
455676
455683
  `\u2699\uFE0F Tsup Build options:
455677
455684
  ${!_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
@@ -455711,8 +455718,18 @@ var createTypeScriptCompilationOptions = (normalizedOptions, projectName) => {
455711
455718
 
455712
455719
  // packages/workspace-tools/src/executors/tsup/executor.ts
455713
455720
  async function tsupExecutorFn(options8, context, config) {
455714
- (0, import_config_tools5.writeInfo)(config, "\u{1F4E6} Running Storm build executor on the workspace");
455715
- (0, import_config_tools5.getLogLevel)(config?.logLevel) >= import_config_tools5.LogLevel.TRACE && (0, import_config_tools5.writeDebug)(
455721
+ const {
455722
+ LogLevel,
455723
+ getLogLevel,
455724
+ writeDebug,
455725
+ writeInfo,
455726
+ writeSuccess,
455727
+ writeTrace,
455728
+ writeWarning,
455729
+ findWorkspaceRoot: findWorkspaceRoot3
455730
+ } = await import("@storm-software/config-tools");
455731
+ writeInfo(config, "\u{1F4E6} Running Storm build executor on the workspace");
455732
+ writeDebug(
455716
455733
  config,
455717
455734
  `\u2699\uFE0F Executor options:
455718
455735
  ${Object.keys(options8).map(
@@ -455725,11 +455742,11 @@ ${Object.keys(options8).map(
455725
455742
  "The Build process failed because the context is not valid. Please run this command from a workspace."
455726
455743
  );
455727
455744
  }
455728
- const workspaceRoot = (0, import_config_tools5.findWorkspaceRoot)();
455745
+ const workspaceRoot = findWorkspaceRoot3();
455729
455746
  const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
455730
455747
  const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
455731
455748
  if (options8.clean !== false) {
455732
- (0, import_config_tools5.writeInfo)(config, `\u{1F9F9} Cleaning output path: ${options8.outputPath}`);
455749
+ writeInfo(config, `\u{1F9F9} Cleaning output path: ${options8.outputPath}`);
455733
455750
  (0, import_fs_extra.removeSync)(options8.outputPath);
455734
455751
  }
455735
455752
  const assets = Array.from(options8.assets);
@@ -455798,13 +455815,13 @@ ${Object.keys(options8).map(
455798
455815
  const implicitDependencies = context.projectsConfigurations.projects[context.projectName]?.implicitDependencies;
455799
455816
  const internalDependencies = [];
455800
455817
  const projectConfigs = await Promise.resolve(getProjectConfigurations());
455801
- if ((0, import_config_tools5.getLogLevel)(config?.logLevel) >= import_config_tools5.LogLevel.TRACE) {
455802
- (0, import_config_tools5.writeDebug)(config, "Project Configs:");
455818
+ if (getLogLevel(config?.logLevel) >= LogLevel.TRACE) {
455819
+ writeDebug(config, "Project Configs:");
455803
455820
  console.log(projectConfigs);
455804
455821
  }
455805
455822
  if (implicitDependencies && implicitDependencies.length > 0) {
455806
455823
  options8.external = implicitDependencies.reduce((ret, key2) => {
455807
- (0, import_config_tools5.writeDebug)(config, `\u26A1 Adding implicit dependency: ${key2}`);
455824
+ writeDebug(config, `\u26A1 Adding implicit dependency: ${key2}`);
455808
455825
  const projectConfig = projectConfigs[key2];
455809
455826
  if (projectConfig?.targets?.build) {
455810
455827
  const projectPackageJson = (0, import_devkit3.readJsonFile)(projectConfig.targets?.build.options.project);
@@ -455829,7 +455846,7 @@ ${Object.keys(options8).map(
455829
455846
  externalDependencies.push(thirdPartyDependency);
455830
455847
  }
455831
455848
  }
455832
- (0, import_config_tools5.writeTrace)(
455849
+ writeTrace(
455833
455850
  config,
455834
455851
  `Building with the following dependencies marked as external:
455835
455852
  ${externalDependencies.map((dep) => {
@@ -455856,7 +455873,7 @@ ${externalDependencies.map((dep) => {
455856
455873
  while (propertyKey.startsWith("/")) {
455857
455874
  propertyKey = propertyKey.substring(1);
455858
455875
  }
455859
- (0, import_config_tools5.writeDebug)(
455876
+ writeDebug(
455860
455877
  config,
455861
455878
  `Trying to add entry point ${propertyKey} at "${(0, import_devkit3.joinPathFragments)(
455862
455879
  filePath.path,
@@ -455976,10 +455993,10 @@ ${externalDependencies.map((dep) => {
455976
455993
  packageJson.repository ??= workspacePackageJson.repository;
455977
455994
  packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_devkit3.joinPathFragments)("packages", context.projectName);
455978
455995
  const packageJsonPath = (0, import_devkit3.joinPathFragments)(context.root, options8.outputPath, "package.json");
455979
- (0, import_config_tools5.writeDebug)(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
455996
+ writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
455980
455997
  (0, import_node_fs.writeFileSync)(packageJsonPath, JSON.stringify(packageJson));
455981
455998
  } else {
455982
- (0, import_config_tools5.writeWarning)(config, "Skipping writing to package.json file");
455999
+ writeWarning(config, "Skipping writing to package.json file");
455983
456000
  }
455984
456001
  if (options8.includeSrc === true) {
455985
456002
  const files = globSync([
@@ -456015,7 +456032,7 @@ ${(0, import_node_fs.readFileSync)(file, "utf-8")}`,
456015
456032
  )
456016
456033
  )
456017
456034
  );
456018
- (0, import_config_tools5.writeSuccess)(config, "\u26A1 The Build process has completed successfully");
456035
+ writeSuccess(config, "\u26A1 The Build process has completed successfully");
456019
456036
  return {
456020
456037
  success: true
456021
456038
  };