@storm-software/workspace-tools 1.49.23 → 1.49.25

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.49.23",
3
+ "version": "1.49.25",
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
@@ -50125,7 +50125,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
50125
50125
  writeTrace(
50126
50126
  config,
50127
50127
  `Loaded Storm config into env:
50128
- ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`
50128
+ ${Object.keys(process.env).map(
50129
+ (key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
50130
+ ).join("\n")}`
50129
50131
  );
50130
50132
  }
50131
50133
  if (executorOptions?.hooks?.applyDefaultOptions) {
@@ -50136,7 +50138,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
50136
50138
  writeTrace(
50137
50139
  config,
50138
50140
  `Executor schema options \u2699\uFE0F
50139
- ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`
50141
+ ${Object.keys(options).map(
50142
+ (key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
50143
+ ).join("\n")}`
50140
50144
  );
50141
50145
  const tokenized = applyWorkspaceTokens(
50142
50146
  options,
@@ -50190,6 +50194,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
50190
50194
  stopwatch();
50191
50195
  }
50192
50196
  };
50197
+ var _isFunction = (value) => {
50198
+ try {
50199
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
50200
+ } catch (e) {
50201
+ return false;
50202
+ }
50203
+ };
50193
50204
 
50194
50205
  // packages/workspace-tools/src/base/base-generator.ts
