@storm-software/tsup 0.2.171 → 0.2.172

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.
@@ -16,7 +16,7 @@ init_esm_shims();
16
16
  // ../build-tools/dist/chunk-KVP3YMX6.mjs
17
17
  init_esm_shims();
18
18
 
19
- // ../build-tools/dist/chunk-HHXTFBAS.mjs
19
+ // ../build-tools/dist/chunk-JL5TSK3E.mjs
20
20
  init_esm_shims();
21
21
 
22
22
  // ../build-tools/dist/chunk-B4H42WDA.mjs
@@ -29,7 +29,7 @@ init_esm_shims();
29
29
  import { existsSync } from "node:fs";
30
30
  import { join } from "node:path";
31
31
 
32
- // ../build-tools/dist/chunk-47RCC4BE.mjs
32
+ // ../build-tools/dist/chunk-GFRBIUU6.mjs
33
33
  init_esm_shims();
34
34
  import { formatDistanceToNow } from "date-fns/formatDistanceToNow";
35
35
  import chalk from "chalk";
@@ -67,7 +67,7 @@ var CONSOLE_ICONS = {
67
67
  [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
68
68
  };
69
69
 
70
- // ../build-tools/dist/chunk-HHXTFBAS.mjs
70
+ // ../build-tools/dist/chunk-JL5TSK3E.mjs
71
71
  import { loadConfig } from "c12";
72
72
  import defu from "defu";
73
73
  import * as z from "zod/v4/mini";
@@ -664,13 +664,13 @@ import {
664
664
  mapTargetDefaultsToDependencies
665
665
  } from "nx/src/tasks-runner/create-task-graph";
666
666
 
667
- // ../build-tools/dist/chunk-SPZAYXEL.mjs
667
+ // ../build-tools/dist/chunk-SI3IDR4Y.mjs
668
668
  init_esm_shims();
669
669
  import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
670
670
  import { glob } from "glob";
671
671
  import { readFile as readFile3, writeFile } from "node:fs/promises";
672
672
 
673
- // ../build-tools/dist/chunk-KDULOKHB.mjs
673
+ // ../build-tools/dist/chunk-MZNEKMYV.mjs
674
674
  init_esm_shims();
675
675
  import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
676
676
  import { Glob } from "glob";
@@ -682,7 +682,7 @@ import {
682
682
  readProjectsConfigurationFromProjectGraph
683
683
  } from "nx/src/project-graph/project-graph";
684
684
 
685
- // ../build-tools/dist/chunk-3QKWF2PP.mjs
685
+ // ../build-tools/dist/chunk-FBGJEKIF.mjs
686
686
  init_esm_shims();
687
687
  import { glob as glob2 } from "glob";
688
688
 
@@ -716,14 +716,14 @@ init_esm_shims();
716
716
  // ../build-tools/dist/chunk-UN3B7LBV.mjs
717
717
  init_esm_shims();
718
718
 
719
- // ../build-tools/dist/chunk-VDPPY6KF.mjs
719
+ // ../build-tools/dist/chunk-EGQOBLUI.mjs
720
720
  init_esm_shims();
721
721
 
722
722
  // ../build-tools/dist/chunk-7YKXR5JJ.mjs
723
723
  init_esm_shims();
724
724
  import { transform } from "@swc/core";
725
725
 
726
- // ../build-tools/dist/chunk-WWMBAWAV.mjs
726
+ // ../build-tools/dist/chunk-YGAFXMVQ.mjs
727
727
  init_esm_shims();
728
728
  import fs from "node:fs";
729
729
  import { builtinModules } from "node:module";
@@ -738,13 +738,13 @@ import { relative } from "path";
738
738
  // ../config-tools/dist/get-config.js
739
739
  init_esm_shims();
740
740
 
741
- // ../config-tools/dist/chunk-CZGO7WY3.js
741
+ // ../config-tools/dist/chunk-TIH4RSTL.js
742
742
  init_esm_shims();
743
743
 
744
- // ../config-tools/dist/chunk-KVDT6KNS.js
744
+ // ../config-tools/dist/chunk-UWI3QVYJ.js
745
745
  init_esm_shims();
746
746
 
747
- // ../config-tools/dist/chunk-ORVHSCSN.js
747
+ // ../config-tools/dist/chunk-FXQGOFJI.js
748
748
  init_esm_shims();
749
749
 
750
750
  // ../config-tools/dist/chunk-LF3SAK2O.js
@@ -970,7 +970,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
970
970
  return result;
971
971
  }
