@storm-software/workspace-tools 1.62.10 → 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.10",
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
 
@@ -449224,7 +449224,6 @@ var environmentPlugin = (data) => ({
449224
449224
  });
449225
449225
 
449226
449226
  // packages/workspace-tools/src/utils/run-tsup-build.ts
449227
- var import_tsup = __toESM(require_dist6());
449228
449227
  var import_typescript = __toESM(require_typescript());
449229
449228
 
449230
449229
  // packages/workspace-tools/src/base/get-tsup-config.ts
@@ -449350,7 +449349,7 @@ var removeExtension = (filePath) => {
449350
449349
  var applyDefaultOptions = (options8) => {
449351
449350
  options8.entry ??= "{sourceRoot}/index.ts";
449352
449351
  options8.outputPath ??= "dist/{projectRoot}";
449353
- options8.tsConfig ??= "tsconfig.json";
449352
+ options8.tsConfig ??= "{projectRoot}/tsconfig.json";
449354
449353
  options8.generatePackageJson ??= true;
449355
449354
  options8.splitting ??= true;
449356
449355
  options8.treeshake ??= true;
@@ -449381,7 +449380,8 @@ var applyDefaultOptions = (options8) => {
449381
449380
  return options8;
449382
449381
  };
449383
449382
  var runTsupBuild = async (context, config, options8) => {
449384
- 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()));
449385
449385
  const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
449386
449386
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
449387
449387
  ret[key2] = options8.env?.[key2];
@@ -449396,7 +449396,6 @@ var runTsupBuild = async (context, config, options8) => {
449396
449396
  options8.plugins?.push(environmentPlugin(stormEnv));
449397
449397
  const getConfigOptions = {
449398
449398
  ...options8,
449399
- main: context.main,
449400
449399
  entry: {
449401
449400
  [removeExtension(
449402
449401
  context.main?.split(context.main?.includes(import_node_path.sep) ? import_node_path.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
@@ -449428,13 +449427,14 @@ var runTsupBuild = async (context, config, options8) => {
449428
449427
  )
449429
449428
  ),
449430
449429
  banner: options8.banner ? {
449431
- js: `${options8.banner}
449430
+ js: `
449432
449431
 
449433
- `,
449434
- css: `/*
449435
449432
  ${options8.banner}
449436
449433
 
449434
+ `,
449435
+ css: `/*
449437
449436
 
449437
+ ${options8.banner}
449438
449438
 
449439
449439
  */`
449440
449440
  } : void 0,
@@ -449443,18 +449443,18 @@ ${options8.banner}
449443
449443
  if (options8.getConfig) {
449444
449444
  writeInfo(config, "\u26A1 Running the Build process");
449445
449445
  const getConfigFns = [options8.getConfig];
449446
- const tsupConfig = (0, import_tsup.defineConfig)(
449446
+ const tsupConfig = defineConfig(
449447
449447
  getConfigFns.map(
449448
449448
  (getConfigFn) => getConfig(workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
449449
449449
  )
449450
449450
  );
449451
449451
  if (_isFunction2(tsupConfig)) {
449452
449452
  const tsupOptions = await Promise.resolve(tsupConfig({}));
449453
- await build(tsupOptions, config);
449453
+ await build(tsup, tsupOptions, config);
449454
449454
  } else {
449455
- await build(tsupConfig, config);
449455
+ await build(tsup, tsupConfig, config);
449456
449456
  }
449457
- } else if (getLogLevel(config?.logLevel ?? "debug") >= LogLevel.WARN) {
449457
+ } else {
449458
449458
  writeWarning(
449459
449459
  config,
449460
449460
  "The Build process did not run because no `getConfig` parameter was provided"
@@ -449489,10 +449489,10 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
449489
449489
  }
449490
449490
  return tsConfig;
449491
449491
  }
449492
- var build = async (options8, config) => {
449492
+ var build = async (tsup, options8, config) => {
449493
449493
  const { writeDebug } = await import("@storm-software/config-tools");
449494
449494
  if (Array.isArray(options8)) {
449495
- await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
449495
+ await Promise.all(options8.map((buildOptions) => build(tsup, buildOptions, config)));
449496
449496
  } else {
449497
449497
  let tsupOptions = options8;
449498
449498
  if (_isFunction2(tsupOptions)) {
@@ -449506,7 +449506,7 @@ ${!_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
449506
449506
  ).join("\n") : "<function>"}
449507
449507
  `
449508
449508
  );
449509
- await (0, import_tsup.build)(tsupOptions);
449509
+ await tsup(tsupOptions);
449510
449510
  }
449511
449511
  };
449512
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
 
@@ -449224,7 +449224,6 @@ var environmentPlugin = (data) => ({
449224
449224
  });
449225
449225
 
449226
449226
  // packages/workspace-tools/src/utils/run-tsup-build.ts
449227
- var import_tsup = __toESM(require_dist6());
449228
449227
  var import_typescript = __toESM(require_typescript());
449229
449228
 
449230
449229
  // packages/workspace-tools/src/base/get-tsup-config.ts
@@ -449350,7 +449349,7 @@ var removeExtension = (filePath) => {
449350
449349
  var applyDefaultOptions = (options8) => {
449351
449350
  options8.entry ??= "{sourceRoot}/index.ts";
449352
449351
  options8.outputPath ??= "dist/{projectRoot}";
449353
- options8.tsConfig ??= "tsconfig.json";
449352
+ options8.tsConfig ??= "{projectRoot}/tsconfig.json";
449354
449353
  options8.generatePackageJson ??= true;
449355
449354
  options8.splitting ??= true;
449356
449355
  options8.treeshake ??= true;
@@ -449381,7 +449380,8 @@ var applyDefaultOptions = (options8) => {
449381
449380
  return options8;
449382
449381
  };
449383
449382
  var runTsupBuild = async (context, config, options8) => {
449384
- 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()));
449385
449385
  const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
449386
449386
  const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
449387
449387
  ret[key2] = options8.env?.[key2];
@@ -449396,7 +449396,6 @@ var runTsupBuild = async (context, config, options8) => {
449396
449396
  options8.plugins?.push(environmentPlugin(stormEnv));
449397
449397
  const getConfigOptions = {
449398
449398
  ...options8,
449399
- main: context.main,
449400
449399
  entry: {
449401
449400
  [removeExtension(
449402
449401
  context.main?.split(context.main?.includes(import_node_path.sep) ? import_node_path.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
@@ -449428,13 +449427,14 @@ var runTsupBuild = async (context, config, options8) => {
449428
449427
  )
449429
449428
  ),
449430
449429
  banner: options8.banner ? {
449431
- js: `${options8.banner}
449430
+ js: `
449432
449431
 
449433
- `,
449434
- css: `/*
449435
449432
  ${options8.banner}
449436
449433
 
449434
+ `,
449435
+ css: `/*
449437
449436
 
449437
+ ${options8.banner}
449438
449438
 
449439
449439
  */`
449440
449440
  } : void 0,
@@ -449443,18 +449443,18 @@ ${options8.banner}
449443
449443
  if (options8.getConfig) {
449444
449444
  writeInfo(config, "\u26A1 Running the Build process");
449445
449445
  const getConfigFns = [options8.getConfig];
449446
- const tsupConfig = (0, import_tsup.defineConfig)(
449446
+ const tsupConfig = defineConfig(
449447
449447
  getConfigFns.map(
449448
449448
  (getConfigFn) => getConfig(workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
449449
449449
  )
449450
449450
  );
449451
449451
  if (_isFunction2(tsupConfig)) {
449452
449452
  const tsupOptions = await Promise.resolve(tsupConfig({}));
449453
- await build(tsupOptions, config);
449453
+ await build(tsup, tsupOptions, config);
449454
449454
  } else {
449455
- await build(tsupConfig, config);
449455
+ await build(tsup, tsupConfig, config);
449456
449456
  }
449457
- } else if (getLogLevel(config?.logLevel ?? "debug") >= LogLevel.WARN) {
449457
+ } else {
449458
449458
  writeWarning(
449459
449459
  config,
449460
449460
  "The Build process did not run because no `getConfig` parameter was provided"
@@ -449489,10 +449489,10 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
449489
449489
  }
449490
449490
  return tsConfig;
449491
449491
  }
449492
- var build = async (options8, config) => {
449492
+ var build = async (tsup, options8, config) => {
449493
449493
  const { writeDebug } = await import("@storm-software/config-tools");
449494
449494
  if (Array.isArray(options8)) {
449495
- await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
449495
+ await Promise.all(options8.map((buildOptions) => build(tsup, buildOptions, config)));
449496
449496
  } else {
449497
449497
  let tsupOptions = options8;
449498
449498
  if (_isFunction2(tsupOptions)) {
@@ -449506,7 +449506,7 @@ ${!_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
449506
449506
  ).join("\n") : "<function>"}
449507
449507
  `
449508
449508
  );
449509
- await (0, import_tsup.build)(tsupOptions);
449509
+ await tsup(tsupOptions);
449510
449510
  }
449511
449511
  };
449512
449512
  var _isPrimitive = (value) => {