@storm-software/tsup 0.2.73 → 0.2.75

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/dist/index.cjs CHANGED
@@ -88,7 +88,7 @@ var require_chunk_TWFEYLU4 = __commonJS({
88
88
  var __getProtoOf2 = Object.getPrototypeOf;
89
89
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
90
90
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
91
- get: (a3, b) => (typeof require !== "undefined" ? require : a3)[b]
91
+ get: (a3, b2) => (typeof require !== "undefined" ? require : a3)[b2]
92
92
  }) : x)(function(x) {
93
93
  if (typeof require !== "undefined") return require.apply(this, arguments);
94
94
  throw Error('Dynamic require of "' + x + '" is not supported');
@@ -1001,7 +1001,7 @@ var require_commonjs_plugin = __commonJS({
1001
1001
  ({ warnings } = err);
1002
1002
  }
1003
1003
  let lines = contents.split("\n");
1004
- let getOffset = cachedReduce(lines, (a3, b) => a3 + 1 + b.length, 0);
1004
+ let getOffset = cachedReduce(lines, (a3, b2) => a3 + 1 + b2.length, 0);
1005
1005
  if (warnings && (warnings = warnings.filter((e4) => e4.text.includes('"require" to "esm"'))).length) {
1006
1006
  let edits = [];
1007
1007
  let imports = [];
@@ -2705,10 +2705,10 @@ init_cjs_shims();
2705
2705
  // ../config-tools/dist/logger/console.js
2706
2706
  init_cjs_shims();
2707
2707
 
2708
- // ../config-tools/dist/chunk-UU2P3WKA.js
2708
+ // ../config-tools/dist/chunk-BMTJACKJ.js
2709
2709
  init_cjs_shims();
2710
2710
 
2711
- // ../config-tools/dist/chunk-LA3S35UI.js
2711
+ // ../config-tools/dist/chunk-DJB7XLHA.js
2712
2712
  init_cjs_shims();
2713
2713
  var DEFAULT_COLOR_CONFIG = {
2714
2714
  light: {
@@ -2719,6 +2719,7 @@ var DEFAULT_COLOR_CONFIG = {
2719
2719
  help: "#5C4EE5",
2720
2720
  success: "#087f5b",
2721
2721
  info: "#0550ae",
2722
+ debug: "#8afafc",
2722
2723
  warning: "#e3b341",
2723
2724
  danger: "#D8314A",
2724
2725
  fatal: "#51070f",
@@ -2735,6 +2736,7 @@ var DEFAULT_COLOR_CONFIG = {
2735
2736
  help: "#818cf8",
2736
2737
  success: "#10b981",
2737
2738
  info: "#58a6ff",
2739
+ debug: "#8afafc",
2738
2740
  warning: "#f3d371",
2739
2741
  danger: "#D8314A",
2740
2742
  fatal: "#a40e26",
@@ -2890,7 +2892,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
2890
2892
  return LogLevelLabel.INFO;
2891
2893
  };
2892
2894
 
2893
- // ../config-tools/dist/chunk-UU2P3WKA.js
2895
+ // ../config-tools/dist/chunk-BMTJACKJ.js
2894
2896
  var import_formatDistanceToNow = require("date-fns/formatDistanceToNow");
2895
2897
  var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
2896
2898
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
@@ -2948,7 +2950,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
2948
2950
  return (message) => {
2949
2951
  console.debug(
2950
2952
  `
2951
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2953
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2952
2954
  `
2953
2955
  );
2954
2956
  };
@@ -2957,7 +2959,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
2957
2959
  return (message) => {
2958
2960
  console.debug(
2959
2961
  `
2960
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2962
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2961
2963
  `
2962
2964
  );
2963
2965
  };
@@ -3085,7 +3087,7 @@ init_cjs_shims();
3085
3087
  // ../build-tools/dist/chunk-KVP3YMX6.mjs
3086
3088
  init_cjs_shims();
3087
3089
 
3088
- // ../build-tools/dist/chunk-RWH23ZV7.mjs
3090
+ // ../build-tools/dist/chunk-KZBHIH6L.mjs
3089
3091
  init_cjs_shims();
3090
3092
 
3091
3093
  // ../build-tools/dist/chunk-B4H42WDA.mjs
@@ -3098,7 +3100,7 @@ init_cjs_shims();
3098
3100
  var import_node_fs = require("fs");
3099
3101
  var import_node_path = require("path");
3100
3102
 
3101
- // ../build-tools/dist/chunk-J5M6XHOM.mjs
3103
+ // ../build-tools/dist/chunk-7JIOTQJT.mjs
3102
3104
  init_cjs_shims();
3103
3105
  var import_formatDistanceToNow2 = require("date-fns/formatDistanceToNow");
3104
3106
  var import_chalk2 = __toESM(require("chalk"), 1);
@@ -3134,7 +3136,7 @@ var CONSOLE_ICONS2 = {
3134
3136
  [LogLevelLabel2.ALL]: useIcon2("\u2709", "\u2192")
3135
3137
  };
3136
3138
 
3137
- // ../build-tools/dist/chunk-RWH23ZV7.mjs
3139
+ // ../build-tools/dist/chunk-KZBHIH6L.mjs
3138
3140
  var import_c12 = require("c12");
3139
3141
  var import_defu = __toESM(require("defu"), 1);
3140
3142
  var z = __toESM(require("zod/mini"), 1);
@@ -3203,6 +3205,10 @@ var infoColorSchema = z._default(colorSchema, "#38bdf8");
3203
3205
  schemaRegistry.add(infoColorSchema, {
3204
3206
  description: "The informational color of the workspace"
3205
3207
  });
3208
+ var debugColorSchema = z._default(colorSchema, "#8afafc");
3209
+ schemaRegistry.add(debugColorSchema, {
3210
+ description: "The debug color of the workspace"
3211
+ });
3206
3212
  var warningColorSchema = z._default(colorSchema, "#f3d371");
3207
3213
  schemaRegistry.add(warningColorSchema, {
3208
3214
  description: "The warning color of the workspace"
@@ -3237,6 +3243,7 @@ var darkColorsSchema = z.object({
3237
3243
  help: helpColorSchema,
3238
3244
  success: successColorSchema,
3239
3245
  info: infoColorSchema,
3246
+ debug: debugColorSchema,
3240
3247
  warning: warningColorSchema,
3241
3248
  danger: dangerColorSchema,
3242
3249
  fatal: fatalColorSchema,
@@ -3254,6 +3261,7 @@ var lightColorsSchema = z.object({
3254
3261
  help: helpColorSchema,
3255
3262
  success: successColorSchema,
3256
3263
  info: infoColorSchema,
3264
+ debug: debugColorSchema,
3257
3265
  warning: warningColorSchema,
3258
3266
  danger: dangerColorSchema,
3259
3267
  fatal: fatalColorSchema,
@@ -3275,6 +3283,7 @@ var singleColorsSchema = z.object({
3275
3283
  help: helpColorSchema,
3276
3284
  success: successColorSchema,
3277
3285
  info: infoColorSchema,
3286
+ debug: debugColorSchema,
3278
3287
  warning: warningColorSchema,
3279
3288
  danger: dangerColorSchema,
3280
3289
  fatal: fatalColorSchema,
@@ -3713,13 +3722,13 @@ schemaRegistry.add(extensionsSchema, {
3713
3722
  init_cjs_shims();
3714
3723
  var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
3715
3724
 
3716
- // ../build-tools/dist/chunk-UCEEEQVX.mjs
3725
+ // ../build-tools/dist/chunk-TB5CG6WC.mjs
3717
3726
  init_cjs_shims();
3718
3727
  var import_copy_assets_handler = require("@nx/js/src/utils/assets/copy-assets-handler");
3719
3728
  var import_glob = require("glob");
3720
3729
  var import_promises3 = require("fs/promises");
3721
3730
 
3722
- // ../build-tools/dist/chunk-JB3U2RRA.mjs
3731
+ // ../build-tools/dist/chunk-4WOXE5KE.mjs
3723
3732
  init_cjs_shims();
3724
3733
  var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
3725
3734
  var import_glob2 = require("glob");
@@ -3727,7 +3736,7 @@ var import_node_fs5 = require("fs");
3727
3736
  var import_promises4 = require("fs/promises");
3728
3737
  var import_project_graph = require("nx/src/project-graph/project-graph");
3729
3738
 
3730
- // ../build-tools/dist/chunk-RNJI24P4.mjs
3739
+ // ../build-tools/dist/chunk-7QNSO56B.mjs
3731
3740
  init_cjs_shims();
3732
3741
  var import_glob3 = require("glob");
3733
3742
 
@@ -3761,14 +3770,14 @@ init_cjs_shims();
3761
3770
  // ../build-tools/dist/chunk-UN3B7LBV.mjs
3762
3771
  init_cjs_shims();
3763
3772
 
3764
- // ../build-tools/dist/chunk-XQQDAMER.mjs
3773
+ // ../build-tools/dist/chunk-YXBJP3GA.mjs
3765
3774
  init_cjs_shims();
3766
3775
 
3767
3776
  // ../build-tools/dist/chunk-7YKXR5JJ.mjs
3768
3777
  init_cjs_shims();
3769
3778
  var import_core = require("@swc/core");
3770
3779
 
3771
- // ../build-tools/dist/chunk-JVUUAAFA.mjs
3780
+ // ../build-tools/dist/chunk-6QKIUVWK.mjs
3772
3781
  init_cjs_shims();
3773
3782
  var import_node_fs6 = __toESM(require("fs"), 1);
3774
3783
  var import_node_module = require("module");
@@ -3783,13 +3792,13 @@ var import_path = require("path");
3783
3792
  // ../config-tools/dist/get-config.js
3784
3793
  init_cjs_shims();
3785
3794
 
3786
- // ../config-tools/dist/chunk-BJTNSVY4.js
3795
+ // ../config-tools/dist/chunk-BQLCBDR6.js
3787
3796
  init_cjs_shims();
3788
3797
 
3789
- // ../config-tools/dist/chunk-XVUCULX2.js
3798
+ // ../config-tools/dist/chunk-QDUNMWAE.js
3790
3799
  init_cjs_shims();
3791
3800
 
3792
- // ../config-tools/dist/chunk-XLOBQVBJ.js
3801
+ // ../config-tools/dist/chunk-YHW325ID.js
3793
3802
  init_cjs_shims();
3794
3803
 
3795
3804
  // ../config-tools/dist/chunk-LF3SAK2O.js
@@ -4015,7 +4024,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
4015
4024
  return result;
4016
4025
  }
4017
4026
 
4018
- // ../config-tools/dist/chunk-XLOBQVBJ.js
4027
+ // ../config-tools/dist/chunk-YHW325ID.js
4019
4028
  var import_c122 = require("c12");
4020
4029
  var import_defu3 = __toESM(require("defu"), 1);
4021
4030
  var getConfigFileByName = async (fileName, filePath, options2 = {}) => {
@@ -4102,7 +4111,7 @@ init_cjs_shims();
4102
4111
  // ../config/dist/chunk-5QIMO5EY.js
4103
4112
  init_cjs_shims();
4104
4113
 
4105
- // ../config/dist/chunk-ZXJP5Q3G.js
4114
+ // ../config/dist/chunk-OIOMONUX.js
4106
4115
  init_cjs_shims();
4107
4116
 
4108
4117
  // ../config/dist/chunk-TYDRIJER.js
@@ -4124,7 +4133,7 @@ If this sounds interesting, and you would like to help us in creating the next g
4124
4133
  var S = "tools/errors/codes.json";
4125
4134
  var A = "The workspace's banner image";
4126
4135
 
4127
- // ../config/dist/chunk-ZXJP5Q3G.js
4136
+ // ../config/dist/chunk-OIOMONUX.js
4128
4137
  var e2 = __toESM(require("zod/mini"), 1);
4129
4138
  var o2 = e2.registry();
4130
4139
  var t2 = e2.string().check(e2.length(7), e2.toLowerCase(), e2.regex(/^#([0-9a-f]{3}){1,2}$/i), e2.trim());
@@ -4147,150 +4156,152 @@ var h = e2._default(t2, "#45b27e");
4147
4156
  o2.add(h, { description: "The success color of the workspace" });
4148
4157
  var l = e2._default(t2, "#38bdf8");
4149
4158
  o2.add(l, { description: "The informational color of the workspace" });
4150
- var m = e2._default(t2, "#f3d371");
4151
- o2.add(m, { description: "The warning color of the workspace" });
4152
- var z2 = e2._default(t2, "#d8314a");
4153
- o2.add(z2, { description: "The danger color of the workspace" });
4154
- var g = e2.optional(t2);
4155
- o2.add(g, { description: "The fatal color of the workspace" });
4156
- var u = e2._default(t2, "#4ade80");
4157
- o2.add(u, { description: "The positive number color of the workspace" });
4158
- var f = e2._default(t2, "#ef4444");
4159
- o2.add(f, { description: "The negative number color of the workspace" });
4160
- var k = e2.optional(e2.array(t2));
4161
- o2.add(k, { description: "The color stops for the base gradient color pattern used in the workspace" });
4162
- var je = e2.object({ foreground: i2, background: a2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, warning: m, danger: z2, fatal: g, positive: u, negative: f, gradient: k });
4163
- var Ae = e2.object({ foreground: a2, background: i2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, warning: m, danger: z2, fatal: g, positive: u, negative: f, gradient: k });
4164
- var Re = e2.object({ dark: je, light: Ae });
4165
- var Ue = e2.object({ dark: a2, light: i2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, warning: m, danger: z2, fatal: g, positive: u, negative: f, gradient: k });
4159
+ var m = e2._default(t2, "#8afafc");
4160
+ o2.add(m, { description: "The debug color of the workspace" });
4161
+ var z2 = e2._default(t2, "#f3d371");
4162
+ o2.add(z2, { description: "The warning color of the workspace" });
4163
+ var g = e2._default(t2, "#d8314a");
4164
+ o2.add(g, { description: "The danger color of the workspace" });
4165
+ var u = e2.optional(t2);
4166
+ o2.add(u, { description: "The fatal color of the workspace" });
4167
+ var f = e2._default(t2, "#4ade80");
4168
+ o2.add(f, { description: "The positive number color of the workspace" });
4169
+ var k = e2._default(t2, "#ef4444");
4170
+ o2.add(k, { description: "The negative number color of the workspace" });
4171
+ var w = e2.optional(e2.array(t2));
4172
+ o2.add(w, { description: "The color stops for the base gradient color pattern used in the workspace" });
4173
+ var Ae = e2.object({ foreground: i2, background: a2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: u, positive: f, negative: k, gradient: w });
4174
+ var Re = e2.object({ foreground: a2, background: i2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: u, positive: f, negative: k, gradient: w });
4175
+ var Ue = e2.object({ dark: Ae, light: Re });
4176
+ var De = e2.object({ dark: a2, light: i2, brand: c, alternate: s2, accent: n, link: d, help: p, success: h, info: l, debug: m, warning: z2, danger: g, fatal: u, positive: f, negative: k, gradient: w });
4166
4177
  var r2 = e2.optional(e2.url());
4167
4178
  o2.add(r2, { description: "A remote registry URL used to publish distributable packages" });
4168
- var T = e2._default(e2.object({ github: r2, npm: r2, cargo: r2, cyclone: r2, container: r2 }), {});
4169
- o2.add(T, { description: "A list of remote registry URLs used by Storm Software" });
4170
- var w = e2.union([Ue, Re]);
4171
- o2.add(w, { description: "Colors used for various workspace elements" });
4172
- var v = e2.record(e2.union([e2.union([e2.literal("base"), e2.string()]), e2.string()]), w);
4173
- o2.add(v, { description: "Storm theme config values used for styling various package elements" });
4174
- var y = e2.optional(e2.union([e2.string().check(e2.trim()), e2.array(e2.string().check(e2.trim()))]));
4175
- o2.add(y, { description: "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration." });
4176
- var C = e2.string().check(e2.trim());
4177
- o2.add(C, { description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)" });
4179
+ var v = e2._default(e2.object({ github: r2, npm: r2, cargo: r2, cyclone: r2, container: r2 }), {});
4180
+ o2.add(v, { description: "A list of remote registry URLs used by Storm Software" });
4181
+ var S2 = e2.union([De, Ue]);
4182
+ o2.add(S2, { description: "Colors used for various workspace elements" });
4183
+ var y = e2.record(e2.union([e2.union([e2.literal("base"), e2.string()]), e2.string()]), S2);
4184
+ o2.add(y, { description: "Storm theme config values used for styling various package elements" });
4185
+ var C = e2.optional(e2.union([e2.string().check(e2.trim()), e2.array(e2.string().check(e2.trim()))]));
4186
+ o2.add(C, { description: "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration." });
4178
4187
  var _ = e2.string().check(e2.trim());
4179
- o2.add(_, { description: "The email of the workspace bot" });
4180
- var L = e2.object({ name: C, email: _ });
4181
- o2.add(L, { description: "The workspace's bot user's config used to automated various operations tasks" });
4182
- var j = e2.optional(e2.string().check(e2.trim(), e2.url()));
4183
- o2.add(j, { description: "A URL to a banner image used to display the workspace's release" });
4184
- var A2 = e2._default(e2.string().check(e2.trim()), A);
4185
- o2.add(A2, { description: "The alt text for the workspace's release banner image" });
4186
- var R = e2.object({ url: j, alt: A2 });
4187
- o2.add(R, { description: "The workspace's banner image used during the release process" });
4188
- var U = e2.optional(e2.string().check(e2.trim()));
4189
- o2.add(U, { description: "A header message appended to the start of the workspace's release notes" });
4188
+ o2.add(_, { description: "The workspace bot user's name (this is the bot that will be used to perform various tasks)" });
4189
+ var L = e2.string().check(e2.trim());
4190
+ o2.add(L, { description: "The email of the workspace bot" });
4191
+ var j = e2.object({ name: _, email: L });
4192
+ o2.add(j, { description: "The workspace's bot user's config used to automated various operations tasks" });
4193
+ var A2 = e2.optional(e2.string().check(e2.trim(), e2.url()));
4194
+ o2.add(A2, { description: "A URL to a banner image used to display the workspace's release" });
4195
+ var R = e2._default(e2.string().check(e2.trim()), A);
4196
+ o2.add(R, { description: "The alt text for the workspace's release banner image" });
4197
+ var U = e2.object({ url: A2, alt: R });
4198
+ o2.add(U, { description: "The workspace's banner image used during the release process" });
4190
4199
  var D = e2.optional(e2.string().check(e2.trim()));
4191
- o2.add(D, { description: "A footer message appended to the end of the workspace's release notes" });
4192
- var B = e2.object({ banner: e2.union([R, e2.string().check(e2.trim(), e2.url())]), header: U, footer: D });
4193
- o2.add(B, { description: "The workspace's release config used during the release process" });
4194
- var F = e2.optional(e2.string().check(e2.trim()));
4195
- o2.add(F, { description: "A Twitter/X account associated with the organization/project" });
4200
+ o2.add(D, { description: "A header message appended to the start of the workspace's release notes" });
4201
+ var B = e2.optional(e2.string().check(e2.trim()));
4202
+ o2.add(B, { description: "A footer message appended to the end of the workspace's release notes" });
4203
+ var F = e2.object({ banner: e2.union([U, e2.string().check(e2.trim(), e2.url())]), header: D, footer: B });
4204
+ o2.add(F, { description: "The workspace's release config used during the release process" });
4196
4205
  var N = e2.optional(e2.string().check(e2.trim()));
4197
- o2.add(N, { description: "A Discord account associated with the organization/project" });
4206
+ o2.add(N, { description: "A Twitter/X account associated with the organization/project" });
4198
4207
  var E2 = e2.optional(e2.string().check(e2.trim()));
4199
- o2.add(E2, { description: "A Telegram account associated with the organization/project" });
4208
+ o2.add(E2, { description: "A Discord account associated with the organization/project" });
4200
4209
  var M = e2.optional(e2.string().check(e2.trim()));
4201
- o2.add(M, { description: "A Slack account associated with the organization/project" });
4210
+ o2.add(M, { description: "A Telegram account associated with the organization/project" });
4202
4211
  var O = e2.optional(e2.string().check(e2.trim()));
4203
- o2.add(O, { description: "A Medium account associated with the organization/project" });
4212
+ o2.add(O, { description: "A Slack account associated with the organization/project" });
4204
4213
  var I = e2.optional(e2.string().check(e2.trim()));
4205
- o2.add(I, { description: "A GitHub account associated with the organization/project" });
4206
- var G = e2.object({ twitter: F, discord: N, telegram: E2, slack: M, medium: O, github: I });
4207
- o2.add(G, { description: "The workspace's account config used to store various social media links" });
4208
- var H = e2.optional(e2.string().check(e2.trim()));
4209
- o2.add(H, { description: "The directory used to store the environment's cached file data" });
4214
+ o2.add(I, { description: "A Medium account associated with the organization/project" });
4215
+ var G = e2.optional(e2.string().check(e2.trim()));
4216
+ o2.add(G, { description: "A GitHub account associated with the organization/project" });
4217
+ var H = e2.object({ twitter: N, discord: E2, telegram: M, slack: O, medium: I, github: G });
4218
+ o2.add(H, { description: "The workspace's account config used to store various social media links" });
4210
4219
  var J = e2.optional(e2.string().check(e2.trim()));
4211
- o2.add(J, { description: "The directory used to store the environment's data files" });
4220
+ o2.add(J, { description: "The directory used to store the environment's cached file data" });
4212
4221
  var W = e2.optional(e2.string().check(e2.trim()));
4213
- o2.add(W, { description: "The directory used to store the environment's configuration files" });
4222
+ o2.add(W, { description: "The directory used to store the environment's data files" });
4214
4223
  var P = e2.optional(e2.string().check(e2.trim()));
4215
- o2.add(P, { description: "The directory used to store the environment's temp files" });
4224
+ o2.add(P, { description: "The directory used to store the environment's configuration files" });
4216
4225
  var $ = e2.optional(e2.string().check(e2.trim()));
4217
- o2.add($, { description: "The directory used to store the environment's log files" });
4218
- var V = e2._default(e2.string().check(e2.trim()), "dist");
4219
- o2.add(V, { description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)" });
4220
- var X = e2.object({ cache: H, data: J, config: W, temp: P, log: $, build: V });
4221
- o2.add(X, { description: "Various directories used by the workspace to store data, cache, and configuration files" });
4222
- var Y = e2._default(e2.enum(["minimal", "monorepo"]), "monorepo");
4223
- o2.add(Y, { description: "The variant of the workspace. This can be used to enable or disable certain features or configurations." });
4224
- var q = e2._default(e2.string().check(e2.trim()), S);
4225
- o2.add(q, { description: "The path to the workspace's error codes JSON file" });
4226
- var K = e2.optional(e2.url());
4227
- o2.add(K, { description: "A URL to a page that looks up the workspace's error messages given a specific error code" });
4228
- var Q = e2.object({ codesFile: q, url: K });
4229
- o2.add(Q, { description: "The workspace's error config used when creating error details during a system error" });
4230
- var Z = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
4231
- o2.add(Z, { description: "The name of the organization" });
4232
- var ee = e2.optional(e2.string().check(e2.trim()));
4233
- o2.add(ee, { description: "A description of the organization" });
4234
- var oe = e2.optional(e2.url());
4235
- o2.add(oe, { description: "A URL to the organization's logo image" });
4226
+ o2.add($, { description: "The directory used to store the environment's temp files" });
4227
+ var V = e2.optional(e2.string().check(e2.trim()));
4228
+ o2.add(V, { description: "The directory used to store the environment's log files" });
4229
+ var X = e2._default(e2.string().check(e2.trim()), "dist");
4230
+ o2.add(X, { description: "The directory used to store the workspace's distributable files after a build (relative to the workspace root)" });
4231
+ var Y = e2.object({ cache: J, data: W, config: P, temp: $, log: V, build: X });
4232
+ o2.add(Y, { description: "Various directories used by the workspace to store data, cache, and configuration files" });
4233
+ var q = e2._default(e2.enum(["minimal", "monorepo"]), "monorepo");
4234
+ o2.add(q, { description: "The variant of the workspace. This can be used to enable or disable certain features or configurations." });
4235
+ var K = e2._default(e2.string().check(e2.trim()), S);
4236
+ o2.add(K, { description: "The path to the workspace's error codes JSON file" });
4237
+ var Q = e2.optional(e2.url());
4238
+ o2.add(Q, { description: "A URL to a page that looks up the workspace's error messages given a specific error code" });
4239
+ var Z = e2.object({ codesFile: K, url: Q });
4240
+ o2.add(Z, { description: "The workspace's error config used when creating error details during a system error" });
4241
+ var ee = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
4242
+ o2.add(ee, { description: "The name of the organization" });
4243
+ var oe = e2.optional(e2.string().check(e2.trim()));
4244
+ o2.add(oe, { description: "A description of the organization" });
4236
4245
  var te = e2.optional(e2.url());
4237
- o2.add(te, { description: "A URL to the organization's icon image" });
4246
+ o2.add(te, { description: "A URL to the organization's logo image" });
4238
4247
  var re = e2.optional(e2.url());
4239
- o2.add(re, { description: "A URL to a page that provides more information about the organization" });
4240
- var ae = e2.object({ name: Z, description: ee, logo: oe, icon: te, url: re });
4241
- o2.add(ae, { description: "The workspace's organization details" });
4242
- var ie = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "https://public.storm-cdn.com/schemas/storm-workspace.schema.json");
4243
- o2.add(ie, { description: "The URL or file path to the JSON schema file that describes the Storm configuration file" });
4244
- var ce = e2.string().check(e2.trim(), e2.toLowerCase());
4245
- o2.add(ce, { description: "The name of the workspace/project/service/package/scope using this configuration" });
4248
+ o2.add(re, { description: "A URL to the organization's icon image" });
4249
+ var ae = e2.optional(e2.url());
4250
+ o2.add(ae, { description: "A URL to a page that provides more information about the organization" });
4251
+ var ie = e2.object({ name: ee, description: oe, logo: te, icon: re, url: ae });
4252
+ o2.add(ie, { description: "The workspace's organization details" });
4253
+ var ce = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "https://public.storm-cdn.com/schemas/storm-workspace.schema.json");
4254
+ o2.add(ce, { description: "The URL or file path to the JSON schema file that describes the Storm configuration file" });
4246
4255
  var se = e2.string().check(e2.trim(), e2.toLowerCase());
4247
- o2.add(se, { description: "The namespace of the workspace/project/service/package/scope using this configuration" });
4248
- var ne = e2.union([ae, e2.string().check(e2.trim(), e2.toLowerCase())]);
4249
- o2.add(ne, { description: "The organization of the workspace. This can be a string or an object containing the organization's details" });
4250
- var de = e2.string().check(e2.trim(), e2.toLowerCase());
4251
- o2.add(de, { description: "The repo URL of the workspace (i.e. the GitHub repository URL)" });
4252
- var pe = e2._default(e2.string().check(e2.trim()), "Apache-2.0");
4253
- o2.add(pe, { description: "The license type of the package" });
4254
- var he = e2.optional(e2.url());
4255
- o2.add(he, { description: "The homepage of the workspace" });
4256
+ o2.add(se, { description: "The name of the workspace/project/service/package/scope using this configuration" });
4257
+ var ne = e2.string().check(e2.trim(), e2.toLowerCase());
4258
+ o2.add(ne, { description: "The namespace of the workspace/project/service/package/scope using this configuration" });
4259
+ var de = e2.union([ie, e2.string().check(e2.trim(), e2.toLowerCase())]);
4260
+ o2.add(de, { description: "The organization of the workspace. This can be a string or an object containing the organization's details" });
4261
+ var pe = e2.string().check(e2.trim(), e2.toLowerCase());
4262
+ o2.add(pe, { description: "The repo URL of the workspace (i.e. the GitHub repository URL)" });
4263
+ var he = e2._default(e2.string().check(e2.trim()), "Apache-2.0");
4264
+ o2.add(he, { description: "The license type of the package" });
4256
4265
  var le = e2.optional(e2.url());
4257
- o2.add(le, { description: "The documentation site for the workspace" });
4266
+ o2.add(le, { description: "The homepage of the workspace" });
4258
4267
  var me = e2.optional(e2.url());
4259
- o2.add(me, { description: "The development portal site for the workspace" });
4268
+ o2.add(me, { description: "The documentation site for the workspace" });
4260
4269
  var ze = e2.optional(e2.url());
4261
- o2.add(ze, { description: "The licensing site for the workspace" });
4270
+ o2.add(ze, { description: "The development portal site for the workspace" });
4262
4271
  var ge = e2.optional(e2.url());
4263
- o2.add(ge, { description: "The contact site for the workspace" });
4272
+ o2.add(ge, { description: "The licensing site for the workspace" });
4264
4273
  var ue = e2.optional(e2.url());
4265
- o2.add(ue, { description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value" });
4266
- var fe = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "main");
4267
- o2.add(fe, { description: "The branch of the workspace" });
4268
- var ke = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
4269
- o2.add(ke, { description: "A tag specifying the version pre-release identifier" });
4274
+ o2.add(ue, { description: "The contact site for the workspace" });
4275
+ var fe = e2.optional(e2.url());
4276
+ o2.add(fe, { description: "The support site for the workspace. If not provided, this is defaulted to the `contact` config value" });
4277
+ var ke = e2._default(e2.string().check(e2.trim(), e2.toLowerCase()), "main");
4278
+ o2.add(ke, { description: "The branch of the workspace" });
4270
4279
  var we = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
4271
- o2.add(we, { description: "The owner of the package" });
4272
- var Se = e2._default(e2.enum(["development", "test", "production"]).check(e2.trim(), e2.toLowerCase()), "production");
4273
- o2.add(Se, { description: "The current runtime environment mode for the package" });
4280
+ o2.add(we, { description: "A tag specifying the version pre-release identifier" });
4281
+ var Se = e2.optional(e2.string().check(e2.trim(), e2.toLowerCase()));
4282
+ o2.add(Se, { description: "The owner of the package" });
4283
+ var be = e2._default(e2.enum(["development", "test", "production"]).check(e2.trim(), e2.toLowerCase()), "production");
4284
+ o2.add(be, { description: "The current runtime environment mode for the package" });
4274
4285
  var xe = e2.string().check(e2.trim(), e2.toLowerCase());
4275
4286
  o2.add(xe, { description: "The root directory of the workspace" });
4276
- var be = e2._default(e2.boolean(), false);
4277
- o2.add(be, { description: "Should all known types of workspace caching be skipped?" });
4278
- var Te = e2._default(e2.enum(["npm", "yarn", "pnpm", "bun"]), "npm");
4279
- o2.add(Te, { description: "The JavaScript/TypeScript package manager used by the repository" });
4280
- var ve = e2._default(e2.string().check(e2.trim()), "America/New_York");
4281
- o2.add(ve, { description: "The default timezone of the workspace" });
4282
- var ye = e2._default(e2.string().check(e2.trim()), "en-US");
4283
- o2.add(ye, { description: "The default locale of the workspace" });
4284
- var Ce = e2._default(e2.enum(["silent", "fatal", "error", "warn", "success", "info", "debug", "trace", "all"]), "info");
4285
- o2.add(Ce, { description: "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)." });
4286
- var _e = e2._default(e2.boolean(), true);
4287
- o2.add(_e, { description: "Should the logging of the current Storm Workspace configuration be skipped?" });
4288
- var Le = e2._default(e2.nullable(e2.string().check(e2.trim())), null);
4289
- o2.add(Le, { description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace." });
4290
- var S2 = e2._default(e2.record(e2.string(), e2.any()), {});
4291
- o2.add(S2, { description: "Configuration of each used extension" });
4292
- var Be = e2.object({ $schema: ie, extends: y, name: ce, variant: Y, namespace: se, organization: ne, repository: de, license: pe, homepage: he, docs: le, portal: me, licensing: ze, contact: ge, support: ue, branch: fe, preid: ke, owner: we, bot: L, release: B, socials: G, error: Q, mode: Se, workspaceRoot: xe, skipCache: be, directories: X, packageManager: Te, timezone: ve, locale: ye, logLevel: Ce, skipConfigLogging: _e, registry: T, configFile: Le, colors: e2.union([w, v]), extensions: S2 });
4293
- o2.add(S2, { description: "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo." });
4287
+ var Te = e2._default(e2.boolean(), false);
4288
+ o2.add(Te, { description: "Should all known types of workspace caching be skipped?" });
4289
+ var ve = e2._default(e2.enum(["npm", "yarn", "pnpm", "bun"]), "npm");
4290
+ o2.add(ve, { description: "The JavaScript/TypeScript package manager used by the repository" });
4291
+ var ye = e2._default(e2.string().check(e2.trim()), "America/New_York");
4292
+ o2.add(ye, { description: "The default timezone of the workspace" });
4293
+ var Ce = e2._default(e2.string().check(e2.trim()), "en-US");
4294
+ o2.add(Ce, { description: "The default locale of the workspace" });
4295
+ var _e = e2._default(e2.enum(["silent", "fatal", "error", "warn", "success", "info", "debug", "trace", "all"]), "info");
4296
+ o2.add(_e, { description: "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)." });
4297
+ var Le = e2._default(e2.boolean(), true);
4298
+ o2.add(Le, { description: "Should the logging of the current Storm Workspace configuration be skipped?" });
4299
+ var je = e2._default(e2.nullable(e2.string().check(e2.trim())), null);
4300
+ o2.add(je, { description: "The filepath of the Storm config. When this field is null, no config file was found in the current workspace." });
4301
+ var b = e2._default(e2.record(e2.string(), e2.any()), {});
4302
+ o2.add(b, { description: "Configuration of each used extension" });
4303
+ var Fe = e2.object({ $schema: ce, extends: C, name: se, variant: q, namespace: ne, organization: de, repository: pe, license: he, homepage: le, docs: me, portal: ze, licensing: ge, contact: ue, support: fe, branch: ke, preid: we, owner: Se, bot: j, release: F, socials: H, error: Z, mode: be, workspaceRoot: xe, skipCache: Te, directories: Y, packageManager: ve, timezone: ye, locale: Ce, logLevel: _e, skipConfigLogging: Le, registry: v, configFile: je, colors: e2.union([S2, y]), extensions: b });
4304
+ o2.add(b, { description: "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo." });
4294
4305
 
4295
4306
  // ../config/dist/chunk-WIOU3CJS.js
4296
4307
  init_cjs_shims();
@@ -4383,7 +4394,7 @@ function applyDefaultConfig(config) {
4383
4394
  return config;
4384
4395
  }
4385
4396
 
4386
- // ../config-tools/dist/chunk-KJ7E5BJ3.js
4397
+ // ../config-tools/dist/chunk-4XFFB6C2.js
4387
4398
  init_cjs_shims();
4388
4399
  var setExtensionEnv = (extensionName, extension) => {
4389
4400
  for (const key of Object.keys(extension ?? {})) {
@@ -4676,6 +4687,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
4676
4687
  if (config.info) {
4677
4688
  process.env[`${prefix}INFO`] = config.info;
4678
4689
  }
4690
+ if (config.debug) {
4691
+ process.env[`${prefix}DEBUG`] = config.debug;
4692
+ }
4679
4693
  if (config.warning) {
4680
4694
  process.env[`${prefix}WARNING`] = config.warning;
4681
4695
  }
@@ -4731,6 +4745,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
4731
4745
  if (config.info) {
4732
4746
  process.env[`${prefix}INFO`] = config.info;
4733
4747
  }
4748
+ if (config.debug) {
4749
+ process.env[`${prefix}DEBUG`] = config.debug;
4750
+ }
4734
4751
  if (config.warning) {
4735
4752
  process.env[`${prefix}WARNING`] = config.warning;
4736
4753
  }
@@ -4753,7 +4770,7 @@ var setBaseThemeColorsEnv = (prefix, config) => {
4753
4770
  }
4754
4771
  };
4755
4772
 
4756
- // ../config-tools/dist/chunk-ZWZLRNXP.js
4773
+ // ../config-tools/dist/chunk-XT72Z7BW.js
4757
4774
  init_cjs_shims();
4758
4775
  var getExtensionEnv = (extensionName) => {
4759
4776
  const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
@@ -4919,6 +4936,7 @@ var getSingleThemeColorsEnv = (prefix) => {
4919
4936
  help: process.env[`${prefix}HELP`],
4920
4937
  success: process.env[`${prefix}SUCCESS`],
4921
4938
  info: process.env[`${prefix}INFO`],
4939
+ debug: process.env[`${prefix}DEBUG`],
4922
4940
  warning: process.env[`${prefix}WARNING`],
4923
4941
  danger: process.env[`${prefix}DANGER`],
4924
4942
  fatal: process.env[`${prefix}FATAL`],
@@ -4957,6 +4975,7 @@ var getBaseThemeColorsEnv = (prefix) => {
4957
4975
  help: process.env[`${prefix}HELP`],
4958
4976
  success: process.env[`${prefix}SUCCESS`],
4959
4977
  info: process.env[`${prefix}INFO`],
4978
+ debug: process.env[`${prefix}DEBUG`],
4960
4979
  warning: process.env[`${prefix}WARNING`],
4961
4980
  danger: process.env[`${prefix}DANGER`],
4962
4981
  fatal: process.env[`${prefix}FATAL`],
@@ -4969,7 +4988,7 @@ var getBaseThemeColorsEnv = (prefix) => {
4969
4988
  // ../config/dist/schema.js
4970
4989
  init_cjs_shims();
4971
4990
 
4972
- // ../config-tools/dist/chunk-XVUCULX2.js
4991
+ // ../config-tools/dist/chunk-QDUNMWAE.js
4973
4992
  var import_defu4 = __toESM(require("defu"), 1);
4974
4993
  var import_node_fs9 = require("fs");
4975
4994
  var _extension_cache = /* @__PURE__ */ new WeakMap();
@@ -5005,7 +5024,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
5005
5024
  }
5006
5025
  try {
5007
5026
  result = applyDefaultConfig(
5008
- await Be.parseAsync(configInput)
5027
+ await Fe.parseAsync(configInput)
5009
5028
  );
5010
5029
  result.workspaceRoot ??= _workspaceRoot;
5011
5030
  } catch (error) {
@@ -5066,7 +5085,7 @@ ${formatLogMessage(config)}`,
5066
5085
  return config;
5067
5086
  };
5068
5087
 
5069
- // ../config-tools/dist/chunk-BJTNSVY4.js
5088
+ // ../config-tools/dist/chunk-BQLCBDR6.js
5070
5089
  function getConfig(workspaceRoot, skipLogs = false) {
5071
5090
  return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
5072
5091
  }
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  getStopwatch,
3
3
  resolveOptions,
4
4
  writeDebug
5
- } from "./chunk-TM2CJRVX.js";
5
+ } from "./chunk-2TNKORJP.js";
6
6
  import {
7
7
  DEFAULT_BUILD_OPTIONS
8
8
  } from "./chunk-MKBPXJU3.js";