972
972
 
973
- // ../config-tools/dist/chunk-TOMKPXJE.js
973
+ // ../config-tools/dist/chunk-4UFIHIMZ.js
974
974
  init_esm_shims();
975
975
 
976
976
  // ../config-tools/dist/chunk-5DQF4GNF.js
@@ -1167,7 +1167,7 @@ var getLogLevelLabel2 = (logLevel = LogLevel2.INFO) => {
1167
1167
  return LogLevelLabel2.INFO;
1168
1168
  };
1169
1169
 
1170
- // ../config-tools/dist/chunk-TOMKPXJE.js
1170
+ // ../config-tools/dist/chunk-4UFIHIMZ.js
1171
1171
  var daysInYear = 365.2425;
1172
1172
  var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
1173
1173
  var minTime = -maxTime;
@@ -1976,22 +1976,31 @@ var getStopwatch = (name) => {
1976
1976
  );
1977
1977
  };
1978
1978
  };
1979
- var MAX_DEPTH = 6;
1979
+ var MAX_DEPTH = 10;
1980
1980
  var formatLogMessage2 = (message, options = {}, depth2 = 0) => {
1981
1981
  if (depth2 > MAX_DEPTH) {
1982
1982
  return "<max depth>";
1983
1983
  }
1984
- const prefix = options.prefix ?? "-";
1984
+ const prefix = options.prefix ?? "";
1985
1985
  const skip = options.skip ?? [];
1986
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
1987
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage2(item, { prefix: `${prefix}-`, skip }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
1988
- ${Object.keys(message).filter((key) => !skip.includes(key)).map(
1989
- (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage2(
1986
+ const sort = options.sort ?? true;
1987
+ return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
1988
+ ${message.map(
1989
+ (item, index) => ` ${prefix}> #${index} = ${formatLogMessage2(
1990
+ item,
1991
+ { prefix: `${prefix}--`, skip, sort },
1992
+ depth2 + 1
1993
+ )}`
1994
+ ).join("\n")}` : typeof message === "object" ? `
1995
+ ${Object.keys(message).filter((key) => !skip.includes(key)).sort(sort ? (a3, b2) => a3.localeCompare(b2) : void 0).map(
1996
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
1997
+ (key2) => !skip.includes(key2)
1998
+ ).length === 0 ? "{}" : formatLogMessage2(
1990
1999
  message[key],
1991
- { prefix: `${prefix}-`, skip },
2000
+ { prefix: `${prefix}--`, skip, sort },
1992
2001
  depth2 + 1
1993
2002
  ) : message[key]}`
1994
- ).join("\n")}` : message;
2003
+ ).join("\n")}` : String(message);
1995
2004
  };
1996
2005
  var _isFunction = (value) => {
1997
2006
  try {
@@ -2001,7 +2010,7 @@ var _isFunction = (value) => {
2001
2010
  }
2002
2011
  };
2003
2012
 
2004
- // ../config-tools/dist/chunk-ORVHSCSN.js
2013
+ // ../config-tools/dist/chunk-FXQGOFJI.js
2005
2014
  import { loadConfig as loadConfig2 } from "c12";
2006
2015
  import defu3 from "defu";
2007
2016
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
@@ -2975,7 +2984,7 @@ var getBaseThemeColorsEnv = (prefix) => {
2975
2984
  // ../config/dist/schema.js
2976
2985
  init_esm_shims();
2977
2986
 
2978
- // ../config-tools/dist/chunk-KVDT6KNS.js
2987
+ // ../config-tools/dist/chunk-UWI3QVYJ.js
2979
2988
  import defu4 from "defu";
2980
2989
  import { existsSync as existsSync7 } from "node:fs";
2981
2990
  var _extension_cache = /* @__PURE__ */ new WeakMap();
@@ -3076,7 +3085,7 @@ ${formatLogMessage2(config)}`,
3076
3085
  return config;
3077
3086
  };
3078
3087
 
3079
- // ../config-tools/dist/chunk-CZGO7WY3.js
3088
+ // ../config-tools/dist/chunk-TIH4RSTL.js
3080
3089
  function getConfig(workspaceRoot, skipLogs = false) {
3081
3090
  return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
3082
3091
  }
package/dist/index.cjs CHANGED
@@ -2705,7 +2705,7 @@ init_cjs_shims();
2705
2705
  // ../config-tools/dist/logger/console.js
2706
2706
  init_cjs_shims();
2707
2707
 
2708
- // ../config-tools/dist/chunk-TOMKPXJE.js
2708
+ // ../config-tools/dist/chunk-4UFIHIMZ.js
2709
2709
  init_cjs_shims();
2710
2710
 
2711
2711
  // ../config-tools/dist/chunk-5DQF4GNF.js
@@ -2902,7 +2902,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
2902
2902
  return LogLevelLabel.INFO;
2903
2903
  };
2904
2904
 
2905
- // ../config-tools/dist/chunk-TOMKPXJE.js
2905
+ // ../config-tools/dist/chunk-4UFIHIMZ.js
2906
2906
  var daysInYear = 365.2425;
2907
2907
  var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
2908
2908
  var minTime = -maxTime;
@@ -3711,22 +3711,31 @@ var getStopwatch = (name) => {
3711
3711
  );
3712
3712
  };
3713
3713
  };