50195
50206
  var withRunGenerator = (name, generatorFn, generatorOptions = {
@@ -67820,7 +67820,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
67820
67820
  writeTrace(
67821
67821
  config,
67822
67822
  `Loaded Storm config into env:
67823
- ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`
67823
+ ${Object.keys(process.env).map(
67824
+ (key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
67825
+ ).join("\n")}`
67824
67826
  );
67825
67827
  }
67826
67828
  if (executorOptions?.hooks?.applyDefaultOptions) {
@@ -67831,7 +67833,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
67831
67833
  writeTrace(
67832
67834
  config,
67833
67835
  `Executor schema options \u2699\uFE0F
67834
- ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`
67836
+ ${Object.keys(options).map(
67837
+ (key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
67838
+ ).join("\n")}`
67835
67839
  );
67836
67840
  const tokenized = applyWorkspaceTokens(
67837
67841
  options,
@@ -67885,6 +67889,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
67885
67889
  stopwatch();
67886
67890
  }
67887
67891
  };
67892
+ var _isFunction = (value2) => {
67893
+ try {
67894
+ return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
67895
+ } catch (e) {
67896
+ return false;
67897
+ }
67898
+ };
67888
67899
 
67889
67900
  // packages/workspace-tools/src/executors/design-tokens/executor.ts
67890
67901
  var designTokensExecutorFn = (options, context, config) => {
@@ -115134,7 +115134,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
115134
115134
  writeTrace(
115135
115135
  config,
115136
115136
  `Loaded Storm config into env:
115137
- ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`
115137
+ ${Object.keys(process.env).map(
115138
+ (key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
115139
+ ).join("\n")}`
115138
115140
  );
115139
115141
  }
115140
115142
  if (executorOptions?.hooks?.applyDefaultOptions) {
@@ -115145,7 +115147,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
115145
115147
  writeTrace(
115146
115148
  config,
115147
115149
  `Executor schema options \u2699\uFE0F
115148
- ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`
115150
+ ${Object.keys(options).map(
115151
+ (key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
115152
+ ).join("\n")}`
115149
115153
  );
115150
115154
  const tokenized = applyWorkspaceTokens(
115151
115155
  options,
@@ -115199,6 +115203,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
115199
115203
  stopwatch();
115200
115204
  }
115201
115205
  };
115206
+ var _isFunction = (value) => {
115207
+ try {
115208
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
115209
+ } catch (e) {
115210
+ return false;
115211
+ }
115212
+ };
115202
115213
 
115203
115214
  // packages/workspace-tools/src/utils/file-path-utils.ts
115204
115215
  var removeExtension = (filePath) => {
@@ -115410,7 +115421,9 @@ var applyDefaultOptions = (options) => {
115410
115421
  options.skipNativeModulesPlugin ??= false;
115411
115422
  options.define ??= {};
115412
115423
  options.env ??= {};
115413
- options.getConfig ??= defaultConfig;
115424
+ if (options.getConfig) {
115425
+ options.getConfig = defaultConfig;
115426
+ }
115414
115427
  return options;
115415
115428
  };
115416
115429
  var runTsupBuild = async (context, config, options) => {
@@ -115469,21 +115482,21 @@ ${options.banner}
115469
115482
  };
115470
115483
  if (options.getConfig) {
115471
115484
  writeInfo(config, "\u26A1 Running the Build process");
115472
- writeDebug(
115473
- config,
115474
- `\u2699\uFE0F Build options:
115475
- ${Object.keys(options).map(
115476
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
115477
- ).join("\n")}
115478
- `
115479
- );
115480
115485
  const getConfigFns = [options.getConfig];
115481
115486
  const tsupConfig = (0, import_tsup.defineConfig)(
115482
115487
  getConfigFns.map(
115483
115488
  (getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
115484
115489
  )
115485
115490
  );
115486
- if (_isFunction(tsupConfig)) {
115491
+ writeDebug(
115492
+ config,
115493
+ `\u2699\uFE0F Build options:
115494
+ ${_isFunction2(tsupConfig) ? Object.keys(tsupConfig).map(
115495
+ (key) => `${key}: ${!tsupConfig[key] || _isPrimitive(tsupConfig[key]) ? tsupConfig[key] : _isFunction2(tsupConfig[key]) ? "<function>" : JSON.stringify(tsupConfig[key])}`
115496
+ ).join("\n") : "<function>"}
115497
+ `
115498
+ );
115499
+ if (_isFunction2(tsupConfig)) {
115487
115500
  await build(await Promise.resolve(tsupConfig({})), config);
115488
115501
  } else {
115489
115502
  await build(tsupConfig, config);
@@ -115533,7 +115546,6 @@ var build = async (options, config) => {
115533
115546
  console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
115534
115547
  }
115535
115548
  await (0, import_tsup.build)(options);
115536
- await new Promise((r) => setTimeout(r, 100));
115537
115549
  }
115538
115550
  };
115539
115551
  var _isPrimitive = (value) => {
@@ -115543,7 +115555,7 @@ var _isPrimitive = (value) => {
115543
115555
  return false;
115544
115556
  }
115545
115557
  };
115546
- var _isFunction = (value) => {
115558
+ var _isFunction2 = (value) => {
115547
115559
  try {
115548
115560
  return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
115549
115561
  } catch (e) {
@@ -115570,7 +115582,7 @@ async function tsupExecutorFn(options, context, config) {
115570
115582
  config,
115571
115583
  `\u2699\uFE0F Executor options:
115572
115584
  ${Object.keys(options).map(
115573
- (key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
115585
+ (key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
115574
115586
  ).join("\n")}
115575
115587
  `
115576
115588
  );
@@ -115898,7 +115910,8 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115898
115910
  config,
115899
115911
  {
115900
115912
  ...options,
115901
- outputPath
115913
+ outputPath,
115914
+ getConfig: options.getConfig
115902
115915
  }
115903
115916
  );
115904
115917
  })
@@ -115921,6 +115934,13 @@ var _isPrimitive2 = (value) => {
115921
115934
  return false;
115922
115935
  }
115923
115936
  };
115937
+ var _isFunction3 = (value) => {
115938
+ try {
115939
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
115940
+ } catch (e) {
115941
+ return false;
115942
+ }
115943
+ };
115924
115944
  // Annotate the CommonJS export names for ESM import in node:
115925
115945
  0 && (module.exports = {
115926
115946
  tsupExecutorFn
@@ -108949,7 +108949,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
108949
108949
  writeTrace(
108950
108950
  config,
108951
108951
  `Loaded Storm config into env:
108952
- ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`
108952
+ ${Object.keys(process.env).map(
108953
+ (key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
108954
+ ).join("\n")}`
108953
108955
  );
108954
108956
  }
108955
108957
  if (executorOptions?.hooks?.applyDefaultOptions) {
@@ -108960,7 +108962,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
108960
108962
  writeTrace(
108961
108963
  config,
108962
108964
  `Executor schema options \u2699\uFE0F
108963
- ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`
108965
+ ${Object.keys(options).map(
108966
+ (key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
108967
+ ).join("\n")}`
108964
108968
  );
108965
108969
  const tokenized = applyWorkspaceTokens(
108966
108970
  options,
@@ -109014,6 +109018,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
109014
109018
  stopwatch();
109015
109019
  }
109016
109020
  };
109021
+ var _isFunction = (value) => {
109022
+ try {
109023
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
109024
+ } catch (e) {
109025
+ return false;
109026
+ }
109027
+ };
109017
109028
 
109018
109029
  // packages/workspace-tools/src/utils/get-file-banner.ts
109019
109030
  var getFileBanner = (name, commentStart = "//") => {
@@ -109029,7 +109040,7 @@ ${commentStart} ${padding}Storm Software
109029
109040
  ${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
109030
109041
  ${commentStart}
109031
109042
  ${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
109032
- ${commentStart} is maintained by Storm Software under the {${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
109043
+ ${commentStart} is maintained by Storm Software under the ${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
109033
109044
  ${commentStart} free for commercial and private use. For more information, please visit
109034
109045
  ${commentStart} our licensing page.
109035
109046
  ${commentStart}
@@ -109233,7 +109244,9 @@ var applyDefaultOptions = (options) => {
109233
109244
  options.skipNativeModulesPlugin ??= false;
109234
109245
  options.define ??= {};
109235
109246
  options.env ??= {};
109236
- options.getConfig ??= defaultConfig;
109247
+ if (options.getConfig) {
109248
+ options.getConfig = defaultConfig;
109249
+ }
109237
109250
  return options;
109238
109251
  };
109239
109252
  var runTsupBuild = async (context, config, options) => {
@@ -109292,21 +109305,21 @@ ${options.banner}
109292
109305
  };
109293
109306
  if (options.getConfig) {
109294
109307
  writeInfo(config, "\u26A1 Running the Build process");
109295
- writeDebug(
109296
- config,
109297
- `\u2699\uFE0F Build options:
109298
- ${Object.keys(options).map(
109299
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
109300
- ).join("\n")}
109301
- `
109302
- );
109303
109308
  const getConfigFns = [options.getConfig];
109304
109309
  const tsupConfig = (0, import_tsup.defineConfig)(
109305
109310
  getConfigFns.map(
109306
109311
  (getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
109307
109312
  )
109308
109313
  );
109309
- if (_isFunction(tsupConfig)) {
109314
+ writeDebug(
109315
+ config,
109316
+ `\u2699\uFE0F Build options:
109317
+ ${_isFunction2(tsupConfig) ? Object.keys(tsupConfig).map(
109318
+ (key) => `${key}: ${!tsupConfig[key] || _isPrimitive(tsupConfig[key]) ? tsupConfig[key] : _isFunction2(tsupConfig[key]) ? "<function>" : JSON.stringify(tsupConfig[key])}`
109319
+ ).join("\n") : "<function>"}
109320
+ `
109321
+ );
109322
+ if (_isFunction2(tsupConfig)) {
109310
109323
  await build(await Promise.resolve(tsupConfig({})), config);
109311
109324
  } else {
109312
109325
  await build(tsupConfig, config);
@@ -109356,7 +109369,6 @@ var build = async (options, config) => {
109356
109369
  console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
109357
109370
  }
109358
109371
  await (0, import_tsup.build)(options);
109359
- await new Promise((r) => setTimeout(r, 100));
109360
109372
  }
109361
109373
  };
109362
109374
  var _isPrimitive = (value) => {
@@ -109366,7 +109378,7 @@ var _isPrimitive = (value) => {
109366
109378
  return false;
109367
109379
  }
109368
109380
  };
109369
- var _isFunction = (value) => {
109381
+ var _isFunction2 = (value) => {
109370
109382
  try {
109371
109383
  return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
109372
109384
  } catch (e) {
@@ -115600,7 +115612,7 @@ async function tsupExecutorFn(options, context, config) {
115600
115612
  config,
115601
115613
  `\u2699\uFE0F Executor options:
115602
115614
  ${Object.keys(options).map(
115603
- (key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
115615
+ (key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
115604
115616
  ).join("\n")}
115605
115617
  `
115606
115618
  );
@@ -115928,7 +115940,8 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115928
115940
  config,
115929
115941
  {
115930
115942
  ...options,
115931
- outputPath
115943
+ outputPath,
115944
+ getConfig: options.getConfig
115932
115945
  }
115933
115946
  );
115934
115947
  })
@@ -115951,6 +115964,13 @@ var _isPrimitive2 = (value) => {
115951
115964
  return false;
115952
115965
  }
115953
115966
  };
115967
+ var _isFunction3 = (value) => {
115968
+ try {
115969
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
115970
+ } catch (e) {
115971
+ return false;
115972
+ }
115973
+ };
115954
115974
 
115955
115975
  // packages/workspace-tools/src/executors/tsup-browser/get-config.ts
115956
115976
  var import_devkit4 = __toESM(require_devkit());
@@ -108949,7 +108949,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
108949
108949
  writeTrace(
108950
108950
  config,
108951
108951
  `Loaded Storm config into env:
108952
- ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`
108952
+ ${Object.keys(process.env).map(
108953
+ (key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
108954
+ ).join("\n")}`
108953
108955
  );
108954
108956
  }
108955
108957
  if (executorOptions?.hooks?.applyDefaultOptions) {
@@ -108960,7 +108962,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
108960
108962
  writeTrace(
108961
108963
  config,
108962
108964
  `Executor schema options \u2699\uFE0F
108963
- ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`
108965
+ ${Object.keys(options).map(
108966
+ (key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
108967
+ ).join("\n")}`
108964
108968
  );
108965
108969
  const tokenized = applyWorkspaceTokens(
108966
108970
  options,
@@ -109014,6 +109018,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
109014
109018
  stopwatch();
109015
109019
  }
109016
109020
  };
109021
+ var _isFunction = (value) => {
109022
+ try {
109023
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
109024
+ } catch (e) {
109025
+ return false;
109026
+ }
109027
+ };
109017
109028
 
109018
109029
  // packages/workspace-tools/src/utils/get-file-banner.ts
109019
109030
  var getFileBanner = (name, commentStart = "//") => {
@@ -109029,7 +109040,7 @@ ${commentStart} ${padding}Storm Software
109029
109040
  ${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
109030
109041
  ${commentStart}
109031
109042
  ${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
109032
- ${commentStart} is maintained by Storm Software under the {${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
109043
+ ${commentStart} is maintained by Storm Software under the ${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
109033
109044
  ${commentStart} free for commercial and private use. For more information, please visit
109034
109045
  ${commentStart} our licensing page.
109035
109046
  ${commentStart}
@@ -109233,7 +109244,9 @@ var applyDefaultOptions = (options) => {
109233
109244
  options.skipNativeModulesPlugin ??= false;
109234
109245
  options.define ??= {};
109235
109246
  options.env ??= {};
109236
- options.getConfig ??= defaultConfig;
109247
+ if (options.getConfig) {
109248
+ options.getConfig = defaultConfig;
109249
+ }
109237
109250
  return options;
109238
109251
  };
109239
109252
  var runTsupBuild = async (context, config, options) => {
@@ -109292,21 +109305,21 @@ ${options.banner}
109292
109305
  };
109293
109306
  if (options.getConfig) {
109294
109307
  writeInfo(config, "\u26A1 Running the Build process");
109295
- writeDebug(
109296
- config,
109297
- `\u2699\uFE0F Build options:
109298
- ${Object.keys(options).map(
109299
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
109300
- ).join("\n")}
109301
- `
109302
- );
109303
109308
  const getConfigFns = [options.getConfig];
109304
109309
  const tsupConfig = (0, import_tsup.defineConfig)(
109305
109310
  getConfigFns.map(
109306
109311
  (getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
109307
109312
  )
109308
109313
  );
109309
- if (_isFunction(tsupConfig)) {
109314
+ writeDebug(
109315
+ config,
109316
+ `\u2699\uFE0F Build options:
109317
+ ${_isFunction2(tsupConfig) ? Object.keys(tsupConfig).map(
109318
+ (key) => `${key}: ${!tsupConfig[key] || _isPrimitive(tsupConfig[key]) ? tsupConfig[key] : _isFunction2(tsupConfig[key]) ? "<function>" : JSON.stringify(tsupConfig[key])}`
109319
+ ).join("\n") : "<function>"}
109320
+ `
109321
+ );
109322
+ if (_isFunction2(tsupConfig)) {
109310
109323
  await build(await Promise.resolve(tsupConfig({})), config);
109311
109324
  } else {
109312
109325
  await build(tsupConfig, config);
@@ -109356,7 +109369,6 @@ var build = async (options, config) => {
109356
109369
  console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
109357
109370
  }
109358
109371
  await (0, import_tsup.build)(options);
109359
- await new Promise((r) => setTimeout(r, 100));
109360
109372
  }
109361
109373
  };
109362
109374
  var _isPrimitive = (value) => {
@@ -109366,7 +109378,7 @@ var _isPrimitive = (value) => {
109366
109378
  return false;
109367
109379
  }
109368
109380
  };
109369
- var _isFunction = (value) => {
109381
+ var _isFunction2 = (value) => {
109370
109382
  try {
109371
109383
  return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
109372
109384
  } catch (e) {
@@ -115600,7 +115612,7 @@ async function tsupExecutorFn(options, context, config) {
115600
115612
  config,
115601
115613
  `\u2699\uFE0F Executor options:
115602
115614
  ${Object.keys(options).map(
115603
- (key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
115615
+ (key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
115604
115616
  ).join("\n")}
115605
115617
  `
115606
115618
  );
@@ -115928,7 +115940,8 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115928
115940
  config,
115929
115941
  {
115930
115942
  ...options,
115931
- outputPath
115943
+ outputPath,
115944
+ getConfig: options.getConfig
115932
115945
  }
115933
115946
  );
115934
115947
  })
@@ -115951,6 +115964,13 @@ var _isPrimitive2 = (value) => {
115951
115964
  return false;
115952
115965
  }
115953
115966
  };
115967
+ var _isFunction3 = (value) => {
115968
+ try {
115969
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
115970
+ } catch (e) {
115971
+ return false;
115972
+ }
115973
+ };
115954
115974
 
115955
115975
  // packages/workspace-tools/src/executors/tsup-neutral/get-config.ts
115956
115976
  var import_devkit4 = __toESM(require_devkit());
@@ -108949,7 +108949,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
108949
108949
  writeTrace(
108950
108950
  config,
108951
108951
  `Loaded Storm config into env:
108952
- ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`
108952
+ ${Object.keys(process.env).map(
108953
+ (key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
108954
+ ).join("\n")}`
108953
108955
  );
108954
108956
  }
108955
108957
  if (executorOptions?.hooks?.applyDefaultOptions) {
@@ -108960,7 +108962,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
108960
108962
  writeTrace(
108961
108963
  config,
108962
108964
  `Executor schema options \u2699\uFE0F
108963
- ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`
108965
+ ${Object.keys(options).map(
108966
+ (key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
108967
+ ).join("\n")}`
108964
108968
  );
108965
108969
  const tokenized = applyWorkspaceTokens(
108966
108970
  options,
@@ -109014,6 +109018,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
109014
109018
  stopwatch();
109015
109019
  }
109016
109020
  };
109021
+ var _isFunction = (value) => {
109022
+ try {
109023
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
109024
+ } catch (e) {
109025
+ return false;
109026
+ }
109027
+ };
109017
109028
 
109018
109029
  // packages/workspace-tools/src/utils/get-file-banner.ts
109019
109030
  var getFileBanner = (name, commentStart = "//") => {
@@ -109029,7 +109040,7 @@ ${commentStart} ${padding}Storm Software
109029
109040
  ${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
109030
109041
  ${commentStart}
109031
109042
  ${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
109032
- ${commentStart} is maintained by Storm Software under the {${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
109043
+ ${commentStart} is maintained by Storm Software under the ${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
109033
109044
  ${commentStart} free for commercial and private use. For more information, please visit
109034
109045
  ${commentStart} our licensing page.
109035
109046
  ${commentStart}
@@ -109233,7 +109244,9 @@ var applyDefaultOptions = (options) => {
109233
109244
  options.skipNativeModulesPlugin ??= false;
109234
109245
  options.define ??= {};
109235
109246
  options.env ??= {};
109236
- options.getConfig ??= defaultConfig;
109247
+ if (options.getConfig) {
109248
+ options.getConfig = defaultConfig;
109249
+ }
109237
109250
  return options;
109238
109251
  };
109239
109252
  var runTsupBuild = async (context, config, options) => {
@@ -109292,21 +109305,21 @@ ${options.banner}
109292
109305
  };
109293
109306
  if (options.getConfig) {
109294
109307
  writeInfo(config, "\u26A1 Running the Build process");
109295
- writeDebug(
109296
- config,
109297
- `\u2699\uFE0F Build options:
109298
- ${Object.keys(options).map(
109299
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
109300
- ).join("\n")}
109301
- `
109302
- );
109303
109308
  const getConfigFns = [options.getConfig];
109304
109309
  const tsupConfig = (0, import_tsup.defineConfig)(
109305
109310
  getConfigFns.map(
109306
109311
  (getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
109307
109312
  )
109308
109313
  );
109309
- if (_isFunction(tsupConfig)) {
109314
+ writeDebug(
109315
+ config,
109316
+ `\u2699\uFE0F Build options:
109317
+ ${_isFunction2(tsupConfig) ? Object.keys(tsupConfig).map(
109318
+ (key) => `${key}: ${!tsupConfig[key] || _isPrimitive(tsupConfig[key]) ? tsupConfig[key] : _isFunction2(tsupConfig[key]) ? "<function>" : JSON.stringify(tsupConfig[key])}`
109319
+ ).join("\n") : "<function>"}
109320
+ `
109321
+ );
109322
+ if (_isFunction2(tsupConfig)) {
109310
109323
  await build(await Promise.resolve(tsupConfig({})), config);
109311
109324
  } else {
109312
109325
  await build(tsupConfig, config);
@@ -109356,7 +109369,6 @@ var build = async (options, config) => {
109356
109369
  console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
109357
109370
  }
109358
109371
  await (0, import_tsup.build)(options);
109359
- await new Promise((r) => setTimeout(r, 100));
109360
109372
  }
109361
109373
  };
109362
109374
  var _isPrimitive = (value) => {
@@ -109366,7 +109378,7 @@ var _isPrimitive = (value) => {
109366
109378
  return false;
109367
109379
  }
109368
109380
  };
109369
- var _isFunction = (value) => {
109381
+ var _isFunction2 = (value) => {
109370
109382
  try {
109371
109383
  return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
109372
109384
  } catch (e) {
@@ -115600,7 +115612,7 @@ async function tsupExecutorFn(options, context, config) {
115600
115612
  config,
115601
115613
  `\u2699\uFE0F Executor options:
115602
115614
  ${Object.keys(options).map(
115603
- (key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
115615
+ (key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
115604
115616
  ).join("\n")}
115605
115617
  `
115606
115618
  );
@@ -115928,7 +115940,8 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115928
115940
  config,
115929
115941
  {
115930
115942
  ...options,
115931
- outputPath
115943
+ outputPath,
115944
+ getConfig: options.getConfig
115932
115945
  }
115933
115946
  );
115934
115947
  })
@@ -115951,6 +115964,13 @@ var _isPrimitive2 = (value) => {
115951
115964
  return false;
115952
115965
  }
115953
115966
  };
115967
+ var _isFunction3 = (value) => {
115968
+ try {
115969
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
115970
+ } catch (e) {
115971
+ return false;
115972
+ }
115973
+ };
115954
115974
 
115955
115975
  // packages/workspace-tools/src/executors/tsup-node/get-config.ts
115956
115976
  var import_devkit4 = __toESM(require_devkit());
@@ -39143,7 +39143,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
39143
39143
  writeTrace(
39144
39144
  config,
39145
39145
  `Loaded Storm config into env:
39146
- ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`
39146
+ ${Object.keys(process.env).map(
39147
+ (key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
39148
+ ).join("\n")}`
39147
39149
  );
39148
39150
  }
39149
39151
  if (executorOptions?.hooks?.applyDefaultOptions) {
@@ -39154,7 +39156,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
39154
39156
  writeTrace(
39155
39157
  config,
39156
39158
  `Executor schema options \u2699\uFE0F
39157
- ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`
39159
+ ${Object.keys(options).map(
39160
+ (key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
39161
+ ).join("\n")}`
39158
39162
  );
39159
39163
  const tokenized = applyWorkspaceTokens(
39160
39164
  options,
@@ -39208,6 +39212,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
39208
39212
  stopwatch();
39209
39213
  }
39210
39214
  };
39215
+ var _isFunction = (value) => {
39216
+ try {
39217
+ return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
39218
+ } catch (e) {
39219
+ return false;
39220
+ }
39221
+ };
39211
39222
 
39212
39223
  // packages/workspace-tools/src/executors/typia/executor.ts
39213
39224
  async function typiaExecutorFn(options, _, config) {