@storm-software/workspace-tools 1.62.9 → 1.62.11

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.
@@ -377568,9 +377568,9 @@ var require_normalize_options = __commonJS({
377568
377568
  }
377569
377569
  });
377570
377570
 
377571
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-EPAEWGCP.js
377571
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js
377572
377572
  var require_chunk_EPAEWGCP = __commonJS({
377573
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports2) {
377573
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports2) {
377574
377574
  "use strict";
377575
377575
  Object.defineProperty(exports2, "__esModule", { value: true });
377576
377576
  var version = "8.0.0";
@@ -379217,9 +379217,9 @@ var require_resolve_from = __commonJS({
379217
379217
  }
379218
379218
  });
379219
379219
 
379220
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-GQ77QZBO.js
379220
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js
379221
379221
  var require_chunk_GQ77QZBO = __commonJS({
379222
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports2) {
379222
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports2) {
379223
379223
  "use strict";
379224
379224
  Object.defineProperty(exports2, "__esModule", { value: true });
379225
379225
  function _interopRequireDefault(obj) {
@@ -379497,9 +379497,9 @@ var require_chunk_GQ77QZBO = __commonJS({
379497
379497
  }
379498
379498
  });
379499
379499
 
379500
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-UIX4URMV.js
379500
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js
379501
379501
  var require_chunk_UIX4URMV = __commonJS({
379502
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports2) {
379502
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports2) {
379503
379503
  "use strict";
379504
379504
  Object.defineProperty(exports2, "__esModule", { value: true });
379505
379505
  function _interopRequireWildcard(obj) {
@@ -382839,9 +382839,9 @@ var require_dist3 = __commonJS({
382839
382839
  }
382840
382840
  });
382841
382841
 
382842
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-7G76EW2R.js
382842
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js
382843
382843
  var require_chunk_7G76EW2R = __commonJS({
382844
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports2) {
382844
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports2) {
382845
382845
  "use strict";
382846
382846
  Object.defineProperty(exports2, "__esModule", { value: true });
382847
382847
  function _interopRequireDefault(obj) {
@@ -429911,7 +429911,7 @@ ${outro}`;
429911
429911
  await promises.mkdir(node_path.dirname(fileName), { recursive: true });
429912
429912
  return promises.writeFile(fileName, outputFile.type === "asset" ? outputFile.source : outputFile.code);
429913
429913
  }
429914
- function defineConfig2(options8) {
429914
+ function defineConfig(options8) {
429915
429915
  return options8;
429916
429916
  }
429917
429917
  exports2.blue = blue;
@@ -429920,7 +429920,7 @@ ${outro}`;
429920
429920
  exports2.createFilter = createFilter;
429921
429921
  exports2.cyan = cyan$1;
429922
429922
  exports2.cyan$1 = cyan;
429923
- exports2.defineConfig = defineConfig2;
429923
+ exports2.defineConfig = defineConfig;
429924
429924
  exports2.ensureArray = ensureArray$1;
429925
429925
  exports2.getAugmentedNamespace = getAugmentedNamespace;
429926
429926
  exports2.getNewArray = getNewArray;
@@ -433924,9 +433924,9 @@ var require_rollup2 = __commonJS({
433924
433924
  }
433925
433925
  });
433926
433926
 
433927
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/index.js
433927
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js
433928
433928
  var require_dist6 = __commonJS({
433929
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/index.js"(exports2) {
433929
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js"(exports2) {
433930
433930
  "use strict";
433931
433931
  Object.defineProperty(exports2, "__esModule", { value: true });
433932
433932
  function _interopRequireDefault(obj) {
@@ -436489,7 +436489,7 @@ var require_dist6 = __commonJS({
436489
436489
  }
436490
436490
  };
436491
436491
  };
436492
- var defineConfig2 = (options8) => options8;
436492
+ var defineConfig = (options8) => options8;
436493
436493
  var isTaskkillCmdProcessNotFoundError = (err) => {
436494
436494
  return process.platform === "win32" && "cmd" in err && "code" in err && typeof err.cmd === "string" && err.cmd.startsWith("taskkill") && err.code === 128;
436495
436495
  };
@@ -436794,7 +436794,7 @@ var require_dist6 = __commonJS({
436794
436794
  );
436795
436795
  }
436796
436796
  exports2.build = build2;
436797
- exports2.defineConfig = defineConfig2;
436797
+ exports2.defineConfig = defineConfig;
436798
436798
  }
436799
436799
  });
436800
436800
 
@@ -449144,23 +449144,30 @@ var getFileBanner = (name, commentStart = "//") => {
449144
449144
  while (name.length + padding.length < 12) {
449145
449145
  padding += " ";
449146
449146
  }
449147
+ let titleName = process.env.STORM_NAMESPACE ?? "";
449148
+ if (titleName) {
449149
+ if (titleName?.startsWith("@")) {
449150
+ titleName = titleName.slice(1);
449151
+ }
449152
+ titleName = (titleName.charAt(0).toUpperCase() + titleName.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
449153
+ }
449147
449154
  return `
449148
449155
 
449149
449156
  ${commentStart} -------------------------------------------------------------------
449150
449157
  ${commentStart}
449151
449158
  ${commentStart} ${padding}Storm Software
449152
- ${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
449159
+ ${commentStart} \u26A1 ${titleName ? `${titleName} - ` : ""}${name}
449153
449160
  ${commentStart}
449154
- ${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
449161
+ ${commentStart} This code was released as part of the ${titleName ? `${titleName} ` : ""}project. ${titleName ? titleName : "This project"}
449155
449162
  ${commentStart} is maintained by Storm Software under the ${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
449156
449163
  ${commentStart} free for commercial and private use. For more information, please visit
449157
449164
  ${commentStart} our licensing page.
449158
449165
  ${commentStart}
449159
449166
  ${commentStart} Website: ${process.env.STORM_HOMEPAGE ?? "https://stormsoftware.org"}
449160
449167
  ${commentStart} Repository: ${process.env.STORM_REPOSITORY ?? "https://github.com/storm-software/storm-stack"}
449161
- ${commentStart} Documentation: https://stormsoftware.org/docs/storm-stack
449162
- ${commentStart} Contact: https://stormsoftware.org/contact
449163
- ${commentStart} Licensing: https://stormsoftware.org/licensing
449168
+ ${commentStart} Documentation: https://stormsoftware.org/docs${titleName?.startsWith("@") ? `/${titleName.slice(1)}` : ""}
449169
+ ${commentStart} Contact: ${process.env.STORM_HOMEPAGE ? process.env.STORM_HOMEPAGE.endsWith("/") ? process.env.STORM_HOMEPAGE.slice(-1) : process.env.STORM_HOMEPAGE : "https://stormsoftware.org"}/contact
449170
+ ${commentStart} Licensing: ${process.env.STORM_HOMEPAGE ? process.env.STORM_HOMEPAGE.endsWith("/") ? process.env.STORM_HOMEPAGE.slice(-1) : process.env.STORM_HOMEPAGE : "https://stormsoftware.org"}/licensing
449164
449171
  ${commentStart}
449165
449172
  ${commentStart} -------------------------------------------------------------------
449166
449173
 
@@ -449217,7 +449224,6 @@ var environmentPlugin = (data) => ({
449217
449224
  });
449218
449225
 
449219
449226
  // packages/workspace-tools/src/utils/run-tsup-build.ts
449220
- var import_tsup = __toESM(require_dist6());
449221
449227
  var import_typescript = __toESM(require_typescript());
449222
449228
 
449223
449229
  // packages/workspace-tools/src/base/get-tsup-config.ts
@@ -449343,7 +449349,7 @@ var removeExtension = (filePath) => {
449343
449349
  var applyDefaultOptions = (options8) => {
449344
449350
  options8.entry ??= "{sourceRoot}/index.ts";
449345
449351
  options8.outputPath ??= "dist/{projectRoot}";
449346
- options8.tsConfig ??= "tsconfig.json";
449352
+ options8.tsConfig ??= "{projectRoot}/tsconfig.json";
449347
449353
  options8.generatePackageJson ??= true;
449348
449354
  options8.splitting ??= true;
449349
449355
  options8.treeshake ??= true;
@@ -449374,7 +449380,8 @@ var applyDefaultOptions = (options8) => {
449374
449380
  return options8;
449375
449381
  };
449376
449382
  var runTsupBuild = async (context, config, options8) => {
449377
- const { LogLevel, getLogLevel, writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
449383
+ const { writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
449384
+ const { build: tsup, defineConfig } = await Promise.resolve().then(() => __toESM(require_dist6()));
449378
449385
  const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
449379
449386
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
449380
449387
  ret[key2] = options8.env?.[key2];
@@ -449389,7 +449396,6 @@ var runTsupBuild = async (context, config, options8) => {
449389
449396
  options8.plugins?.push(environmentPlugin(stormEnv));
449390
449397
  const getConfigOptions = {
449391
449398
  ...options8,
449392
- main: context.main,
449393
449399
  entry: {
449394
449400
  [removeExtension(
449395
449401
  context.main?.split(context.main?.includes(import_node_path.sep) ? import_node_path.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
@@ -449421,13 +449427,14 @@ var runTsupBuild = async (context, config, options8) => {
449421
449427
  )
449422
449428
  ),
449423
449429
  banner: options8.banner ? {
449424
- js: `${options8.banner}
449430
+ js: `
449425
449431
 
449426
- `,
449427
- css: `/*
449428
449432
  ${options8.banner}
449429
449433
 
449434
+ `,
449435
+ css: `/*
449430
449436
 
449437
+ ${options8.banner}
449431
449438
 
449432
449439
  */`
449433
449440
  } : void 0,
@@ -449436,18 +449443,18 @@ ${options8.banner}
449436
449443
  if (options8.getConfig) {
449437
449444
  writeInfo(config, "\u26A1 Running the Build process");
449438
449445
  const getConfigFns = [options8.getConfig];
449439
- const tsupConfig = (0, import_tsup.defineConfig)(
449446
+ const tsupConfig = defineConfig(
449440
449447
  getConfigFns.map(
449441
449448
  (getConfigFn) => getConfig(workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
449442
449449
  )
449443
449450
  );
449444
449451
  if (_isFunction2(tsupConfig)) {
449445
449452
  const tsupOptions = await Promise.resolve(tsupConfig({}));
449446
- await build(tsupOptions, config);
449453
+ await build(tsup, tsupOptions, config);
449447
449454
  } else {
449448
- await build(tsupConfig, config);
449455
+ await build(tsup, tsupConfig, config);
449449
449456
  }
449450
- } else if (getLogLevel(config?.logLevel ?? "debug") >= LogLevel.WARN) {
449457
+ } else {
449451
449458
  writeWarning(
449452
449459
  config,
449453
449460
  "The Build process did not run because no `getConfig` parameter was provided"
@@ -449482,10 +449489,10 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
449482
449489
  }
449483
449490
  return tsConfig;
449484
449491
  }
449485
- var build = async (options8, config) => {
449492
+ var build = async (tsup, options8, config) => {
449486
449493
  const { writeDebug } = await import("@storm-software/config-tools");
449487
449494
  if (Array.isArray(options8)) {
449488
- await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
449495
+ await Promise.all(options8.map((buildOptions) => build(tsup, buildOptions, config)));
449489
449496
  } else {
449490
449497
  let tsupOptions = options8;
449491
449498
  if (_isFunction2(tsupOptions)) {
@@ -449499,7 +449506,7 @@ ${!_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
449499
449506
  ).join("\n") : "<function>"}
449500
449507
  `
449501
449508
  );
449502
- await (0, import_tsup.build)(tsupOptions);
449509
+ await tsup(tsupOptions);
449503
449510
  }
449504
449511
  };
449505
449512
  var _isPrimitive = (value) => {
@@ -377568,9 +377568,9 @@ var require_normalize_options = __commonJS({
377568
377568
  }
377569
377569
  });
377570
377570
 
377571
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-EPAEWGCP.js
377571
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js
377572
377572
  var require_chunk_EPAEWGCP = __commonJS({
377573
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports2) {
377573
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports2) {
377574
377574
  "use strict";
377575
377575
  Object.defineProperty(exports2, "__esModule", { value: true });
377576
377576
  var version = "8.0.0";
@@ -379217,9 +379217,9 @@ var require_resolve_from = __commonJS({
379217
379217
  }
379218
379218
  });
379219
379219
 
379220
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-GQ77QZBO.js
379220
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js
379221
379221
  var require_chunk_GQ77QZBO = __commonJS({
379222
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports2) {
379222
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports2) {
379223
379223
  "use strict";
379224
379224
  Object.defineProperty(exports2, "__esModule", { value: true });
379225
379225
  function _interopRequireDefault(obj) {
@@ -379497,9 +379497,9 @@ var require_chunk_GQ77QZBO = __commonJS({
379497
379497
  }
379498
379498
  });
379499
379499
 
379500
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-UIX4URMV.js
379500
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js
379501
379501
  var require_chunk_UIX4URMV = __commonJS({
379502
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports2) {
379502
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports2) {
379503
379503
  "use strict";
379504
379504
  Object.defineProperty(exports2, "__esModule", { value: true });
379505
379505
  function _interopRequireWildcard(obj) {
@@ -382839,9 +382839,9 @@ var require_dist3 = __commonJS({
382839
382839
  }
382840
382840
  });
382841
382841
 
382842
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-7G76EW2R.js
382842
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js
382843
382843
  var require_chunk_7G76EW2R = __commonJS({
382844
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports2) {
382844
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports2) {
382845
382845
  "use strict";
382846
382846
  Object.defineProperty(exports2, "__esModule", { value: true });
382847
382847
  function _interopRequireDefault(obj) {
@@ -429911,7 +429911,7 @@ ${outro}`;
429911
429911
  await promises.mkdir(node_path.dirname(fileName), { recursive: true });
429912
429912
  return promises.writeFile(fileName, outputFile.type === "asset" ? outputFile.source : outputFile.code);
429913
429913
  }
429914
- function defineConfig2(options8) {
429914
+ function defineConfig(options8) {
429915
429915
  return options8;
429916
429916
  }
429917
429917
  exports2.blue = blue;
@@ -429920,7 +429920,7 @@ ${outro}`;
429920
429920
  exports2.createFilter = createFilter;
429921
429921
  exports2.cyan = cyan$1;
429922
429922
  exports2.cyan$1 = cyan;
429923
- exports2.defineConfig = defineConfig2;
429923
+ exports2.defineConfig = defineConfig;
429924
429924
  exports2.ensureArray = ensureArray$1;
429925
429925
  exports2.getAugmentedNamespace = getAugmentedNamespace;
429926
429926
  exports2.getNewArray = getNewArray;
@@ -433924,9 +433924,9 @@ var require_rollup2 = __commonJS({
433924
433924
  }
433925
433925
  });
433926
433926
 
433927
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/index.js
433927
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js
433928
433928
  var require_dist6 = __commonJS({
433929
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._c52cxdzeeiepa4zrrpnbnw3n4y/node_modules/tsup/dist/index.js"(exports2) {
433929
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js"(exports2) {
433930
433930
  "use strict";
433931
433931
  Object.defineProperty(exports2, "__esModule", { value: true });
433932
433932
  function _interopRequireDefault(obj) {
@@ -436489,7 +436489,7 @@ var require_dist6 = __commonJS({
436489
436489
  }
436490
436490
  };
436491
436491
  };
436492
- var defineConfig2 = (options8) => options8;
436492
+ var defineConfig = (options8) => options8;
436493
436493
  var isTaskkillCmdProcessNotFoundError = (err) => {
436494
436494
  return process.platform === "win32" && "cmd" in err && "code" in err && typeof err.cmd === "string" && err.cmd.startsWith("taskkill") && err.code === 128;
436495
436495
  };
@@ -436794,7 +436794,7 @@ var require_dist6 = __commonJS({
436794
436794
  );
436795
436795
  }
436796
436796
  exports2.build = build2;
436797
- exports2.defineConfig = defineConfig2;
436797
+ exports2.defineConfig = defineConfig;
436798
436798
  }
436799
436799
  });
436800
436800
 
@@ -449144,23 +449144,30 @@ var getFileBanner = (name, commentStart = "//") => {
449144
449144
  while (name.length + padding.length < 12) {
449145
449145
  padding += " ";
449146
449146
  }
449147
+ let titleName = process.env.STORM_NAMESPACE ?? "";
449148
+ if (titleName) {
449149
+ if (titleName?.startsWith("@")) {
449150
+ titleName = titleName.slice(1);
449151
+ }
449152
+ titleName = (titleName.charAt(0).toUpperCase() + titleName.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
449153
+ }
449147
449154
  return `
449148
449155
 
449149
449156
  ${commentStart} -------------------------------------------------------------------
449150
449157
  ${commentStart}
449151
449158
  ${commentStart} ${padding}Storm Software
449152
- ${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
449159
+ ${commentStart} \u26A1 ${titleName ? `${titleName} - ` : ""}${name}
449153
449160
  ${commentStart}
449154
- ${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
449161
+ ${commentStart} This code was released as part of the ${titleName ? `${titleName} ` : ""}project. ${titleName ? titleName : "This project"}
449155
449162
  ${commentStart} is maintained by Storm Software under the ${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
449156
449163
  ${commentStart} free for commercial and private use. For more information, please visit
449157
449164
  ${commentStart} our licensing page.
449158
449165
  ${commentStart}
449159
449166
  ${commentStart} Website: ${process.env.STORM_HOMEPAGE ?? "https://stormsoftware.org"}
449160
449167
  ${commentStart} Repository: ${process.env.STORM_REPOSITORY ?? "https://github.com/storm-software/storm-stack"}
449161
- ${commentStart} Documentation: https://stormsoftware.org/docs/storm-stack
449162
- ${commentStart} Contact: https://stormsoftware.org/contact
449163
- ${commentStart} Licensing: https://stormsoftware.org/licensing
449168
+ ${commentStart} Documentation: https://stormsoftware.org/docs${titleName?.startsWith("@") ? `/${titleName.slice(1)}` : ""}
449169
+ ${commentStart} Contact: ${process.env.STORM_HOMEPAGE ? process.env.STORM_HOMEPAGE.endsWith("/") ? process.env.STORM_HOMEPAGE.slice(-1) : process.env.STORM_HOMEPAGE : "https://stormsoftware.org"}/contact
449170
+ ${commentStart} Licensing: ${process.env.STORM_HOMEPAGE ? process.env.STORM_HOMEPAGE.endsWith("/") ? process.env.STORM_HOMEPAGE.slice(-1) : process.env.STORM_HOMEPAGE : "https://stormsoftware.org"}/licensing
449164
449171
  ${commentStart}
449165
449172
  ${commentStart} -------------------------------------------------------------------
449166
449173
 
@@ -449217,7 +449224,6 @@ var environmentPlugin = (data) => ({
449217
449224
  });
449218
449225
 
449219
449226
  // packages/workspace-tools/src/utils/run-tsup-build.ts
449220
- var import_tsup = __toESM(require_dist6());
449221
449227
  var import_typescript = __toESM(require_typescript());
449222
449228
 
449223
449229
  // packages/workspace-tools/src/base/get-tsup-config.ts
@@ -449343,7 +449349,7 @@ var removeExtension = (filePath) => {
449343
449349
  var applyDefaultOptions = (options8) => {
449344
449350
  options8.entry ??= "{sourceRoot}/index.ts";
449345
449351
  options8.outputPath ??= "dist/{projectRoot}";
449346
- options8.tsConfig ??= "tsconfig.json";
449352
+ options8.tsConfig ??= "{projectRoot}/tsconfig.json";
449347
449353
  options8.generatePackageJson ??= true;
449348
449354
  options8.splitting ??= true;
449349
449355
  options8.treeshake ??= true;
@@ -449374,7 +449380,8 @@ var applyDefaultOptions = (options8) => {
449374
449380
  return options8;
449375
449381
  };
449376
449382
  var runTsupBuild = async (context, config, options8) => {
449377
- const { LogLevel, getLogLevel, writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
449383
+ const { writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
449384
+ const { build: tsup, defineConfig } = await Promise.resolve().then(() => __toESM(require_dist6()));
449378
449385
  const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
449379
449386
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
449380
449387
  ret[key2] = options8.env?.[key2];
@@ -449389,7 +449396,6 @@ var runTsupBuild = async (context, config, options8) => {
449389
449396
  options8.plugins?.push(environmentPlugin(stormEnv));
449390
449397
  const getConfigOptions = {
449391
449398
  ...options8,
449392
- main: context.main,
449393
449399
  entry: {
449394
449400
  [removeExtension(
449395
449401
  context.main?.split(context.main?.includes(import_node_path.sep) ? import_node_path.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
@@ -449421,13 +449427,14 @@ var runTsupBuild = async (context, config, options8) => {
449421
449427
  )
449422
449428
  ),
449423
449429
  banner: options8.banner ? {
449424
- js: `${options8.banner}
449430
+ js: `
449425
449431
 
449426
- `,
449427
- css: `/*
449428
449432
  ${options8.banner}
449429
449433
 
449434
+ `,
449435
+ css: `/*
449430
449436
 
449437
+ ${options8.banner}
449431
449438
 
449432
449439
  */`
449433
449440
  } : void 0,
@@ -449436,18 +449443,18 @@ ${options8.banner}
449436
449443
  if (options8.getConfig) {
449437
449444
  writeInfo(config, "\u26A1 Running the Build process");
449438
449445
  const getConfigFns = [options8.getConfig];
449439
- const tsupConfig = (0, import_tsup.defineConfig)(
449446
+ const tsupConfig = defineConfig(
449440
449447
  getConfigFns.map(
449441
449448
  (getConfigFn) => getConfig(workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
449442
449449
  )
449443
449450
  );
449444
449451
  if (_isFunction2(tsupConfig)) {
449445
449452
  const tsupOptions = await Promise.resolve(tsupConfig({}));
449446
- await build(tsupOptions, config);
449453
+ await build(tsup, tsupOptions, config);
449447
449454
  } else {
449448
- await build(tsupConfig, config);
449455
+ await build(tsup, tsupConfig, config);
449449
449456
  }
449450
- } else if (getLogLevel(config?.logLevel ?? "debug") >= LogLevel.WARN) {
449457
+ } else {
449451
449458
  writeWarning(
449452
449459
  config,
449453
449460
  "The Build process did not run because no `getConfig` parameter was provided"
@@ -449482,10 +449489,10 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
449482
449489
  }
449483
449490
  return tsConfig;
449484
449491
  }
449485
- var build = async (options8, config) => {
449492
+ var build = async (tsup, options8, config) => {
449486
449493
  const { writeDebug } = await import("@storm-software/config-tools");
449487
449494
  if (Array.isArray(options8)) {
449488
- await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
449495
+ await Promise.all(options8.map((buildOptions) => build(tsup, buildOptions, config)));
449489
449496
  } else {
449490
449497
  let tsupOptions = options8;
449491
449498
  if (_isFunction2(tsupOptions)) {
@@ -449499,7 +449506,7 @@ ${!_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
449499
449506
  ).join("\n") : "<function>"}
449500
449507
  `
449501
449508
  );
449502
- await (0, import_tsup.build)(tsupOptions);
449509
+ await tsup(tsupOptions);
449503
449510
  }
449504
449511
  };
449505
449512
  var _isPrimitive = (value) => {
@@ -172269,10 +172269,6 @@ async function presetGeneratorFn(tree, options8) {
172269
172269
  "@storm-software/linting-tools": "latest",
172270
172270
  "@storm-software/testing-tools": "latest",
172271
172271
  "@storm-software/workspace-tools": "latest",
172272
- "@swc-node/register": "^1.6.8",
172273
- "@swc/cli": "^0.1.62",
172274
- "@swc/core": "^1.3.96",
172275
- "@swc/helpers": "^0.5.3",
172276
172272
  "@types/jest": "^29.5.8",
172277
172273
  "@types/node": "20.8.10",
172278
172274
  "@types/react": "^18.2.37",