3714
- var MAX_DEPTH = 6;
3714
+ var MAX_DEPTH = 10;
3715
3715
  var formatLogMessage = (message, options2 = {}, depth2 = 0) => {
3716
3716
  if (depth2 > MAX_DEPTH) {
3717
3717
  return "<max depth>";
3718
3718
  }
3719
- const prefix = options2.prefix ?? "-";
3719
+ const prefix = options2.prefix ?? "";
3720
3720
  const skip = options2.skip ?? [];
3721
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
3722
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
3723
- ${Object.keys(message).filter((key) => !skip.includes(key)).map(
3724
- (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
3721
+ const sort = options2.sort ?? true;
3722
+ return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
3723
+ ${message.map(
3724
+ (item, index) => ` ${prefix}> #${index} = ${formatLogMessage(
3725
+ item,
3726
+ { prefix: `${prefix}--`, skip, sort },
3727
+ depth2 + 1
3728
+ )}`
3729
+ ).join("\n")}` : typeof message === "object" ? `
3730
+ ${Object.keys(message).filter((key) => !skip.includes(key)).sort(sort ? (a3, b2) => a3.localeCompare(b2) : void 0).map(
3731
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
3732
+ (key2) => !skip.includes(key2)
3733
+ ).length === 0 ? "{}" : formatLogMessage(
3725
3734
  message[key],
3726
- { prefix: `${prefix}-`, skip },
3735
+ { prefix: `${prefix}--`, skip, sort },
3727
3736
  depth2 + 1
3728
3737
  ) : message[key]}`
3729
- ).join("\n")}` : message;
3738
+ ).join("\n")}` : String(message);
3730
3739
  };
3731
3740
  var _isFunction = (value) => {
3732
3741
  try {
@@ -3811,7 +3820,7 @@ init_cjs_shims();
3811
3820
  // ../build-tools/dist/chunk-KVP3YMX6.mjs
3812
3821
  init_cjs_shims();
3813
3822
 
3814
- // ../build-tools/dist/chunk-HHXTFBAS.mjs
3823
+ // ../build-tools/dist/chunk-JL5TSK3E.mjs
3815
3824
  init_cjs_shims();
3816
3825
 
3817
3826
  // ../build-tools/dist/chunk-B4H42WDA.mjs
@@ -3824,7 +3833,7 @@ init_cjs_shims();
3824
3833
  var import_node_fs = require("fs");
3825
3834
  var import_node_path = require("path");
3826
3835
 
3827
- // ../build-tools/dist/chunk-47RCC4BE.mjs
3836
+ // ../build-tools/dist/chunk-GFRBIUU6.mjs
3828
3837
  init_cjs_shims();
3829
3838
  var import_formatDistanceToNow = require("date-fns/formatDistanceToNow");
3830
3839
  var import_chalk2 = __toESM(require("chalk"), 1);
@@ -3862,7 +3871,7 @@ var CONSOLE_ICONS2 = {
3862
3871
  [LogLevelLabel2.ALL]: useIcon2("\u2709", "\u2192")
3863
3872
  };
3864
3873
 
3865
- // ../build-tools/dist/chunk-HHXTFBAS.mjs
3874
+ // ../build-tools/dist/chunk-JL5TSK3E.mjs
3866
3875
  var import_c12 = require("c12");
3867
3876
  var import_defu = __toESM(require("defu"), 1);
3868
3877
  var z = __toESM(require("zod/v4/mini"), 1);
@@ -4456,13 +4465,13 @@ schemaRegistry.add(extensionsSchema, {
4456
4465
  init_cjs_shims();
4457
4466
  var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
4458
4467
 
4459
- // ../build-tools/dist/chunk-SPZAYXEL.mjs
4468
+ // ../build-tools/dist/chunk-SI3IDR4Y.mjs
4460
4469
  init_cjs_shims();
4461
4470
  var import_copy_assets_handler = require("@nx/js/src/utils/assets/copy-assets-handler");
4462
4471
  var import_glob = require("glob");
4463
4472
  var import_promises3 = require("fs/promises");
4464
4473
 
4465
- // ../build-tools/dist/chunk-KDULOKHB.mjs
4474
+ // ../build-tools/dist/chunk-MZNEKMYV.mjs
4466
4475
  init_cjs_shims();
4467
4476
  var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
4468
4477
  var import_glob2 = require("glob");
@@ -4470,7 +4479,7 @@ var import_node_fs5 = require("fs");
4470
4479
  var import_promises4 = require("fs/promises");
4471
4480
  var import_project_graph = require("nx/src/project-graph/project-graph");
4472
4481
 
4473
- // ../build-tools/dist/chunk-3QKWF2PP.mjs
4482
+ // ../build-tools/dist/chunk-FBGJEKIF.mjs
4474
4483
  init_cjs_shims();
4475
4484
  var import_glob3 = require("glob");
4476
4485
 
@@ -4504,14 +4513,14 @@ init_cjs_shims();
4504
4513
  // ../build-tools/dist/chunk-UN3B7LBV.mjs
4505
4514
  init_cjs_shims();
4506
4515
 
4507
- // ../build-tools/dist/chunk-VDPPY6KF.mjs
4516
+ // ../build-tools/dist/chunk-EGQOBLUI.mjs
4508
4517
  init_cjs_shims();
4509
4518
 
4510
4519
  // ../build-tools/dist/chunk-7YKXR5JJ.mjs
4511
4520
  init_cjs_shims();
4512
4521
  var import_core = require("@swc/core");
4513
4522
 
4514
- // ../build-tools/dist/chunk-WWMBAWAV.mjs
4523
+ // ../build-tools/dist/chunk-YGAFXMVQ.mjs
4515
4524
  init_cjs_shims();
4516
4525
  var import_node_fs6 = __toESM(require("fs"), 1);
4517
4526
  var import_node_module = require("module");
@@ -4526,13 +4535,13 @@ var import_path = require("path");
4526
4535
  // ../config-tools/dist/get-config.js
4527
4536
  init_cjs_shims();
4528
4537
 
4529
- // ../config-tools/dist/chunk-CZGO7WY3.js
4538
+ // ../config-tools/dist/chunk-TIH4RSTL.js
4530
4539
  init_cjs_shims();
4531
4540
 
4532
- // ../config-tools/dist/chunk-KVDT6KNS.js
4541
+ // ../config-tools/dist/chunk-UWI3QVYJ.js
4533
4542
  init_cjs_shims();
4534
4543
 
4535
- // ../config-tools/dist/chunk-ORVHSCSN.js
4544
+ // ../config-tools/dist/chunk-FXQGOFJI.js
4536
4545
  init_cjs_shims();
4537
4546
 
4538
4547
  // ../config-tools/dist/chunk-LF3SAK2O.js
@@ -4758,7 +4767,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
4758
4767
  return result;
4759
4768
  }
4760
4769
 
4761
- // ../config-tools/dist/chunk-ORVHSCSN.js
4770
+ // ../config-tools/dist/chunk-FXQGOFJI.js
4762
4771
  var import_c122 = require("c12");
4763
4772
  var import_defu3 = __toESM(require("defu"), 1);
4764
4773
  var getConfigFileByName = async (fileName, filePath, options2 = {}) => {
@@ -5732,7 +5741,7 @@ var getBaseThemeColorsEnv = (prefix) => {
5732
5741
  // ../config/dist/schema.js
5733
5742
  init_cjs_shims();
5734
5743
 
5735
- // ../config-tools/dist/chunk-KVDT6KNS.js
5744
+ // ../config-tools/dist/chunk-UWI3QVYJ.js
5736
5745
  var import_defu4 = __toESM(require("defu"), 1);
5737
5746
  var import_node_fs9 = require("fs");
5738
5747
  var _extension_cache = /* @__PURE__ */ new WeakMap();
@@ -5833,7 +5842,7 @@ ${formatLogMessage(config)}`,
5833
5842
  return config;
5834
5843
  };
5835
5844
 
5836
- // ../config-tools/dist/chunk-CZGO7WY3.js
5845
+ // ../config-tools/dist/chunk-TIH4RSTL.js
5837
5846
  function getConfig(workspaceRoot, skipLogs = false) {
5838
5847
  return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
5839
5848
  }
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  getStopwatch,
3
3
  resolveOptions,
4
4
  writeDebug
5
- } from "./chunk-VGKOP2AR.js";
5
+ } from "./chunk-HYJJN7IQ.js";
6
6
  import {
7
7
  DEFAULT_BUILD_OPTIONS
8
8
  } from "./chunk-GKLMXIYG.js";
