@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.62.9",
3
+ "version": "1.62.11",
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": [
@@ -37,7 +37,6 @@
37
37
  "@nx/devkit": "18.0.4",
38
38
  "@nx/esbuild": "18.0.4",
39
39
  "@rollup/plugin-json": "6.1.0",
40
- "@swc-node/register": "^1.8.0",
41
40
  "decky": "1.1.1",
42
41
  "esbuild-plugin-environment": "0.3.0",
43
42
  "esbuild-plugin-handlebars": "1.0.2",
@@ -61,4 +60,4 @@
61
60
  },
62
61
  "executors": "./executors.json",
63
62
  "generators": "./generators.json"
64
- }
63
+ }
@@ -389708,9 +389708,9 @@ var require_normalize_options = __commonJS({
389708
389708
  }
389709
389709
  });
389710
389710
 
389711
- // 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
389711
+ // 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
389712
389712
  var require_chunk_EPAEWGCP = __commonJS({
389713
- "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) {
389713
+ "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) {
389714
389714
  "use strict";
389715
389715
  Object.defineProperty(exports2, "__esModule", { value: true });
389716
389716
  var version = "8.0.0";
@@ -391357,9 +391357,9 @@ var require_resolve_from = __commonJS({
391357
391357
  }
391358
391358
  });
391359
391359
 
391360
- // 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
391360
+ // 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
391361
391361
  var require_chunk_GQ77QZBO = __commonJS({
391362
- "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) {
391362
+ "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) {
391363
391363
  "use strict";
391364
391364
  Object.defineProperty(exports2, "__esModule", { value: true });
391365
391365
  function _interopRequireDefault(obj) {
@@ -391637,9 +391637,9 @@ var require_chunk_GQ77QZBO = __commonJS({
391637
391637
  }
391638
391638
  });
391639
391639
 
391640
- // 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
391640
+ // 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
391641
391641
  var require_chunk_UIX4URMV = __commonJS({
391642
- "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) {
391642
+ "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) {
391643
391643
  "use strict";
391644
391644
  Object.defineProperty(exports2, "__esModule", { value: true });
391645
391645
  function _interopRequireWildcard(obj) {
@@ -394979,9 +394979,9 @@ var require_dist3 = __commonJS({
394979
394979
  }
394980
394980
  });
394981
394981
 
394982
- // 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
394982
+ // 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
394983
394983
  var require_chunk_7G76EW2R = __commonJS({
394984
- "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) {
394984
+ "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) {
394985
394985
  "use strict";
394986
394986
  Object.defineProperty(exports2, "__esModule", { value: true });
394987
394987
  function _interopRequireDefault(obj) {
@@ -442051,7 +442051,7 @@ ${outro}`;
442051
442051
  await promises.mkdir(node_path.dirname(fileName), { recursive: true });
442052
442052
  return promises.writeFile(fileName, outputFile.type === "asset" ? outputFile.source : outputFile.code);
442053
442053
  }
442054
- function defineConfig2(options8) {
442054
+ function defineConfig(options8) {
442055
442055
  return options8;
442056
442056
  }
442057
442057
  exports2.blue = blue;
@@ -442060,7 +442060,7 @@ ${outro}`;
442060
442060
  exports2.createFilter = createFilter;
442061
442061
  exports2.cyan = cyan$1;
442062
442062
  exports2.cyan$1 = cyan;
442063
- exports2.defineConfig = defineConfig2;
442063
+ exports2.defineConfig = defineConfig;
442064
442064
  exports2.ensureArray = ensureArray$1;
442065
442065
  exports2.getAugmentedNamespace = getAugmentedNamespace;
442066
442066
  exports2.getNewArray = getNewArray;
@@ -446064,9 +446064,9 @@ var require_rollup2 = __commonJS({
446064
446064
  }
446065
446065
  });
446066
446066
 
446067
- // 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
446067
+ // 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
446068
446068
  var require_dist6 = __commonJS({
446069
- "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) {
446069
+ "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) {
446070
446070
  "use strict";
446071
446071
  Object.defineProperty(exports2, "__esModule", { value: true });
446072
446072
  function _interopRequireDefault(obj) {
@@ -448629,7 +448629,7 @@ var require_dist6 = __commonJS({
448629
448629
  }
448630
448630
  };
448631
448631
  };
448632
- var defineConfig2 = (options8) => options8;
448632
+ var defineConfig = (options8) => options8;
448633
448633
  var isTaskkillCmdProcessNotFoundError = (err) => {
448634
448634
  return process.platform === "win32" && "cmd" in err && "code" in err && typeof err.cmd === "string" && err.cmd.startsWith("taskkill") && err.code === 128;
448635
448635
  };
@@ -448934,7 +448934,7 @@ var require_dist6 = __commonJS({
448934
448934
  );
448935
448935
  }
448936
448936
  exports2.build = build2;
448937
- exports2.defineConfig = defineConfig2;
448937
+ exports2.defineConfig = defineConfig;
448938
448938
  }
448939
448939
  });
448940
448940
 
@@ -455420,7 +455420,6 @@ var environmentPlugin = (data) => ({
455420
455420
  });
455421
455421
 
455422
455422
  // packages/workspace-tools/src/utils/run-tsup-build.ts
455423
- var import_tsup = __toESM(require_dist6());
455424
455423
  var import_typescript = __toESM(require_typescript());
455425
455424
 
455426
455425
  // packages/workspace-tools/src/base/get-tsup-config.ts
@@ -455534,7 +455533,7 @@ var outExtension = ({ format: format3 }) => {
455534
455533
  var applyDefaultOptions = (options8) => {
455535
455534
  options8.entry ??= "{sourceRoot}/index.ts";
455536
455535
  options8.outputPath ??= "dist/{projectRoot}";
455537
- options8.tsConfig ??= "tsconfig.json";
455536
+ options8.tsConfig ??= "{projectRoot}/tsconfig.json";
455538
455537
  options8.generatePackageJson ??= true;
455539
455538
  options8.splitting ??= true;
455540
455539
  options8.treeshake ??= true;
@@ -455565,7 +455564,8 @@ var applyDefaultOptions = (options8) => {
455565
455564
  return options8;
455566
455565
  };
455567
455566
  var runTsupBuild = async (context, config, options8) => {
455568
- const { LogLevel, getLogLevel, writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
455567
+ const { writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
455568
+ const { build: tsup, defineConfig } = await Promise.resolve().then(() => __toESM(require_dist6()));
455569
455569
  const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
455570
455570
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
455571
455571
  ret[key2] = options8.env?.[key2];
@@ -455580,7 +455580,6 @@ var runTsupBuild = async (context, config, options8) => {
455580
455580
  options8.plugins?.push(environmentPlugin(stormEnv));
455581
455581
  const getConfigOptions = {
455582
455582
  ...options8,
455583
- main: context.main,
455584
455583
  entry: {
455585
455584
  [removeExtension(
455586
455585
  context.main?.split(context.main?.includes(import_node_path.sep) ? import_node_path.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
@@ -455612,13 +455611,14 @@ var runTsupBuild = async (context, config, options8) => {
455612
455611
  )
455613
455612
  ),
455614
455613
  banner: options8.banner ? {
455615
- js: `${options8.banner}
455614
+ js: `
455616
455615
 
455617
- `,
455618
- css: `/*
455619
455616
  ${options8.banner}
455620
455617
 
455618
+ `,
455619
+ css: `/*
455621
455620
 
455621
+ ${options8.banner}
455622
455622
 
455623
455623
  */`
455624
455624
  } : void 0,
@@ -455627,18 +455627,18 @@ ${options8.banner}
455627
455627
  if (options8.getConfig) {
455628
455628
  writeInfo(config, "\u26A1 Running the Build process");
455629
455629
  const getConfigFns = [options8.getConfig];
455630
- const tsupConfig = (0, import_tsup.defineConfig)(
455630
+ const tsupConfig = defineConfig(
455631
455631
  getConfigFns.map(
455632
455632
  (getConfigFn) => getConfig(workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
455633
455633
  )
455634
455634
  );
455635
455635
  if (_isFunction2(tsupConfig)) {
455636
455636
  const tsupOptions = await Promise.resolve(tsupConfig({}));
455637
- await build(tsupOptions, config);
455637
+ await build(tsup, tsupOptions, config);
455638
455638
  } else {
455639
- await build(tsupConfig, config);
455639
+ await build(tsup, tsupConfig, config);
455640
455640
  }
455641
- } else if (getLogLevel(config?.logLevel ?? "debug") >= LogLevel.WARN) {
455641
+ } else {
455642
455642
  writeWarning(
455643
455643
  config,
455644
455644
  "The Build process did not run because no `getConfig` parameter was provided"
@@ -455673,10 +455673,10 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
455673
455673
  }
455674
455674
  return tsConfig;
455675
455675
  }
455676
- var build = async (options8, config) => {
455676
+ var build = async (tsup, options8, config) => {
455677
455677
  const { writeDebug } = await import("@storm-software/config-tools");
455678
455678
  if (Array.isArray(options8)) {
455679
- await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
455679
+ await Promise.all(options8.map((buildOptions) => build(tsup, buildOptions, config)));
455680
455680
  } else {
455681
455681
  let tsupOptions = options8;
455682
455682
  if (_isFunction2(tsupOptions)) {
@@ -455690,7 +455690,7 @@ ${!_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
455690
455690
  ).join("\n") : "<function>"}
455691
455691
  `
455692
455692
  );
455693
- await (0, import_tsup.build)(tsupOptions);
455693
+ await tsup(tsupOptions);
455694
455694
  }
455695
455695
  };
455696
455696
  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) => {