package/dist/options.cjs CHANGED
@@ -38,7 +38,7 @@ module.exports = __toCommonJS(options_exports);
38
38
  var import_node_fs = require("fs");
39
39
  var import_node_path = require("path");
40
40
 
41
- // ../build-tools/dist/chunk-47RCC4BE.mjs
41
+ // ../build-tools/dist/chunk-GFRBIUU6.mjs
42
42
  var import_formatDistanceToNow = require("date-fns/formatDistanceToNow");
43
43
  var import_chalk = __toESM(require("chalk"), 1);
44
44
  var LogLevelLabel = {
@@ -75,7 +75,7 @@ var CONSOLE_ICONS = {
75
75
  [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
76
76
  };
77
77
 
78
- // ../build-tools/dist/chunk-HHXTFBAS.mjs
78
+ // ../build-tools/dist/chunk-JL5TSK3E.mjs
79
79
  var import_c12 = require("c12");
80
80
  var import_defu = __toESM(require("defu"), 1);
81
81
  var z = __toESM(require("zod/v4/mini"), 1);
@@ -668,19 +668,19 @@ schemaRegistry.add(extensionsSchema, {
668
668
  // ../build-tools/dist/chunk-JCFRYUYP.mjs
669
669
  var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
670
670
 
671
- // ../build-tools/dist/chunk-SPZAYXEL.mjs
671
+ // ../build-tools/dist/chunk-SI3IDR4Y.mjs
672
672
  var import_copy_assets_handler = require("@nx/js/src/utils/assets/copy-assets-handler");
673
673
  var import_glob = require("glob");
674
674
  var import_promises3 = require("fs/promises");
675
675
 
676
- // ../build-tools/dist/chunk-KDULOKHB.mjs
676
+ // ../build-tools/dist/chunk-MZNEKMYV.mjs
677
677
  var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
678
678
  var import_glob2 = require("glob");
679
679
  var import_node_fs5 = require("fs");
680
680
  var import_promises4 = require("fs/promises");
681
681
  var import_project_graph = require("nx/src/project-graph/project-graph");
682
682
 
683
- // ../build-tools/dist/chunk-3QKWF2PP.mjs
683
+ // ../build-tools/dist/chunk-FBGJEKIF.mjs
684
684
  var import_glob3 = require("glob");
685
685
 
686
686
  // ../build-tools/dist/chunk-TJ6NHBO5.mjs
@@ -714,7 +714,7 @@ var getEnv = (builder, options) => {
714
714
  // ../build-tools/dist/chunk-7YKXR5JJ.mjs
715
715
  var import_core = require("@swc/core");
716
716
 
717
- // ../build-tools/dist/chunk-WWMBAWAV.mjs
717
+ // ../build-tools/dist/chunk-YGAFXMVQ.mjs
718
718
  var import_node_fs6 = __toESM(require("fs"), 1);
719
719
  var import_node_module = require("module");
720
720
  var import_node_path3 = __toESM(require("path"), 1);
@@ -1127,7 +1127,7 @@ var getLogLevelLabel2 = (logLevel = LogLevel2.INFO) => {
1127
1127
  return LogLevelLabel2.INFO;
1128
1128
  };
1129
1129
 
1130
- // ../config-tools/dist/chunk-TOMKPXJE.js
1130
+ // ../config-tools/dist/chunk-4UFIHIMZ.js
1131
1131
  var daysInYear = 365.2425;
1132
1132
  var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
1133
1133
  var minTime = -maxTime;
@@ -1936,22 +1936,31 @@ var getStopwatch = (name) => {
1936
1936
  );
1937
1937
  };
1938
1938
  };
1939
- var MAX_DEPTH = 6;
1939
+ var MAX_DEPTH = 10;
1940
1940
  var formatLogMessage2 = (message, options = {}, depth2 = 0) => {
1941
1941
  if (depth2 > MAX_DEPTH) {
1942
1942
  return "<max depth>";
1943
1943
  }
1944
- const prefix = options.prefix ?? "-";
1944
+ const prefix = options.prefix ?? "";
1945
1945
  const skip = options.skip ?? [];
1946
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
1947
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage2(item, { prefix: `${prefix}-`, skip }, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
1948
- ${Object.keys(message).filter((key) => !skip.includes(key)).map(
1949
- (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage2(
1946
+ const sort = options.sort ?? true;
1947
+ return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
1948
+ ${message.map(
1949
+ (item, index) => ` ${prefix}> #${index} = ${formatLogMessage2(
1950
+ item,
1951
+ { prefix: `${prefix}--`, skip, sort },
1952
+ depth2 + 1
1953
+ )}`
1954
+ ).join("\n")}` : typeof message === "object" ? `
1955
+ ${Object.keys(message).filter((key) => !skip.includes(key)).sort(sort ? (a3, b2) => a3.localeCompare(b2) : void 0).map(
1956
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
1957
+ (key2) => !skip.includes(key2)
1958
+ ).length === 0 ? "{}" : formatLogMessage2(
1950
1959
  message[key],
1951
- { prefix: `${prefix}-`, skip },
1960
+ { prefix: `${prefix}--`, skip, sort },
1952
1961
  depth2 + 1
1953
1962
  ) : message[key]}`
1954
- ).join("\n")}` : message;
1963
+ ).join("\n")}` : String(message);
1955
1964
  };
1956
1965
  var _isFunction = (value) => {
1957
1966
  try {
@@ -1961,7 +1970,7 @@ var _isFunction = (value) => {
1961
1970
  }
1962
1971
  };
1963
1972
 
1964
- // ../config-tools/dist/chunk-ORVHSCSN.js
1973
+ // ../config-tools/dist/chunk-FXQGOFJI.js
1965
1974
  var import_c122 = require("c12");
1966
1975
  var import_defu3 = __toESM(require("defu"), 1);
1967
1976
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
@@ -2916,7 +2925,7 @@ var getBaseThemeColorsEnv = (prefix) => {
2916
2925
  };
2917
2926
  };
2918
2927
 
2919
- // ../config-tools/dist/chunk-KVDT6KNS.js
2928
+ // ../config-tools/dist/chunk-UWI3QVYJ.js
2920
2929
  var import_defu4 = __toESM(require("defu"), 1);
2921
2930
  var import_node_fs9 = require("fs");
2922
2931
  var _extension_cache = /* @__PURE__ */ new WeakMap();
@@ -3017,7 +3026,7 @@ ${formatLogMessage2(config)}`,
3017
3026
  return config;
3018
3027
  };
3019
3028
 
3020
- // ../config-tools/dist/chunk-CZGO7WY3.js
3029
+ // ../config-tools/dist/chunk-TIH4RSTL.js
3021
3030
  function getConfig(workspaceRoot, skipLogs = false) {
3022
3031
  return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
3023
3032
  }
package/dist/options.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveOptions
3
- } from "./chunk-VGKOP2AR.js";
3
+ } from "./chunk-HYJJN7IQ.js";
4
4
  import "./chunk-GKLMXIYG.js";
5
5
  import "./chunk-HG5YW62K.js";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsup",
3
- "version": "0.2.171",
3
+ "version": "0.2.172",
4
4
  "type": "module",
5
5
  "description": "A package containing bundled patches for tsup.",
6
6
  "repository": {
@@ -104,8 +104,8 @@
104
104
  "files": ["assets/**/*", "dist/**/*"],
105
105
  "keywords": ["tsup", "storm", "storm-ops", "storm-software"],
106
106
  "dependencies": {
107
- "@storm-software/build-tools": "^0.158.173",
108
- "@storm-software/config-tools": "^1.190.13"
107
+ "@storm-software/build-tools": "^0.158.174",
108
+ "@storm-software/config-tools": "^1.190.14"
109
109
  },
110
110
  "devDependencies": {
111
111
  "@types/node": "^25.8.0",
@@ -115,5 +115,5 @@
115
115
  },
116
116
  "publishConfig": { "access": "public" },
117
117
  "sideEffects": false,
118
- "gitHead": "28ba0e3264c160d982d27b4cb8d1f386d0b833c4"
118
+ "gitHead": "0c334cad4cd3237b830127698face8e1f4f508fb"
119
119
  }
@@ -1,8 +0,0 @@
1
- import { ResolvedBuildOptions } from './types.cjs';
2
- import '@storm-software/build-tools';
3
- import 'esbuild';
4
- import 'tsup';
5
-
6
- declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ResolvedBuildOptions, "format" | "dts" | "platform" | "target" | "keepNames" | "metafile" | "treeshake" | "splitting" | "cjsInterop" | "shims" | "watch" | "clean" | "bundle" | "loader" | "banner">>;
7
-
8
- export { DEFAULT_BUILD_OPTIONS };
@@ -1,8 +0,0 @@
1
- import { ResolvedBuildOptions } from './types.js';
2
- import '@storm-software/build-tools';
3
- import 'esbuild';
4
- import 'tsup';
5
-
6
- declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ResolvedBuildOptions, "format" | "dts" | "platform" | "target" | "keepNames" | "metafile" | "treeshake" | "splitting" | "cjsInterop" | "shims" | "watch" | "clean" | "bundle" | "loader" | "banner">>;
7
-
8
- export { DEFAULT_BUILD_OPTIONS };
package/dist/index.d.cts DELETED
@@ -1,16 +0,0 @@
1
- import { Options } from 'tsup';
2
- export { DEFAULT_BUILD_OPTIONS } from './constants.cjs';
3
- export { resolveOptions } from './options.cjs';
4
- export { BuildOptions, ResolvedBuildOptions } from './types.cjs';
5
- import '@storm-software/build-tools';
6
- import 'esbuild';
7
-
8
- /**
9
- * Execute tsup with all the configurations we pass
10
- *
11
- * @param context - The build context
12
- * @returns The build context
13
- */
14
- declare function build(options: Options): Promise<void>;
15
-
16
- export { build };
package/dist/index.d.ts DELETED
@@ -1,16 +0,0 @@
1
- import { Options } from 'tsup';
2
- export { DEFAULT_BUILD_OPTIONS } from './constants.js';
3
- export { resolveOptions } from './options.js';
4
- export { BuildOptions, ResolvedBuildOptions } from './types.js';
5
- import '@storm-software/build-tools';
6
- import 'esbuild';
7
-
8
- /**
9
- * Execute tsup with all the configurations we pass
10
- *
11
- * @param context - The build context
12
- * @returns The build context
13
- */
14
- declare function build(options: Options): Promise<void>;
15
-
16
- export { build };
@@ -1,14 +0,0 @@
1
- import { BuildOptions, ResolvedBuildOptions } from './types.cjs';
2
- import '@storm-software/build-tools';
3
- import 'esbuild';
4
- import 'tsup';
5
-
6
- /**
7
- * Apply defaults to the original build options
8
- *
9
- * @param userOptions - the original build options provided by the user
10
- * @returns the build options with defaults applied
11
- */
12
- declare function resolveOptions(userOptions: BuildOptions): Promise<ResolvedBuildOptions>;
13
-
14
- export { resolveOptions };
package/dist/options.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import { BuildOptions, ResolvedBuildOptions } from './types.js';
2
- import '@storm-software/build-tools';
3
- import 'esbuild';
4
- import 'tsup';
5
-
6
- /**
7
- * Apply defaults to the original build options
8
- *
9
- * @param userOptions - the original build options provided by the user
10
- * @returns the build options with defaults applied
11
- */
12
- declare function resolveOptions(userOptions: BuildOptions): Promise<ResolvedBuildOptions>;
13
-
14
- export { resolveOptions };
package/dist/types.d.cts DELETED
@@ -1,12 +0,0 @@
1
- import { TypeScriptBuildOptions } from '@storm-software/build-tools';
2
- import { TsconfigRaw } from 'esbuild';
3
- import { Options } from 'tsup';
4
-
5
- type BuildOptions = Omit<Options, "outDir" | "entryPoints"> & Required<Pick<TypeScriptBuildOptions, "projectRoot">> & Pick<TypeScriptBuildOptions, "outputPath"> & {
6
- tsconfig?: string | null;
7
- tsconfigRaw?: TsconfigRaw;
8
- verbose?: boolean;
9
- };
10
- type ResolvedBuildOptions = Options;
11
-
12
- export type { BuildOptions, ResolvedBuildOptions };
package/dist/types.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { TypeScriptBuildOptions } from '@storm-software/build-tools';
2
- import { TsconfigRaw } from 'esbuild';
3
- import { Options } from 'tsup';
4
-
5
- type BuildOptions = Omit<Options, "outDir" | "entryPoints"> & Required<Pick<TypeScriptBuildOptions, "projectRoot">> & Pick<TypeScriptBuildOptions, "outputPath"> & {
6
- tsconfig?: string | null;
7
- tsconfigRaw?: TsconfigRaw;
8
- verbose?: boolean;
9
- };
10
- type ResolvedBuildOptions = Options;
11
-
12
- export type { BuildOptions, ResolvedBuildOptions };